Interface Realm
-
- All Superinterfaces:
- EngineObject, IndependentObject, java.io.Serializable
public interface Realm extends IndependentObject
Consists of a set of related groups and users. A realm is normally mapped to a directory partition (that is, anamingContext
) in a directory server. The primary use of aRealm
object is to retrieve lists of the groups and users in the realm.You can instantiate a
Realm
object by:- calling methods on the
Factory.Realm
class. (See the note below.) - calling
EntireNetwork.get_MyRealm()
, which returns aRealm
object representing the realm in which the caller resides. - iterating a
RealmSet
collection.
Note: When instantiating using the static factory methods, calling
getInstance
with anull
realm name returns the current realm; the behavior is the same as callingFactory.Realm.fetchCurrent()
.Metadata
-
-
Method Summary
Methods Modifier and Type Method and Description GroupSet
findGroups(java.lang.String searchPattern, PrincipalSearchType searchType, PrincipalSearchAttribute searchAttribute, PrincipalSearchSortType sortType, java.lang.Integer pageSize, PropertyFilter filter)
Returns a set of groups from this realm that matches the search parameters.UserSet
findUsers(java.lang.String searchPattern, PrincipalSearchType searchType, PrincipalSearchAttribute searchAttribute, PrincipalSearchSortType sortType, java.lang.Integer pageSize, PropertyFilter filter)
Returns a set of users, a page at a time, from this realm that matches the search parameters.java.lang.String
get_Name()
Returns the value of the Name property.-
Methods inherited from interface com.filenet.api.core.IndependentObject
fetchProperties, fetchProperties, fetchProperty, fetchProperty, getObjectReference, refresh, refresh, refresh
-
Methods inherited from interface com.filenet.api.core.EngineObject
get_ClassDescription, getClassName, getConnection, getProperties, getSuperClasses
-
-
-
-
Method Detail
-
get_Name
java.lang.String get_Name()
Returns the value of the Name property. For more information, see Name Property.
-
findUsers
UserSet findUsers(java.lang.String searchPattern, PrincipalSearchType searchType, PrincipalSearchAttribute searchAttribute, PrincipalSearchSortType sortType, java.lang.Integer pageSize, PropertyFilter filter)
Returns a set of users, a page at a time, from this realm that matches the search parameters. The size of each page of results is governed by the value of thepageSize
parameter.Note:
- Searching is not case sensitive.
- If IBM Virtual Member Manager (VMM) or IBM Connections is configured as a directory service provider for Content Platform Engine, this method will return only the first page of search results.
- If IBM Connections is configured as a directory service provider for Content Platform Engine, then search type options
are limited to the following values:
PrincipalSearchType.EXACT
orPrincipalSearchType.PREFIX_MATCH
.
The rules that govern the search behavior are:
- If
sortType
has a non-null value (not none), thensearchAttribute
must also have a non-null value. (sortType
needs a value to sort on.) -
If either
searchPattern
orsearchType
has a positive value (not empty or non-null, respectively), thensearchPattern
,searchType
, andsearchAttribute
must all have positive values.
If you pass in
null
for thefilter
parameter, this method returns values for all non-object properties and returns placeholders for all object-valued properties. For more information, see the description of thefilter
parameter.- Parameters:
searchPattern
- AString
expression that specifies the string pattern used for the search. Case does not matter.searchType
- Specifies how the search pattern is applied;null
indicates no preference.searchAttribute
- Specifies theUser
object property to use for the search;null
indicates none.sortType
- Specifies the desired sorting;null
indicates no sorting is to be performed.pageSize
- Specifies the size of each page ofUser
objects returned; ifnull
or zero (0), page size defaults to 499.filter
- APropertyFilter
object that represents information for controlling which property values (and with what level of detail and recursion) to return. Ifnull
, this method returns values for all non-object properties and returns placeholders for all object-valued properties (PropertyEngineObject
properties with a state ofPropertyState.UNEVALUATED
orPropertyState.REFERENCE
); any subsequent attempts to access an object-valued property will cause an automatic round-trip to the server to fetch its value.- Returns:
- A
UserSet
object containing theUser
objects matching the search request.
-
findGroups
GroupSet findGroups(java.lang.String searchPattern, PrincipalSearchType searchType, PrincipalSearchAttribute searchAttribute, PrincipalSearchSortType sortType, java.lang.Integer pageSize, PropertyFilter filter)
Returns a set of groups from this realm that matches the search parameters.Note:
- Searching is not case sensitive.
- If IBM Virtual Member Manager (VMM) or IBM Connections is configured as a directory service provider for Content Platform Engine, this method will return only the first page of search results.
- If IBM Connections is configured as a directory service provider for Content Platform Engine, then search type options
are limited to the following values:
PrincipalSearchType.EXACT
orPrincipalSearchType.PREFIX_MATCH
.
The rules that govern the search behavior are:
- If
sortType
has a non-null value (not none), thensearchAttribute
must also have a non-null value. (sortType
needs a value to sort on.) -
If either
searchPattern
orsearchType
has a positive value (not empty or non-null, respectively), thensearchPattern
,searchType
, andsearchAttribute
must all have positive values.
If you pass in
null
for thefilter
parameter, this method returns values for all non-object properties and returns placeholders for all object-valued properties. For more information, see the description of thefilter
parameter.- Parameters:
searchPattern
- AString
expression that specifies the string pattern used for the search. Case does not matter.searchType
- Specifies how the search pattern is applied;null
indicates no preference.searchAttribute
- Specifies theGroup
object property to use for the search;null
indicates none.sortType
- Specifies the desired sorting;null
indicates no sorting is to be performed.pageSize
- Specifies the size of each page ofGroup
objects returned; ifnull
or zero (0), page size defaults to 499.filter
- APropertyFilter
object that represents information for controlling which property values (and with what level of detail and recursion) to return. Ifnull
, this method returns values for all non-object properties and returns placeholders for all object-valued properties (PropertyEngineObject
properties with a state ofPropertyState.UNEVALUATED
orPropertyState.REFERENCE
); any subsequent attempts to access an object-valued property will cause an automatic round-trip to the server to fetch its value. Ifnull
, this method returns only non-object-valued property values for this object.- Returns:
- A
GroupSet
object containing theGroup
objects matching the search request.
-
-