Package com.sun.identity.common
Class AdministrationServiceListener
- java.lang.Object
-
- com.sun.identity.common.AdministrationServiceListener
-
- All Implemented Interfaces:
AMConstants,ServiceListener
public class AdministrationServiceListener extends Object implements AMConstants, ServiceListener
This class is a cache and Listener for Administration Service
-
-
Field Summary
-
Fields inherited from interface com.iplanet.am.sdk.AMConstants
ADD_MEMBER, ADMIN_GROUPS_ENABLED_ATTR, ADMIN_ROLE_ATTR, ADMINISTRATION_SERVICE, CACHE_ENABLED_DISABLED_KEY, CACHE_MAX_SIZE_KEY, COMPLIANCE_SPECIAL_FILTER_ATTR, COMPLIANCE_USER_DELETION_ATTR, CONTAINER_DEFAULT_TEMPLATE_ROLE, CONTAINER_SUPPORTED_TYPES_ATTRIBUTE, DCT_ATTRIBUTE_LIST_ATTR, DCT_ENABLED_ATTR, DOMAIN_ADMINISTRATORS, DOMAIN_HELP_DESK_ADMINISTRATORS, EMAIL_ATTRIBUTE, FILTER_ATTR_NAME, INET_ADMIN_OBJECT_CLASS, INET_DOMAIN_STATUS_ATTR, INET_DOMAIN_STATUS_ATTRIBUTE, INVALID_USERID_CHARACTERS, OTHER_COSATTR_TYPE, POLICY_COSATTR_TYPE, POLICY_SUFFIX, PRE_POST_PROCESSING_MODULES_ATTR, REMOVE_ATTRIBUTE, REMOVE_MEMBER, REQUIRED_SERVICES_ATTR, ROLE_MANAGED_CONTAINER_DN_ATTRIBUTE, SCOPE_BASE, SCOPE_ONE, SCOPE_SUB, SERVICE_STATUS_ATTRIBUTE, STATIC_GROUP_DN_ATTRIBUTE, SUBSCRIBABLE_ATTRIBUTE, UNIQUE_ATTRIBUTE_LIST_ATTRIBUTE, UNIQUE_MEMBER_ATTRIBUTE, USER_CREATE_NOTIFICATION_LIST, USER_DELETE_NOTIFICATION_LIST, USER_ENCRYPTED_PASSWORD_ATTRIBUTE, USER_ENTRY_PROCESSING_IMPL, USER_MODIFY_NOTIFICATION_LIST, USER_PASSWORD_ATTRIBUTE, USER_SEARCH_RETURN_ATTR, USERID_PASSWORD_VALIDATION_CLASS
-
Fields inherited from interface com.sun.identity.sm.ServiceListener
ADDED, MODIFIED, REMOVED
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static StringgetGlobalInvalidCharsFromCache()Returns global invalid characters from cache.static StringgetGlobalPluginNameFromCache()Returns global user/password validation plugin name from cache.static StringgetOrgInvalidCharsFromCache(String orgDN)Returns invalid characters from cache.static StringgetOrgPluginNameFromCache(String orgDN)Returns user/password validation plugin name from cache.voidglobalConfigChanged(String serviceName, String version, String groupName, String serviceComponent, int type)This method will be invoked when a service's global configuration data has been changed.voidorganizationConfigChanged(String serviceName, String version, String orgName, String goupName, String serviceComponent, int type)This method will be invoked when a service's organization configuration data has been changed.voidschemaChanged(String serviceName, String version)This method will be invoked when a service's schema has been changed.static voidsetGlobalInvalidCharsInCache(String invalidChars)Sets global Invalid characters in cache.static voidsetGlobalPluginNameInCache(String pluginName)Sets global user/password validation plugin name in cache.static voidsetOrgInvalidCharsInCache(String orgDN, String invalidChars)Sets invalid characters in cache.static voidsetOrgPluginNameInCache(String orgDN, String pluginName)Sets user/password validation plugin name in cache.
-
-
-
Method Detail
-
getOrgInvalidCharsFromCache
public static String getOrgInvalidCharsFromCache(String orgDN)
Returns invalid characters from cache.- Parameters:
orgDN- organization/realm name.- Returns:
- Invalid characters for username and password.
-
setOrgInvalidCharsInCache
public static void setOrgInvalidCharsInCache(String orgDN, String invalidChars)
Sets invalid characters in cache.- Parameters:
orgDN- organization/realm name.invalidChars- invalid characters for username and password.
-
getGlobalInvalidCharsFromCache
public static String getGlobalInvalidCharsFromCache()
Returns global invalid characters from cache.- Returns:
- global invalid characters for username and password.
-
setGlobalInvalidCharsInCache
public static void setGlobalInvalidCharsInCache(String invalidChars)
Sets global Invalid characters in cache.- Parameters:
invalidChars- global invalid characters for username and password.
-
getOrgPluginNameFromCache
public static String getOrgPluginNameFromCache(String orgDN)
Returns user/password validation plugin name from cache.- Parameters:
orgDN- organization/realm name.- Returns:
- user/password validation plugin name from cache.
-
setOrgPluginNameInCache
public static void setOrgPluginNameInCache(String orgDN, String pluginName)
Sets user/password validation plugin name in cache.- Parameters:
orgDN- organization/realm name.pluginName- user/password validation plugin name.
-
getGlobalPluginNameFromCache
public static String getGlobalPluginNameFromCache()
Returns global user/password validation plugin name from cache.- Returns:
- global user/password validation plugin name.
-
setGlobalPluginNameInCache
public static void setGlobalPluginNameInCache(String pluginName)
Sets global user/password validation plugin name in cache.- Parameters:
pluginName- global user/password validation plugin name.
-
globalConfigChanged
public void globalConfigChanged(String serviceName, String version, String groupName, String serviceComponent, int type)
This method will be invoked when a service's global configuration data has been changed.- Specified by:
globalConfigChangedin interfaceServiceListener- Parameters:
serviceName- name of the service.version- version of the service.groupName- name of the configuration grouping.serviceComponent- name of the service components that changed.type- change type, i.e., ADDED, REMOVED or MODIFIED.
-
schemaChanged
public void schemaChanged(String serviceName, String version)
This method will be invoked when a service's schema has been changed. It is a no-op for this implementation.- Specified by:
schemaChangedin interfaceServiceListener- Parameters:
serviceName- name of the serviceversion- version of the service
-
organizationConfigChanged
public void organizationConfigChanged(String serviceName, String version, String orgName, String goupName, String serviceComponent, int type)
This method will be invoked when a service's organization configuration data has been changed. It removes the invalid charecters cache if service configuration is modified or removed.- Specified by:
organizationConfigChangedin interfaceServiceListener- Parameters:
serviceName- name of the service.version- version of the service.goupName- name of the configuration grouping.serviceComponent- name of the service components that changed.type- change type, i.e., ADDED, REMOVED or MODIFIED.orgName- organization name as DN
-
-