|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opencms.file.CmsUserSearchParameters
public class CmsUserSearchParameters
An object which represents search criteria for retrieving users.
Nested Class Summary | |
---|---|
static class |
CmsUserSearchParameters.SearchKey
An enum used for indicating searchable columns. |
static class |
CmsUserSearchParameters.SortKey
An enum used for indicating sort order. |
Constructor Summary | |
---|---|
CmsUserSearchParameters()
|
Method Summary | |
---|---|
void |
addSearch(CmsUserSearchParameters.SearchKey key)
Adds a search key. |
List<CmsOrganizationalUnit> |
getAllowedOus()
Returns the list of OUs from which users may be returned. |
Collection<CmsGroup> |
getAnyGroups()
Returns the collection of groups such that returned users must be in at least one of them. |
int |
getFlags()
Returns the flags to filter by. |
CmsGroup |
getGroup()
Returns the group such that users which are not in the group will be filtered out. |
Collection<CmsGroup> |
getNotAnyGroups()
Returns the groups whose users may not appear in the search results. |
CmsGroup |
getNotGroup()
Returns the group such that users not in that group will be filtered out. |
CmsOrganizationalUnit |
getOrganizationalUnit()
Gets the organizational unit to which a user must belong. |
int |
getPage()
Returns the results page index. |
int |
getPageSize()
Returns the maximum results page size. |
String |
getSearchFilter()
Returns the search term. |
Set<CmsUserSearchParameters.SearchKey> |
getSearchKeys()
Returns the set of search keys. |
int |
getSortFlags()
Returns the bit mask to be used for ordering by flags. |
CmsUserSearchParameters.SortKey |
getSortKey()
Returns the key indicating by which column the results should be sorted. |
boolean |
isAscending()
If true, the results should be sorted in ascending order, else in descending order. |
boolean |
isCaseSensitive()
Returns true if the search filter should be case sensitive. |
boolean |
isFilterByGroupOu()
Returns true if users of different OUs than the search group's OU will be filtered out. |
boolean |
isFilterCore()
Returns true if non-core users should be filtered out. |
boolean |
keepCoreUsers()
Return true if core users should not be filtered out if filtering by flag. |
boolean |
recursiveOrgUnits()
Returns true if sub-OU users will be returned in the result. |
void |
setAllowedOus(List<CmsOrganizationalUnit> ous)
Sets the OUs from which users should be returned. |
void |
setAnyGroups(Collection<CmsGroup> anyGroups)
Sets the groups such that returned users must be in at least one of them. |
void |
setCaseSensitive(boolean caseSensitive)
Sets the case sensitivity for the search filter. |
void |
setFilterByGroupOu(boolean filterByGroupOu)
Sets the "filter by group OU" flag. |
void |
setFilterCore(boolean filterCore)
Enables or disables the filtering of non-core users. |
void |
setFlags(int flags)
Sets the flags to filter by. |
void |
setGroup(CmsGroup group)
Sets the group such that users which are not in the group will be filtered out. |
void |
setKeepCoreUsers(boolean keepCoreUsers)
If this is set to true, core users will not be filtered out if filtering by flag. |
void |
setNotAnyGroups(Collection<CmsGroup> groups)
Sets the groups whose users may not appear in the search results. |
void |
setNotGroup(CmsGroup group)
Sets the group such that users not in that group will be filtered out. |
void |
setOrganizationalUnit(CmsOrganizationalUnit ou)
Sets the organizational unit to which a user must belong. |
void |
setPaging(int pageSize,
int page)
Sets the paging parameters. |
void |
setRecursiveOrgUnits(boolean recursive)
Enables fetching of users of sub-OUs (if an OU has been set). |
void |
setSearchFilter(String searchFilter)
Sets the search term. |
void |
setSortFlags(int sortFlags)
Sets the bit mask used when the results should be ordered by flags. |
void |
setSorting(CmsUserSearchParameters.SortKey key,
boolean ascending)
Sets the sort key and order. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CmsUserSearchParameters()
Method Detail |
---|
public void addSearch(CmsUserSearchParameters.SearchKey key)
key
- the search key to addpublic List<CmsOrganizationalUnit> getAllowedOus()
public Collection<CmsGroup> getAnyGroups()
public int getFlags()
public CmsGroup getGroup()
public Collection<CmsGroup> getNotAnyGroups()
public CmsGroup getNotGroup()
public CmsOrganizationalUnit getOrganizationalUnit()
public int getPage()
public int getPageSize()
public String getSearchFilter()
public Set<CmsUserSearchParameters.SearchKey> getSearchKeys()
public int getSortFlags()
public CmsUserSearchParameters.SortKey getSortKey()
public boolean isAscending()
public boolean isCaseSensitive()
The default value is true
.
public boolean isFilterByGroupOu()
public boolean isFilterCore()
public boolean keepCoreUsers()
public boolean recursiveOrgUnits()
public void setAllowedOus(List<CmsOrganizationalUnit> ous)
ous
- a list of OUspublic void setAnyGroups(Collection<CmsGroup> anyGroups)
anyGroups
- the groupspublic void setCaseSensitive(boolean caseSensitive)
caseSensitive
- if true, the search filter will be case sensitive.public void setFilterByGroupOu(boolean filterByGroupOu)
If the flag is true, users of a different OU than the search group's OU will be filtered out.
filterByGroupOu
- the "filter by group OU" flagpublic void setFilterCore(boolean filterCore)
filterCore
- if true, non-core users will be filtered outpublic void setFlags(int flags)
flags
- the flagspublic void setGroup(CmsGroup group)
group
- a grouppublic void setKeepCoreUsers(boolean keepCoreUsers)
keepCoreUsers
- true if core users should not be filtered out when filtering by flagpublic void setNotAnyGroups(Collection<CmsGroup> groups)
groups
- the groups whose users may not appear in the search resultspublic void setNotGroup(CmsGroup group)
group
- a grouppublic void setOrganizationalUnit(CmsOrganizationalUnit ou)
ou
- the organizational unitpublic void setPaging(int pageSize, int page)
pageSize
- the maximum page sizepage
- the page indexpublic void setRecursiveOrgUnits(boolean recursive)
recursive
- if true, enable sub-OU users in the resultpublic void setSearchFilter(String searchFilter)
searchFilter
- the search termpublic void setSortFlags(int sortFlags)
sortFlags
- the bit mask for ordering by flagspublic void setSorting(CmsUserSearchParameters.SortKey key, boolean ascending)
key
- the sort keyascending
- the sort order (ascending if true, descending if false)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |