Class CRMUserFilter
- java.lang.Object
-
- fr.paris.lutece.plugins.crm.business.user.CRMUserFilter
-
- All Implemented Interfaces:
Serializable
public class CRMUserFilter extends Object implements Serializable
CRMUserAttributeFilter- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static intMUST_BE_UPDATED_FALSEstatic intMUST_BE_UPDATED_TRUE
-
Constructor Summary
Constructors Constructor Description CRMUserFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringbuildSQLQuery(String strSQL)Builds the sql query.intbuildSQLQueryForAttribute(StringBuilder sbSQL, int nIndex)Builds the sql query for attribute.booleancontainsIdCRMUser()Contains id crm user.booleancontainsMustBeUpdated()Contains id crm user.booleancontainsStatus()Contains status.booleancontainsUserAttributes()Contains user attributes.booleancontainsUserGuid()Contains user guid.intgetIdCRMUser()Get the id crm userintgetMustBeUpdated()intgetStatus()Map<String,String>getUserAttributes()Get the user attributesStringgetUserAttributeValue(String strUserAttributeKey)Get the user attribute valueStringgetUserGuid()Get the user guidvoidinit(javax.servlet.http.HttpServletRequest request)Init.booleanisWideSearch()Return 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 Detail
-
MUST_BE_UPDATED_TRUE
public static final int MUST_BE_UPDATED_TRUE
- See Also:
- Constant Field Values
-
MUST_BE_UPDATED_FALSE
public static final int MUST_BE_UPDATED_FALSE
- See Also:
- Constant Field Values
-
-
Method Detail
-
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
public void setUserGuid(String strUserGuid)
Set the user guid- Parameters:
strUserGuid- the user guid
-
getUserGuid
public String getUserGuid()
Get the user guid- Returns:
- the user guid
-
containsUserGuid
public boolean containsUserGuid()
Contains user guid.- Returns:
- true, if successful
-
setUserAttributes
public void setUserAttributes(Map<String,String> userInfos)
Set the user attributes- Parameters:
userInfos- the user attributes
-
getUserAttributes
public Map<String,String> getUserAttributes()
Get the user attributes- Returns:
- the user attributes
-
containsUserAttributes
public boolean containsUserAttributes()
Contains user attributes.- Returns:
- true, if successful
-
getUserAttributeValue
public String getUserAttributeValue(String strUserAttributeKey)
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
public String buildSQLQuery(String strSQL)
Builds the sql query.- Parameters:
strSQL- the str sql- Returns:
- the string
-
buildSQLQueryForAttribute
public int buildSQLQueryForAttribute(StringBuilder sbSQL, int nIndex)
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
-
-