Class ResponseFilter
java.lang.Object
fr.paris.lutece.plugins.genericattributes.business.ResponseFilter
class ResponseFilter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanCheck if the filter contains code entrybooleanbooleanbooleanbooleanbooleanbooleanbooleanCheck if the filter contains order bybooleanCheck if the filter contains response valueintintintGet the id of a resource in the filterGet order bybooleanbooleantrue if the response must be group by monthbooleantrue if the response must be group by weekbooleanCheck if the order by is ascvoidsetCodeEntry(String strCodeEntry) voidsetFileKey(String strFileKey) voidsetGroupbyDay(boolean groupbyDay) set true if the response must be group by dayvoidsetGroupbyMonth(boolean groupbyMonth) set true if the response must be group by monthvoidsetGroupbyWeek(boolean groupbyWeek) set true if the response must be group by weekvoidsetIdEntry(int idEntry) set the id of entry depend in the filtervoidsetIdField(int idField) set the id of field depend in the filtervoidsetIdResource(int nIdResource) Set the id of a resource in the filtervoidvoidsetListIdEntry(List<Integer> listIdEntry) voidsetOrderBy(String strOrderBy) Set order byvoidsetOrderByAsc(boolean bIsOrderByAsc) Set order by ascvoidsetResponseValue(String strResponseValue)
-
Constructor Details
-
ResponseFilter
public ResponseFilter()
-
-
Method Details
-
getIdResource
public int getIdResource()Get the id of a resource in the filter- Returns:
- The id of the resource to insert in the filter
-
setIdResource
public void setIdResource(int nIdResource) Set the id of a resource in the filter- Parameters:
nIdResource- the id of resource to insert in the filter
-
containsIdResource
public boolean containsIdResource()- Returns:
- true if the filter contain an id of a resource
-
getIdField
public int getIdField()- Returns:
- the id of field insert in the filter
-
setIdField
public void setIdField(int idField) set the id of field depend in the filter- Parameters:
idField- the id of field depend to insert in the filter
-
containsIdField
public boolean containsIdField()- Returns:
- true if the filter contain an id of field depend
-
getIdEntry
public int getIdEntry()- Returns:
- the id of entry insert in the filter
-
setIdEntry
public void setIdEntry(int idEntry) set the id of entry depend in the filter- Parameters:
idEntry- the id of entry depend to insert in the filter
-
containsIdEntry
public boolean containsIdEntry()- Returns:
- true if the filter contain an id of entry depend
-
isGroupbyDay
public boolean isGroupbyDay()- Returns:
- true if the response must be group by day
-
setGroupbyDay
public void setGroupbyDay(boolean groupbyDay) set true if the response must be group by day- Parameters:
groupbyDay- true if the response must be group by day
-
isGroupbyMonth
public boolean isGroupbyMonth()true if the response must be group by month- Returns:
- true if the response must be group by month
-
setGroupbyMonth
public void setGroupbyMonth(boolean groupbyMonth) set true if the response must be group by month- Parameters:
groupbyMonth- true if the response must be group by month
-
isGroupbyWeek
public boolean isGroupbyWeek()true if the response must be group by week- Returns:
- true if the response must be group by week
-
setGroupbyWeek
public void setGroupbyWeek(boolean groupbyWeek) set true if the response must be group by week- Parameters:
groupbyWeek- true if the response must be group by week
-
setOrderBy
Set order by- Parameters:
strOrderBy- The order by
-
getOrderBy
Get order by- Returns:
- the order by
-
containsOrderBy
public boolean containsOrderBy()Check if the filter contains order by- Returns:
- true if it contains, false otherwise
-
setOrderByAsc
public void setOrderByAsc(boolean bIsOrderByAsc) Set order by asc- Parameters:
bIsOrderByAsc- true if the order by is asc
-
isOrderByAsc
public boolean isOrderByAsc()Check if the order by is asc- Returns:
- true if the order by is asc;
-
getListId
- Returns:
- the _listId
-
setListId
- Parameters:
listId- the _listId to set
-
containsListIdResource
public boolean containsListIdResource()- Returns:
- true if the filter contain an id of entry depend
-
containsCodeEntry
public boolean containsCodeEntry()Check if the filter contains code entry- Returns:
- true if it contains, false otherwise
-
getCodeEntry
- Returns:
- the _strCodeEntry
-
setCodeEntry
- Parameters:
strCodeEntry- the _strCodeEntry to set
-
getResponseValue
- Returns:
- the _strResponseValue
-
setResponseValue
- Parameters:
strResponseValue- the _strResponseValue to set
-
containsResponseValue
public boolean containsResponseValue()Check if the filter contains response value- Returns:
- true if it contains, false otherwise
-
getListIdEntry
- Returns:
- the _listIdEntry
-
setListIdEntry
- Parameters:
listIdEntry- the _listIdEntry to set
-
containsListIdEntry
public boolean containsListIdEntry()- Returns:
- true if the filter contain a list of entry id
-
getFileKey
- Returns:
- the _strFileKey
-
setFileKey
- Parameters:
strFileKey- the _strFileKey to set
-
containsFileKey
public boolean containsFileKey()- Returns:
- true if the filter contain a file key
-