Package com.sun.identity.idm
Class IdRepoListener
- java.lang.Object
-
- com.sun.identity.idm.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 Summary
Fields Modifier and Type Field Description static int
OBJECT_ADDED
Represents an object addition event type.static int
OBJECT_CHANGED
Represents an object change event type.static int
OBJECT_REMOVED
Represents an object removal event type.static int
OBJECT_RENAMED
Represents an object renaming event type.protected static com.sun.identity.shared.jaxrpc.SOAPClient
sclient
-
Constructor Summary
Constructors Constructor Description IdRepoListener()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static void
addRemoteListener(IdEventListener l)
void
allObjectsChanged()
Map
getConfigMap()
void
objectChanged(String name, int type, Map cMap)
Deprecated.As of Sun Java System Access Manager 7.1.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.void
setConfigMap(Map cMap)
void
setServiceAttributes(String sName, Map attrs)
Stores service's dynamic attributes within the IdRepo plugin configuration.
-
-
-
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
-
-
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 changedtype
- 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 changedidType
- 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 setattrs
- service synamic attributes- Throws:
IdRepoException
- If there was an error while setting the service attributes.
-
-