Class DemandFilter
java.lang.Object
fr.paris.lutece.plugins.crm.business.demand.DemandFilter
DemandFilter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddDemandSort(DemandSort demandSort) Add a sortbooleanCheck if the filter contains the attribute date ModificationbooleanCheck if the filter contains the attribute UserGuidbooleanCheck if the filter contains the attribute ID demand typebooleanCheck if the filter contains the attribute IdStatusCRMGet the Modification dateintReturns the User crm idintReturns the IdDemandTypeintGet the IdStatusCRMbooleanCheck if the filter is applied to a wide search or not.Get the notificationGet the operator for the modification datevoidsetDateModification(Date dateModification) Set the Modification datevoidsetIdCRMUser(int nIdCRMUser) Sets the User crm idvoidsetIdDemandType(int nIdDemandType) Sets the nIdDemandTypevoidsetIdStatusCRM(int nIdStatusCRM) Set the IdStatusCRMvoidsetIsWideSearch(boolean bIsWideSearch) Set true if the filter is applied to a wide search.voidsetListDemandSort(List<DemandSort> listDemandSort) voidsetNotification(String notification) Set the notificationvoidsetOperatorDateModification(OperatorEnum operator) Set the operator for the modification date
-
Constructor Details
-
DemandFilter
public DemandFilter()Constructor
-
-
Method Details
-
setIsWideSearch
public void setIsWideSearch(boolean bIsWideSearch) Set true if the filter is applied to a wide search.
In other words, the SQL query will use- SQL OR if it is applied to a wide search
- SQL AND if it is not applied to a wide search
- Parameters:
bIsWideSearch- true if it a wide search, false otherwise
-
getIsWideSearch
public boolean getIsWideSearch()Check if the filter is applied to a wide search or not.
In other words, the SQL query will use- SQL OR if it is applied to a wide search
- SQL AND if it is not applied to a wide search
- Returns:
- true if it is applied to a wide search
-
getIdCRMUser
public int getIdCRMUser()Returns the User crm id- Returns:
- The User crm id
-
setIdCRMUser
public void setIdCRMUser(int nIdCRMUser) Sets the User crm id- Parameters:
nIdCRMUser- The user crm id
-
containsIdCRMUser
public boolean containsIdCRMUser()Check if the filter contains the attribute UserGuid- Returns:
- true if it contains, false otherwise
-
getIdDemandType
public int getIdDemandType()Returns the IdDemandType- Returns:
- The IdDemandType
-
setIdDemandType
public void setIdDemandType(int nIdDemandType) Sets the nIdDemandType- Parameters:
nIdDemandType- The nIdDemandType
-
containsIdDemandType
public boolean containsIdDemandType()Check if the filter contains the attribute ID demand type- Returns:
- true if it contains, false otherwise
-
setDateModification
Set the Modification date- Parameters:
dateModification- the Modification date
-
getDateModification
Get the Modification date- Returns:
- the Modification date
-
containsDateModification
public boolean containsDateModification()Check if the filter contains the attribute date Modification- Returns:
- true if it contains, false otherwise
-
setIdStatusCRM
public void setIdStatusCRM(int nIdStatusCRM) Set the IdStatusCRM- Parameters:
nIdStatusCRM- the IdStatusCRM
-
getIdStatusCRM
public int getIdStatusCRM()Get the IdStatusCRM- Returns:
- the IdStatusCRM
-
containsIdStatusCRM
public boolean containsIdStatusCRM()Check if the filter contains the attribute IdStatusCRM- Returns:
- true if it contains, false otherwise
-
setOperatorDateModification
Set the operator for the modification date- Parameters:
operator- the operator
-
getOperatorDateModification
Get the operator for the modification date- Returns:
- the operator
-
getNotification
Get the notification- Returns:
- the notification
-
setNotification
Set the notification -
getListDemandSort
- Returns:
- the listDemandSort
-
setListDemandSort
- Parameters:
listDemandSort- the listDemandSort to set
-
addDemandSort
Add a sort- Parameters:
demandSort- the demandSort to add
-