public class AdminInterfaceUtils extends Object implements ServiceListener
AdminInterfaceUtils
provides a set common utility methods to
administration console and command line tool.ADDED, MODIFIED, REMOVED
Constructor and Description |
---|
AdminInterfaceUtils() |
Modifier and Type | Method and Description |
---|---|
static String |
defaultAgentContainerName()
Returns the default agent container name.
|
static String |
defaultGCCreateDuringOrgConfig()
Returns the default group container name created when an organization is
created in OpenAM.
|
static String |
defaultGroupContainerName()
Returns the default group container name.
|
static String |
defaultHelpDeskAdminRoleCreateDuringOrgConfig()
Returns the default help desk admin role name created when an
organization is created in OpenAM.
|
static String |
defaultOrgAdminRoleCreateDuringOrgConfig()
Returns the default org admin role name created when an organization is
created in OpenAM.
|
static String |
defaultPCCreateDuringOrgConfig()
Returns the default people container name created when an organization is
created in OpenAM.
|
static String |
defaultPeopleContainerName()
Returns the default people container name.
|
static String |
defaultPolicyAdminRoleCreateDuringOrgConfig()
Returns the default policy admin role name created when an organization
is created in OpenAM.
|
static AMObject |
getAMObject(Debug debug,
String dn,
AMStoreConnection storeConn)
Returns the
AMObject of a given DN and a store connection. |
static String |
getNamingAttribute(int object,
Debug debug)
Returns the naming attribute used the specified object.
|
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.
|
static boolean |
inOrganizationalUnit(Debug debug,
AMStoreConnection storeConn,
AMObject obj)
Returns true if an object is a descendent of an organizational unit.
|
void |
organizationConfigChanged(String serviceName,
String version,
String orgName,
String groupName,
String serviceComponent,
int type)
This method will be invoked when a service's organization configuration
data has been changed.
|
void |
schemaChanged(String serviceName,
String version)
This method will be invoked when a service's schema has been changed.
|
public static AMObject getAMObject(Debug debug, String dn, AMStoreConnection storeConn) throws AMException, SSOException
AMObject
of a given DN and a store connection.debug
- instancedn
- of the object as a StringstoreConn
- store connectionAMObject
AMException
- if AMSDK
is unable to get
AMObject
for dn
SSOException
- if session expires.public static boolean inOrganizationalUnit(Debug debug, AMStoreConnection storeConn, AMObject obj)
debug
- instancestoreConn
- Store Connection object.obj
- AMObject
to be inspected.obj
is a descendent of an organizational
unit.public static String getNamingAttribute(int object, Debug debug)
object
- type of object.debug
- instance for writing warning message.public static String defaultPeopleContainerName()
public static String defaultGroupContainerName()
public static String defaultAgentContainerName()
public static String defaultPCCreateDuringOrgConfig()
public static String defaultGCCreateDuringOrgConfig()
public static String defaultOrgAdminRoleCreateDuringOrgConfig()
public static String defaultHelpDeskAdminRoleCreateDuringOrgConfig()
public static String defaultPolicyAdminRoleCreateDuringOrgConfig()
public void schemaChanged(String serviceName, String version)
ServiceListener
schemaChanged
in interface ServiceListener
serviceName
- name of the serviceversion
- version of the servicepublic void globalConfigChanged(String serviceName, String version, String groupName, String serviceComponent, int type)
ServiceListener
groupName
denote the name
of the configuration grouping (e.g. default) and
serviceComponent
denotes the service's sub-component that
changed (e.g. /NamedPolicy
, /Templates
).globalConfigChanged
in interface ServiceListener
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.public void organizationConfigChanged(String serviceName, String version, String orgName, String groupName, String serviceComponent, int type)
ServiceListener
orgName
,
groupName
and serviceComponent
denotes the
organization name, configuration grouping name and service's
sub-component that are changed respectively.organizationConfigChanged
in interface ServiceListener
serviceName
- name of the serviceversion
- version of the serviceorgName
- organization name as DNgroupName
- name of the configuration groupingserviceComponent
- the name of the service components that changedtype
- change type, i.e., ADDED, REMOVED or MODIFIEDCopyright © 2010–2025 Open Identity Platform Community. All rights reserved.