Class IdRepoListener


  • @SupportedAll
    public final class IdRepoListener
    extends Object
    Provides methods that can be called by IdRepo plugins to notify change events. Used to update cache and also to send notifications to registered listeners. Each IdRepo plugin will be given a unique instance of this object. Additionally, this class maintains the configuration data for the IdRepo plugin and also to store the SMS Service attributes for the organization.
    • Field Detail

      • sclient

        protected static com.sun.identity.shared.jaxrpc.SOAPClient sclient
      • OBJECT_ADDED

        public static final int OBJECT_ADDED
        Represents an object addition event type.
        See Also:
        Constant Field Values
      • OBJECT_CHANGED

        public static final int OBJECT_CHANGED
        Represents an object change event type.
        See Also:
        Constant Field Values
      • OBJECT_REMOVED

        public static final int OBJECT_REMOVED
        Represents an object removal event type.
        See Also:
        Constant Field Values
      • OBJECT_RENAMED

        public static final int OBJECT_RENAMED
        Represents an object renaming event type.
        See Also:
        Constant Field Values
    • Constructor Detail

      • IdRepoListener

        public IdRepoListener()
    • Method Detail

      • allObjectsChanged

        public void allObjectsChanged()
      • objectChanged

        public void objectChanged​(String name,
                                  int type,
                                  Map cMap)
        Deprecated.
        As of Sun Java System Access Manager 7.1.
        This method has been deprecated as of OpenSSO Enterprise 8.0.
        Parameters:
        name - name of the identity that changed
        type - change type i.e., add, delete, modify, etc.
        cMap - configuration map that contains realm and plugin-name
      • objectChanged

        public void objectChanged​(String name,
                                  IdType idType,
                                  int changeType,
                                  Map cMap)
        Notification mechanism for IdRepo plugins to specify the identiy name and identity type that has been changed.
        Parameters:
        name - name of the identity that changed
        idType - IdType i.e., user, group, etc.
        changeType - change type i.e., add, delete, modify, etc.
        cMap - configuration map that contains realm and plugin-name
      • addRemoteListener

        public static void addRemoteListener​(IdEventListener l)
      • getConfigMap

        public Map getConfigMap()
      • setConfigMap

        public void setConfigMap​(Map cMap)
      • setServiceAttributes

        public void setServiceAttributes​(String sName,
                                         Map attrs)
                                  throws IdRepoException
        Stores service's dynamic attributes within the IdRepo plugin configuration. In the current implementation changes to dynamic attributes to LDAPv3Repo restart the plugin, since it triggers a configuration change notification.
        Parameters:
        sName - service name for which attributes are being set
        attrs - service synamic attributes
        Throws:
        IdRepoException - If there was an error while setting the service attributes.