public class DirEntryQuery
extends java.lang.Object
DirEntry
search parametersModifier and Type | Class and Description |
---|---|
static class |
DirEntryQuery.Dir |
static class |
DirEntryQuery.Order |
static class |
DirEntryQuery.OrderBy |
static class |
DirEntryQuery.StateFilter |
Modifier and Type | Field and Description |
---|---|
BaseDirEntry.AccountType |
accountTypeFilter
Filter by Account Type (FULL, SIMPLE)
|
java.lang.String |
dataLocation
Filter by data location
|
java.lang.String |
emailFilter
Filter by email
|
java.util.List<java.lang.String> |
entries
Filter by UID
|
java.util.List<java.lang.String> |
entryUidFilter
Filter by UID
|
int |
from
Search offset
|
boolean |
hiddenFilter
True, if the search should ignore hidden
DirEntry s. |
java.util.List<BaseDirEntry.Kind> |
kindsFilter
Filter by Kind (USER, GROUP, RESOURCE, MAILSHARE, CALENDAR, ADDRESSBOOK,
DOMAIN, ORG_UNIT, EXTERNALUSER)
|
java.lang.String |
nameFilter
Filter by name
|
java.lang.String |
nameOrEmailFilter
Filter by name or email
|
boolean |
onlyManagable
True if the search returns only manageable
DirEntry s (entries where
the executing user owns the role MANAGE) |
DirEntryQuery.Order |
order
Search direction, ascending by default
|
int |
size
Maximal result size, -1 if there is no limit.
|
DirEntryQuery.StateFilter |
stateFilter
Filter by State (Archived, Active, All)
|
boolean |
systemFilter
True, if the search should ignore internal(system)
DirEntry s. |
Constructor and Description |
---|
DirEntryQuery() |
Modifier and Type | Method and Description |
---|---|
static DirEntryQuery |
all()
Creates a query which returns all
DirEntry s |
static DirEntryQuery.Order |
defaultOrder()
Returns the default sort order
|
static DirEntryQuery |
entries(java.util.List<java.lang.String> uids)
Creates a query which filters by the given UIDs
|
static DirEntryQuery |
entries(java.lang.String... uid)
Creates a query which filters by the given UIDs
|
static DirEntryQuery |
filterEmail(java.lang.String email)
Creates a query which filters by email
|
static DirEntryQuery |
filterEntryUid(java.lang.String... entryUids)
Creates a query which filters by the UID parameter
|
static DirEntryQuery |
filterKind(BaseDirEntry.Kind... kinds)
Creates a query which filters by the kind parameter
|
static DirEntryQuery |
filterName(java.lang.String name)
Creates a query which filters by name
|
static DirEntryQuery |
filterNameOrEmail(java.lang.String string)
Creates a query which filters by name or email
|
static DirEntryQuery.Order |
order(DirEntryQuery.OrderBy by,
DirEntryQuery.Dir dir)
Sets the sort order
|
public DirEntryQuery.Order order
public java.lang.String nameFilter
public boolean hiddenFilter
DirEntry
s. Default value is
Truepublic java.lang.String emailFilter
public java.lang.String nameOrEmailFilter
public DirEntryQuery.StateFilter stateFilter
public boolean systemFilter
DirEntry
s. Default
value is Truepublic java.util.List<BaseDirEntry.Kind> kindsFilter
public java.util.List<java.lang.String> entries
public BaseDirEntry.AccountType accountTypeFilter
public int from
public int size
public java.util.List<java.lang.String> entryUidFilter
public boolean onlyManagable
DirEntry
s (entries where
the executing user owns the role MANAGE)public java.lang.String dataLocation
public static DirEntryQuery all()
DirEntry
sDirEntryQuery
public static DirEntryQuery entries(java.util.List<java.lang.String> uids)
uids
- List of UIDsDirEntryQuery
public static DirEntryQuery entries(java.lang.String... uid)
uids
- Array of UIDsDirEntryQuery
public static DirEntryQuery.Order defaultOrder()
public static DirEntryQuery.Order order(DirEntryQuery.OrderBy by, DirEntryQuery.Dir dir)
by
- Defines the property used by the order statementdir
- The sort orderpublic static DirEntryQuery filterKind(BaseDirEntry.Kind... kinds)
kinds
- The requested kindsDirEntryQuery
public static DirEntryQuery filterName(java.lang.String name)
name
- The nameDirEntryQuery
public static DirEntryQuery filterEmail(java.lang.String email)
email
- The email addressDirEntryQuery
public static DirEntryQuery filterEntryUid(java.lang.String... entryUids)
entryUids
- Array of UIDsDirEntryQuery
public static DirEntryQuery filterNameOrEmail(java.lang.String string)
string
- search valueDirEntryQuery
Copyright © 2021. All Rights Reserved.