com.filenet.api.security

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, a namingContext) in a directory server. The primary use of a Realm 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 a Realm object representing the realm in which the caller resides.
    • iterating a RealmSet collection.

    Note: When instantiating using the static factory methods, calling getInstance with a null realm name returns the current realm; the behavior is the same as calling Factory.Realm.fetchCurrent().

    Metadata

    • 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 the pageSize 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 or PrincipalSearchType.PREFIX_MATCH.

        The rules that govern the search behavior are:

        • If sortType has a non-null value (not none), then searchAttribute must also have a non-null value. (sortType needs a value to sort on.)
        • If either searchPattern or searchType has a positive value (not empty or non-null, respectively), then searchPattern, searchType, and searchAttribute must all have positive values.

        If you pass in null for the filter 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 the filter parameter.

        Parameters:
        searchPattern - A String 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 the User 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 of User objects returned; if null or zero (0), page size defaults to 499.
        filter - A PropertyFilter object that represents information for controlling which property values (and with what level of detail and recursion) to return. If null, this method returns values for all non-object properties and returns placeholders for all object-valued properties (PropertyEngineObject properties with a state of PropertyState.UNEVALUATED or PropertyState.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 the User 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 or PrincipalSearchType.PREFIX_MATCH.

        The rules that govern the search behavior are:

        • If sortType has a non-null value (not none), then searchAttribute must also have a non-null value. (sortType needs a value to sort on.)
        • If either searchPattern or searchType has a positive value (not empty or non-null, respectively), then searchPattern, searchType, and searchAttribute must all have positive values.

        If you pass in null for the filter 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 the filter parameter.

        Parameters:
        searchPattern - A String 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 the Group 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 of Group objects returned; if null or zero (0), page size defaults to 499.
        filter - A PropertyFilter object that represents information for controlling which property values (and with what level of detail and recursion) to return. If null, this method returns values for all non-object properties and returns placeholders for all object-valued properties (PropertyEngineObject properties with a state of PropertyState.UNEVALUATED or PropertyState.REFERENCE); any subsequent attempts to access an object-valued property will cause an automatic round-trip to the server to fetch its value. If null, this method returns only non-object-valued property values for this object.
        Returns:
        A GroupSet object containing the Group objects matching the search request.

© Copyright IBM Corporation 2006, 2013. All rights reserved.