Class CRMUserFilter
java.lang.Object
fr.paris.lutece.plugins.crm.business.user.CRMUserFilter
- All Implemented Interfaces:
Serializable
CRMUserAttributeFilter
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuildSQLQuery(String strSQL) Builds the sql query.intbuildSQLQueryForAttribute(StringBuilder sbSQL, int nIndex) Builds the sql query for attribute.booleanContains id crm user.booleanContains id crm user.booleanContains status.booleanContains user attributes.booleanContains user guid.intGet the id crm userintintGet the user attributesgetUserAttributeValue(String strUserAttributeKey) Get the user attribute valueGet the user guidvoidinit(javax.servlet.http.HttpServletRequest request) Init.booleanReturn true if the search is wide, false otherwisevoidsetFilterValues(fr.paris.lutece.util.sql.DAOUtil daoUtil) Sets the filter values.voidsetIdCRMUser(int nIdCRMUser) Set the id crm uservoidsetMustBeUpdated(int nMustBeUpdated) voidsetStatus(int nStatus) voidsetUserAttributes(Map<String, String> userInfos) Set the user attributesvoidsetUserGuid(String strUserGuid) Set the user guidvoidsetWideSearch(boolean isWideSearch) Set true if the search is wide, false otherwise
-
Field Details
-
MUST_BE_UPDATED_TRUE
public static final int MUST_BE_UPDATED_TRUE- See Also:
-
MUST_BE_UPDATED_FALSE
public static final int MUST_BE_UPDATED_FALSE- See Also:
-
-
Constructor Details
-
CRMUserFilter
public CRMUserFilter()
-
-
Method Details
-
init
public void init(javax.servlet.http.HttpServletRequest request) Init.- Parameters:
request- the request
-
setIdCRMUser
public void setIdCRMUser(int nIdCRMUser) Set the id crm user- Parameters:
nIdCRMUser- the id crm user
-
getIdCRMUser
public int getIdCRMUser()Get the id crm user- Returns:
- the id crm user
-
containsIdCRMUser
public boolean containsIdCRMUser()Contains id crm user.- Returns:
- true, if successful
-
setUserGuid
Set the user guid- Parameters:
strUserGuid- the user guid
-
getUserGuid
Get the user guid- Returns:
- the user guid
-
containsUserGuid
public boolean containsUserGuid()Contains user guid.- Returns:
- true, if successful
-
setUserAttributes
Set the user attributes- Parameters:
userInfos- the user attributes
-
getUserAttributes
Get the user attributes- Returns:
- the user attributes
-
containsUserAttributes
public boolean containsUserAttributes()Contains user attributes.- Returns:
- true, if successful
-
getUserAttributeValue
Get the user attribute value- Parameters:
strUserAttributeKey- the key- Returns:
- the user attribute value
-
setWideSearch
public void setWideSearch(boolean isWideSearch) Set true if the search is wide, false otherwise- Parameters:
isWideSearch- true if the search is wide, false otherwise
-
isWideSearch
public boolean isWideSearch()Return true if the search is wide, false otherwise- Returns:
- true if the search is wide, false otherwise
-
getStatus
public int getStatus()- Returns:
- the nStatus
-
setStatus
public void setStatus(int nStatus) - Parameters:
nStatus- the nStatus to set
-
containsStatus
public boolean containsStatus()Contains status. -
getMustBeUpdated
public int getMustBeUpdated()- Returns:
-
setMustBeUpdated
public void setMustBeUpdated(int nMustBeUpdated) - Parameters:
_nMustBeUpdated-
-
containsMustBeUpdated
public boolean containsMustBeUpdated()Contains id crm user.- Returns:
- true, if successful
-
buildSQLQuery
Builds the sql query.- Parameters:
strSQL- the str sql- Returns:
- the string
-
buildSQLQueryForAttribute
Builds the sql query for attribute.- Parameters:
sbSQL- the sb sqlnIndex- the n index- Returns:
- the int
-
setFilterValues
public void setFilterValues(fr.paris.lutece.util.sql.DAOUtil daoUtil) Sets the filter values.- Parameters:
daoUtil- the new filter values
-