Class CachedSubEntries

    • Method Detail

      • getSubEntries

        protected Set getSubEntries​(SSOToken t)
                             throws SMSException,
                                    SSOException
        Returns one-level sub-entries for the given DN. Results are cached.
        Parameters:
        t - SSOToken to used for searching
        Returns:
        sub entries for the given DN
        Throws:
        SMSException - if an error occurs accessing the data store.
        SSOException - if the single sign-on token is invalid.
      • getSubEntries

        public Set<String> getSubEntries​(SSOToken token,
                                         String pattern)
                                  throws SMSException,
                                         SSOException
        Return sub-entries that match the pattern. Performs data store operation, the results are not cached
        Parameters:
        token - the SSOToken used for searching
        pattern - the search pattern to match sub-entries against
        Returns:
        subentries that match the pattern
        Throws:
        SMSException - if an error occurs accessing the data store.
        SSOException - if the single sign-on token is invalid.
      • getSchemaSubEntries

        public Set getSchemaSubEntries​(SSOToken token,
                                       String pattern,
                                       String serviceidPattern)
                                throws SMSException,
                                       SSOException
        Returns sub-entries that belong to given SubSchema name and statisfies the pattern. The results are not cached.
        Parameters:
        token - the SSOToken used for searching
        pattern - the search pattern to match sub-entries against
        serviceidPattern - sub-schema name
        Returns:
        subentries that belong to given SubSchema name and satisfies the pattern
        Throws:
        SMSException - if an error occurs accessing the data store.
        SSOException - if the single sign-on token is invalid.
      • add

        protected void add​(String entry)
      • remove

        protected void remove​(String entry)
      • getSMSEntry

        protected SMSEntry getSMSEntry()
      • update

        protected void update()
      • searchSubOrgNames

        public Set searchSubOrgNames​(SSOToken token,
                                     String pattern,
                                     boolean recursive)
                              throws SMSException,
                                     SSOException
        Returns realm names that matches the given pattern. If recursive is set to true, a sub-tree search is performed. The results are not cached.
        Parameters:
        token - the SSOToken used for searching
        pattern - the search pattern to match realm names against
        recursive - if true a sub-tree search is performed
        Returns:
        realm names that matches the given pattern
        Throws:
        SMSException - if an error occurs accessing the data store.
        SSOException - if the single sign-on token is invalid.
      • searchOrgNames

        public Set searchOrgNames​(SSOToken token,
                                  String serviceName,
                                  String attrName,
                                  Set values)
                           throws SMSException,
                                  SSOException
        Returns realm names that match the attribute-values pair for the given service name. The attribute-values pairs is based on organization attribute schema. A sub-tree search is performed. The results are not cached.
        Parameters:
        token - the SSOToken used for searching
        serviceName - the service name whose attribute schema is used
        attrName - the attribute name to match
        values - the attribute values to match
        Returns:
        realm names that match the attributevalues pair for the given service name
        Throws:
        SMSException - if an error occurs accessing the data store.
        SSOException - if the single sign-on token is invalid.
      • notifySMSEvent

        public void notifySMSEvent​(org.forgerock.opendj.ldap.DN dn,
                                   int event)
        Description copied from interface: SMSEventListener
        Called when an SMS event occurs to the requested object.
        Specified by:
        notifySMSEvent in interface SMSEventListener
        Parameters:
        dn - The DN of the object that the event has occurred for.
        event - The event that has occurred.