Package net.bluemind.directory.api
Class DirEntryQuery
java.lang.Object
net.bluemind.directory.api.DirEntryQuery
Class representing
DirEntry
search parameters-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
static class
static enum
static enum
-
Field Summary
Modifier and TypeFieldDescriptionFilter by Account TypeFilter by data locationFilter by emailFilter by UIDFilter by UIDint
Search offsetboolean
True, if the search should ignore hiddenDirEntry
s.Filter by Kind (USER, GROUP, RESOURCE, MAILSHARE, CALENDAR, ADDRESSBOOK, DOMAIN, ORG_UNIT, EXTERNALUSER)Filter by nameFilter by name or emailboolean
True if the search returns only manageableDirEntry
s (entries where the executing user owns the role MANAGE)Search direction, ascending by defaultFilter by Org Unit Item idsint
Maximal result size, -1 if there is no limit.Filter by State (Archived, Active, All)boolean
True, if the search should ignore internal(system)DirEntry
s. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic DirEntryQuery
all()
Creates a query which returns allDirEntry
sstatic DirEntryQuery.Order
Returns the default sort orderstatic DirEntryQuery
Creates a query which filters by the given UIDsstatic DirEntryQuery
Creates a query which filters by the given UIDsstatic DirEntryQuery
filterEmail
(String email) Creates a query which filters by emailstatic DirEntryQuery
filterEntryUid
(String... entryUids) Creates a query which filters by the UID parameterstatic DirEntryQuery
filterKind
(BaseDirEntry.Kind... kinds) Creates a query which filters by the kind parameterstatic DirEntryQuery
filterName
(String name) Creates a query which filters by namestatic DirEntryQuery
filterNameOrEmail
(String string) Creates a query which filters by name or emailstatic DirEntryQuery.Order
order
(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)DirEntry
s. 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 manageableDirEntry
s (entries where the executing user owns the role MANAGE) -
dataLocation
Filter by data location
-
-
Constructor Details
-
DirEntryQuery
public DirEntryQuery()
-
-
Method Details
-
all
Creates a query which returns allDirEntry
s- 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
-