Package net.bluemind.directory.api
Class DirEntryQuery
java.lang.Object
net.bluemind.directory.api.DirEntryQuery
Class representing
DirEntry search parameters-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic classstatic enumstatic enum -
Field Summary
FieldsModifier and TypeFieldDescriptionFilter by Account TypeFilter by data locationFilter by emailFilter by UIDFilter by UIDintSearch offsetbooleanTrue, if the search should ignore hiddenDirEntrys.Filter by Kind (USER, GROUP, RESOURCE, MAILSHARE, CALENDAR, ADDRESSBOOK, DOMAIN, ORG_UNIT, EXTERNALUSER)booleanSet to true to prevent loading of dependent objects (pictures, org unit infos, etc)Filter by nameFilter by name or emailbooleanTrue if the search returns only manageableDirEntrys (entries where the executing user owns the role MANAGE)Search direction, ascending by defaultFilter by Org Unit Item idsintMaximal result size, -1 if there is no limit.Filter by State (Archived, Active, All)booleanTrue, if the search should ignore internal(system)DirEntrys. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic DirEntryQueryall()Creates a query which returns allDirEntrysstatic DirEntryQuery.OrderReturns the default sort orderstatic DirEntryQueryCreates a query which filters by the given UIDsstatic DirEntryQueryCreates a query which filters by the given UIDsstatic DirEntryQueryfilterEmail(String email) Creates a query which filters by emailstatic DirEntryQueryfilterEntryUid(String... entryUids) Creates a query which filters by the UID parameterstatic DirEntryQueryfilterKind(BaseDirEntry.Kind... kinds) Creates a query which filters by the kind parameterstatic DirEntryQueryfilterName(String name) Creates a query which filters by namestatic DirEntryQueryfilterNameOrEmail(String string) Creates a query which filters by name or emailstatic DirEntryQuery.Orderorder(DirEntryQuery.OrderBy by, DirEntryQuery.Dir dir) Sets the sort order
-
Field Details
-
order
Search direction, ascending by default -
nameFilter
Filter by name -
emailFilter
Filter by email -
nameOrEmailFilter
Filter by name or email -
stateFilter
Filter by State (Archived, Active, All) -
systemFilter
public boolean systemFilterTrue, if the search should ignore internal(system)DirEntrys. Default value is True -
kindsFilter
Filter by Kind (USER, GROUP, RESOURCE, MAILSHARE, CALENDAR, ADDRESSBOOK, DOMAIN, ORG_UNIT, EXTERNALUSER) -
entries
Filter by UID -
orgUnitIds
Filter by Org Unit Item ids -
accountTypeFilter
Filter by Account Type -
from
public int fromSearch offset -
size
public int sizeMaximal result size, -1 if there is no limit. The default value is -1 -
entryUidFilter
Filter by UID -
onlyManagable
public boolean onlyManagableTrue if the search returns only manageableDirEntrys (entries where the executing user owns the role MANAGE) -
dataLocation
Filter by data location -
lightResults
public boolean lightResultsSet to true to prevent loading of dependent objects (pictures, org unit infos, etc)
-
-
Constructor Details
-
DirEntryQuery
public DirEntryQuery()
-
-
Method Details
-
all
Creates a query which returns allDirEntrys- Returns:
DirEntryQuery
-
entries
Creates a query which filters by the given UIDs- Parameters:
uids- List of UIDs- Returns:
DirEntryQuery
-
entries
Creates a query which filters by the given UIDs- Parameters:
uids- Array of UIDs- Returns:
DirEntryQuery
-
defaultOrder
Returns the default sort order- Returns:
- the default sort order
-
order
Sets the sort order- Parameters:
by- Defines the property used by the order statementdir- The sort order- Returns:
- the Order object
-
filterKind
Creates a query which filters by the kind parameter- Parameters:
kinds- The requested kinds- Returns:
DirEntryQuery
-
filterName
Creates a query which filters by name- Parameters:
name- The name- Returns:
DirEntryQuery
-
filterEmail
Creates a query which filters by email- Parameters:
email- The email address- Returns:
DirEntryQuery
-
filterEntryUid
Creates a query which filters by the UID parameter- Parameters:
entryUids- Array of UIDs- Returns:
DirEntryQuery
-
filterNameOrEmail
Creates a query which filters by name or email- Parameters:
string- search value- Returns:
DirEntryQuery
-