public final class AMStoreConnection extends Object implements AMConstants
AMStoreConnection
class represents a connection to the Sun
Java System Access Manager data store. It provides methods to create, remove
and get different type of Sun Java System Access Manager SDK objects in the
data tore. AMStoreConnection
controls and manages access to
the data store.
An instance of AMStoreConnection
object should always be
obtained by anyone using the AM SDK since this object is the entry point to
all other AM SDK managed objects. The constructor takes the SSO token of the
user. Here is some sample code on how to get a user's attributes, using AM
SDK:
AMStoreConnection amsc = new AMStoreConnection(ssotoken); AMUser user = amsc.getUser(ssotoken.getPrincipal()); Map attributes = user.getAttributes();
AMStoreConnection
also has other helper methods which are very
useful. Some examples below:
int otype = amsc.getAMObjectType(fullDN);
otype
returned is one of the managed AMObject
types, like AMObject.USER
, AMObject.ROLE
,
AMObject.ORGANIZATION
. If the entry being checked in not of
the type managed by AM SDK, then an AMException
is thrown.
boolean exists = amsc.isValidEntry(fullDN);
If there is a fullDN
that you want to know if it exists or not
in the data store, then use the above method. The typical use of this method
is in the case when you know that you need to get a managed object from
amsc
, but you want to verify that it exists before you create
the managed object instance:
if (amsc.isValidEntry(userDN)) { AMUser user = amsc.getUser(userDN); - More code here - }
Helper method getOrganizationDN()
: Use this method to perform
a subtree scoped search for organization,based on various attribute values.
String orgDN = amsc.getOrganizationDN("sun.com", null);
The above method will return the DN of a organization, which matches the
search criterias of having either domain name of sun.com
,
Domain alias name of sun.com
or it's naming attribute value is
sun.com
. More examples of how to use this method are provided
in the Javadocs of the method below.
Modifier and Type | Field and Description |
---|---|
protected static String |
defaultOrg
Deprecated.
|
protected static Map |
orgMapCache
Deprecated.
|
static String |
rootSuffix
Deprecated.
|
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
Constructor and Description |
---|
AMStoreConnection(SSOToken ssoToken)
Deprecated.
Gets the connection to the Sun Java System Access Manager data store if
the Session is valid.
|
Modifier and Type | Method and Description |
---|---|
protected static void |
addToOrgMapCache(SSOToken stoken,
String dn)
Deprecated.
Protected method to update the
orgMapCache |
AMOrganization |
createTopOrganization(String orgName,
Map avPairs)
Deprecated.
Bootstraps the Organization tree by creating the Top Organization tree.
|
protected static int |
daysSinceModified(SSOToken stoken,
String entryDN)
Deprecated.
Protected method to obtain the number of days since this DN was last
modified.
|
String |
getAMObjectName(int type)
Deprecated.
Take a supported type, and returns the matching name of the supported
managed type.
|
int |
getAMObjectType(String dn)
Deprecated.
Returns the type of the object given its DN.
|
static String |
getAMSdkBaseDN()
Deprecated.
Returns the root suffix for user management node.
|
AMAssignableDynamicGroup |
getAssignableDynamicGroup(String assignableDynamicGroupDN)
Deprecated.
Returns the handle to the
AMAssignableDynamicGroup object
represented by DN. |
Set |
getAttributeNames(String serviceName,
AMSchema.Type schemaType)
Deprecated.
use
com.sun.identity.sm.ServiceSchemaManager.
getServiceAttributeNames(com.sun.identity.sm.SchemaType) |
protected String |
getBaseDN(ServiceConfig sc)
Deprecated.
|
AMDynamicGroup |
getDynamicGroup(String dynamicGroupDN)
Deprecated.
Returns the handle to the
AMDynamicGroup object
represented by DN. |
AMEntity |
getEntity(String eDN)
Deprecated.
Returns the handle to the
AMEntity object represented by
DN. |
Set |
getEntityTypes()
Deprecated.
Returns a set of
com.iplanet.am.sdk.AMEntityType objects,
which is the set of objects which are supported by the
com.iplanet.am.sdk.AMEntity APIs. |
AMFilteredRole |
getFilteredRole(String roleDN)
Deprecated.
Returns the handle to the
AMFilteredRole object
represented by DN. |
static String |
getFilteredRoleNamingAttribute()
Deprecated.
This method is deprecated. Use
getNamingAttribute(int objectType) |
AMGroupContainer |
getGroupContainer(String groupContainerDN)
Deprecated.
Returns the handle to the
AMGroupContainer object
represented by DN. |
static String |
getGroupContainerNamingAttribute()
Deprecated.
This method is deprecated. Use
getNamingAttribute(int objectType) |
static String |
getGroupNamingAttribute()
Deprecated.
This method is deprecated. Use
getNamingAttribute(int objectType) |
String |
getI18NPropertiesFileName(String serviceName)
Deprecated.
Returns the I18N properties file name that contains the internationalized
messages.
|
static String |
getNamingAttribute(int objectType)
Deprecated.
Returns the naming attribute of an object type.
|
static String |
getObjectName(int type)
Deprecated.
Take a supported type, and returns the matching name of the supported
managed type.
|
AMOrganization |
getOrganization(String orgDN)
Deprecated.
Returns the handle to the
AMOrganization object
represented by DN. |
AMOrganizationalUnit |
getOrganizationalUnit(String orgUnitDN)
Deprecated.
Returns the handle to the
AMOrganizationalUnit object
represented by DN. |
static String |
getOrganizationalUnitNamingAttribute()
Deprecated.
This method is deprecated. Use
getNamingAttribute(int objectType) |
String |
getOrganizationDN(String domainname,
String orgSearchTemplate)
Deprecated.
Returns the DN of the organization, using the
domainname
provided and the searchTemplate (if provided). |
static String |
getOrganizationNamingAttribute()
Deprecated.
This method is deprecated. Use
getNamingAttribute(int objectType) |
AMPeopleContainer |
getPeopleContainer(String peopleContainerDN)
Deprecated.
Returns the handle to the
AMPeopleContainer object
represented by DN. |
static String |
getPeopleContainerNamingAttribute()
Deprecated.
This method is deprecated. Use
getNamingAttribute(int objectType) |
AMTemplate |
getPolicyTemplate(String templateDN)
Deprecated.
|
String |
getPropertiesViewBeanURL(String serviceName)
Deprecated.
Returns the URL of the view bean for the service
|
AMResource |
getResource(String resourceDN)
Deprecated.
Returns the handle to the
AMResource object represented by
DN. |
AMRole |
getRole(String roleDN)
Deprecated.
Returns the handle to the
AMRole object represented by DN. |
static String |
getRoleNamingAttribute()
Deprecated.
This method is deprecated. Use
getNamingAttribute(int objectType) |
AMSchema |
getSchema(String serviceName,
AMSchema.Type schemaType)
Deprecated.
This method has been deprecated. Please use
com.sun.identity.sm.ServiceSchemaManager.getSchema()
. |
Set |
getSchemaTypes(String serviceName)
Deprecated.
This method has been deprecated. Please use
com.sun.identity.sm.ServiceSchemaManager.getSchemaTypes()
. |
Set |
getServiceHierarchy()
Deprecated.
Returns the service hierarchy for all registered services.
|
Set |
getServiceNames()
Deprecated.
Returns the set of name of services that have been loaded to the data
store.
|
AMStaticGroup |
getStaticGroup(String groupDN)
Deprecated.
Returns the handle to the
AMStaticGroup object represented
by DN. |
Set |
getTopLevelContainers()
Deprecated.
Returns the top level containers (Organizations, People Containers,
Roles, etc) for the particular user based on single sign on token as the
starting point in the tree.
|
Set |
getTopLevelOrganizations()
Deprecated.
Returns the "real" or "physical" top level organizations as the starting
point in the tree.
|
AMUser |
getUser(String userDN)
Deprecated.
Returns the handle to the
AMUser object represented by DN. |
static String |
getUserNamingAttribute()
Deprecated.
This method is deprecated. Use
getNamingAttribute(int objectType) |
protected boolean |
isRFC2247(ServiceConfig sc)
Deprecated.
|
boolean |
isValidEntry(String dn)
Deprecated.
Checks if the entry exists in the directory or not.
|
void |
purge(String domainName,
int graceperiod)
Deprecated.
This method takes an organization DN and purges all objects marked for
deletion.
|
void |
purgeGroup(String gid,
String domainName,
int graceperiod)
Deprecated.
This method takes a group name and a domain name, It uses default search
templates to search for the organization and uses the deleted objects
search filter for Groups as defined in the Administration Service of
Access Manager.
|
void |
purgeResource(String rid,
String domainName,
int graceperiod)
Deprecated.
This method takes a resource ID and a domain name, It uses default search
templates to search for the organization and uses the deleted objects
search filter for Resources as defined in the Administration Service of
Access Manager.
|
void |
purgeUser(String uid,
String domainName,
int graceperiod)
Deprecated.
This method takes a user ID and a domain name, It uses default search
templates to search for the organization and uses the deleted objects
search filter for Users as defined in the Administration Service of
Access Manager.
|
protected static void |
updateCache(String dn,
int eventType)
Deprecated.
Protected method to update
orgMapCache . |
public static String rootSuffix
protected static String defaultOrg
protected static Map orgMapCache
public AMStoreConnection(SSOToken ssoToken) throws SSOException
ssoToken
- a valid SSO token object to authenticate before getting the
connectionSSOException
- if single sign on token is invalid or expired.public static String getAMSdkBaseDN()
public static String getFilteredRoleNamingAttribute()
getNamingAttribute(int objectType)
public static String getGroupContainerNamingAttribute()
getNamingAttribute(int objectType)
public static String getGroupNamingAttribute()
getNamingAttribute(int objectType)
public static String getNamingAttribute(int objectType) throws AMException
objectType
- Object type can be one of the following:
objectType
AMException
- if an error occurred in obtaining the naming attributepublic static String getOrganizationNamingAttribute()
getNamingAttribute(int objectType)
public static String getOrganizationalUnitNamingAttribute()
getNamingAttribute(int objectType)
public static String getPeopleContainerNamingAttribute()
getNamingAttribute(int objectType)
public static String getRoleNamingAttribute()
getNamingAttribute(int objectType)
public static String getUserNamingAttribute()
getNamingAttribute(int objectType)
public int getAMObjectType(String dn) throws AMException, SSOException
dn
- DN of the object whose type is to be known.AMException
- if the data store is unavailable or if the object type is
unknown.SSOException
- if single sign on token is invalid or expired.public String getAMObjectName(int type)
AMObject.USER
is passed in,
it will return "user" (one of the basic supported types in AM SDK. But
this method (and configuration in the service DAI
) can be
used to extend the basic supported types to include customer-specific
entities, like "agents", "printers" etc.type
- Integer type (as returned by getAMObjectType
)public static String getObjectName(int type)
AMObject.USER
is passed in,
it will return "user" (one of the basic supported types in AM SDK. But
this method (and configuration in the service DAI
) can be
used to extend the basic supported types to include customer-specific
entities, like "agents", "printers" etc.type
- Integer type (as returned by getAMObjectType
)public AMAssignableDynamicGroup getAssignableDynamicGroup(String assignableDynamicGroupDN) throws SSOException
AMAssignableDynamicGroup
object
represented by DN. However, the validity of the handle returned by this
method cannot be guaranteed, since the object is created in memory, and
not instantiated from the data store. Using the
AMAssignableDynamicGroup
returned from this method may
result in exceptions thrown in the later part of the application, if the
DN is not valid or represents an entry that does not exist.
Validity of the DN can be verified is using isValidEntry()
method of the object returned.
assignableDynamicGroupDN
- assignable dynamic group DNAMAssignableDynamicGroup
object represented by DN.SSOException
- if single sign on token is invalid or expired.isValidEntry(java.lang.String)
public Set getAttributeNames(String serviceName, AMSchema.Type schemaType) throws AMException
com.sun.identity.sm.ServiceSchemaManager.
getServiceAttributeNames(com.sun.identity.sm.SchemaType)
serviceName
- the name of the serviceschemaType
- the type of service schemaAMException
- if an error is encountered while retrieving information.public AMDynamicGroup getDynamicGroup(String dynamicGroupDN) throws SSOException
AMDynamicGroup
object
represented by DN. However, the validity of the handle returned by this
method cannot be guaranteed, since the object is created in memory, and
not instantiated from the data store. Using the
AMDynamicGroup
returned from this method may result in
exceptions thrown in the later part of the application, if the DN is not
valid or represents an entry that does not exist.
Validity of the DN can be verified is using isValidEntry()
method of the object returned.
dynamicGroupDN
- group DNAMDynamicGroup
object represented by DN.SSOException
- if single sign on token is invalid or expired.isValidEntry(java.lang.String)
public AMFilteredRole getFilteredRole(String roleDN) throws SSOException
AMFilteredRole
object
represented by DN. However, the validity of the handle returned by this
method cannot be guaranteed, since the object is created in memory, and
not instantiated from the data store. Using the
AMFilteredRole
returned from this method may result in
exceptions thrown in the later part of the application, if the DN is not
valid or represents an entry that does not exist.
Validity of the DN can be verified is using isValidEntry()
method of the object returned.
roleDN
- role DN.AMFilteredRole
object represented by DN.SSOException
- if single sign on token is invalid or expired.isValidEntry(java.lang.String)
public AMGroupContainer getGroupContainer(String groupContainerDN) throws SSOException
AMGroupContainer
object
represented by DN. However, the validity of the handle returned by this
method cannot be guaranteed, since the object is created in memory, and
not instantiated from the data store. Using the
AMGroupContainer
returned from this method may result in
exceptions thrown in the later part of the application, if the DN is not
valid or represents an entry that does not exist.
Validity of the DN can be verified is using isValidEntry()
method of the object returned.
groupContainerDN
- group container DN.AMGroupContainer
object represented by DN.SSOException
- if single sign on token is invalid or expired.isValidEntry(java.lang.String)
public String getI18NPropertiesFileName(String serviceName) throws AMException
serviceName
- the service nameAMException
- if an error is encountered while retrieving informationpublic AMOrganization getOrganization(String orgDN) throws SSOException
AMOrganization
object
represented by DN. However, the validity of the handle returned by this
method cannot be guaranteed, since the object is created in memory, and
not instantiated from the data store. Using the
AMOrganization
returned from this method may result in
exceptions thrown in the later part of the application, if the DN is not
valid or represents an entry that does not exist.
Validity of the DN can be verified is using isValidEntry()
method of the object returned.
orgDN
- organization DNAMOrganization
object represented by DN.SSOException
- if single sign on token is invalid or expired.isValidEntry(java.lang.String)
public String getOrganizationDN(String domainname, String orgSearchTemplate) throws AMException, SSOException
domainname
provided and the searchTemplate
(if provided). If
searchTemplate
is null, SDK uses the default
searchTemplate
to perform the orgDN
search.
If the DC tree global flag is enabled, the DC tree is used to obtain the
organization DN, otherwise an LDAP search is conducted using the
searchfilter
in the searchtemplate
. All
%V
in the filter are replaced with domainname
.
If the search returns more than one entries, then an Exception is thrown.
Otherwise the DN obtained is returned.domainname
- Organization identifier passed. It can be a domain name
(example: sun.com
) or it could be a full DN or
it could be null or * "/"
. A full DN is
verified to be an organization and returned as is. A "/" is
assumed to be a request for the root DN and the root DN is
returned. A "/" separated string is assumed to represent an
existing organization DN in the DIT. For example:
/iplanet/sun
is converted to a DN
(o=iplanet,o=sun,<base DN>)
and the validity
of this DN is checked and returned. Any other string is
assumed to be either a domain or an associated domain or the
organization name. The search filter is created accordingly.orgSearchTemplate
- template to use for the search.AMException
- If there is a problem connecting or searching the data store.SSOException
- If the user has an invalid SSO token.public AMOrganizationalUnit getOrganizationalUnit(String orgUnitDN) throws SSOException
AMOrganizationalUnit
object
represented by DN. However, the validity of the handle returned by this
method cannot be guaranteed, since the object is created in memory, and
not instantiated from the data store. Using the
AMOrganizationialUnit
returned from this method may result
in exceptions thrown in the later part of the application, if the DN is
not valid or represents an entry that does not exist.
Validity of the DN can be verified is using isValidEntry()
method of the object returned.
orgUnitDN
- organizational unit DNAMOrganizationalUnit
object represented by DN.SSOException
- if single sign on token is invalid or expired.isValidEntry(java.lang.String)
public AMPeopleContainer getPeopleContainer(String peopleContainerDN) throws SSOException
AMPeopleContainer
object
represented by DN. However, the validity of the handle returned by this
method cannot be guaranteed, since the object is created in memory, and
not instantiated from the data store. Using the
AMPeopleContainer
returned from this method may result in
exceptions thrown in the later part of the application, if the DN is not
valid or represents an entry that does not exist.
Validity of the DN can be verified is using isValidEntry()
method of the object returned.
peopleContainerDN
- people container DNAMPeopleContainer
object represented by DN.SSOException
- if single sign on token is invalid or expired.isValidEntry(java.lang.String)
public AMTemplate getPolicyTemplate(String templateDN) throws AMException, SSOException
AMTemplate
object represented by
DN. However, the validity of the handle returned by this method cannot be
guaranteed, since the object is created in memory, and not instantiated
from the data store. Using the AMTemplate
returned from
this method may result in exceptions thrown in the later part of the
application, if the DN is not valid or represents an entry that does not
exist.
Validity of the DN can be verified is using isValidEntry()
method of the object returned.
templateDN
- a policy template DN.AMTemplate
object represented by DN.AMException
- if the DN does not represent a Policy template DNSSOException
- if single sign on token is invalid or expired.isValidEntry(java.lang.String)
public String getPropertiesViewBeanURL(String serviceName) throws AMException
serviceName
- the service nameAMException
- if an error is encountered while retrieving informationpublic AMResource getResource(String resourceDN) throws SSOException
AMResource
object represented by
DN. However, the validity of the handle returned by this method cannot be
guaranteed, since the object is created in memory, and not instantiated
from the data store. Using the AMResource
returned from
this method may result in exceptions thrown in the later part of the
application, if the DN is not valid or represents an entry that does not
exist.
Validity of the DN can be verified is using isValidEntry()
method of the object returned.
resourceDN
- resource DN.AMResource
object represented by DN.SSOException
- if single sign on token is invalid or expired.isValidEntry(java.lang.String)
public AMRole getRole(String roleDN) throws SSOException
AMRole
object represented by DN.
However, the validity of the handle returned by this method cannot be
guaranteed, since the object is created in memory, and not instantiated
from the data store. Using the AMRole
returned from this
method may result in exceptions thrown in the later part of the
application, if the DN is not valid or represents an entry that does not
exist.
Validity of the DN can be verified is using isValidEntry()
method of the object returned.
roleDN
- role DNAMRole
object represented by DN.SSOException
- if single sign on token is invalid or expired.isValidEntry(java.lang.String)
public AMSchema getSchema(String serviceName, AMSchema.Type schemaType) throws AMException
com.sun.identity.sm.ServiceSchemaManager.getSchema()
.AMSchema
for the given service name and
service type.serviceName
- the name of the serviceschemaType
- the type of service schema that needs to be retrieved.AMSchema
corresponding to the given service name
and schema type.AMException
- if an error is encountered in retrieving the
AMSchema
.public Set getSchemaTypes(String serviceName) throws AMException
com.sun.identity.sm.ServiceSchemaManager.getSchemaTypes()
.serviceName
- the name of the service whose schema types needs to be
retrievedAMSchema.Type
objectsAMException
- if an error is encountered in retrieving the
schemaTypes
.public Set getServiceHierarchy() throws AMException
AMException
- if an error is encountered in retrieving the service
hierarchy. The return value is a Set of strings in slash
format.public Set getServiceNames() throws AMException
AMException
- if an error is encountered in retrieving the names of the
servicespublic AMStaticGroup getStaticGroup(String groupDN) throws SSOException
AMStaticGroup
object represented
by DN. However, the validity of the handle returned by this method cannot
be guaranteed, since the object is created in memory, and not
instantiated from the data store. Using the AMStaticGroup
returned from this method may result in exceptions thrown in the later
part of the application, if the DN is not valid or represents an entry
that does not exist.
Validity of the DN can be verified is using isValidEntry()
method of the object returned.
groupDN
- group DNAMStaticGroup
object represented by DN.SSOException
- if single sign on token is invalid or expired.isValidEntry(java.lang.String)
public Set getTopLevelContainers() throws AMException, SSOException
DBObjects
that are top level containers for
the signed in user.AMException
- if an error occurred when retrieving the information from the
data store.SSOException
- if single sign on token is invalid or expired.public Set getTopLevelOrganizations() throws AMException, SSOException
AMException
- if an error occurred when retrieving the information from the
data store.SSOException
- if single sign on token is invalid or expired.public AMUser getUser(String userDN) throws SSOException
AMUser
object represented by DN.
However, the validity of the handle returned by this method cannot be
guaranteed, since the object is created in memory, and not instantiated
from the data store. Using the AMUser
returned from this
method may result in exceptions thrown in the later part of the
application, if the DN is not valid or represents an entry that does not
exist.
Validity of the DN can be verified is using isValidEntry()
method of the object returned.
userDN
- user DNAMUser
object represented by DNSSOException
- if single sign on token is invalid or expired.isValidEntry(java.lang.String)
public AMEntity getEntity(String eDN) throws SSOException
AMEntity
object represented by
DN. However, the validity of the handle returned by this method cannot be
guaranteed, since the object is created in memory, and not instantiated
from the data store. Using the AMEntity
returned from this
method may result in exceptions thrown in the later part of the
application, if the DN is not valid or represents an entry that does not
exist.
Validity of the DN can be verified is using isValidEntry()
method of the object returned.
eDN
- entity DN.AMEntity
object represented by DN.SSOException
- if single sign on token is invalid or expired.isValidEntry(java.lang.String)
public boolean isValidEntry(String dn) throws SSOException
NOTE: This method internally invokes a call to the directory to verify the existence of the entry. There could be a performance overhead. Hence, please use your discretion while using this method.
dn
- DN of the entry that needs to be validated.SSOException
- if the single sign on token is no longer valid.public AMOrganization createTopOrganization(String orgName, Map avPairs) throws AMException, SSOException
orgName
- name of the top organizationavPairs
- Attribute-Value pairs for the top organizationAMException
- if an error occurred during the process of creation.SSOException
- if single sign on token is invalid or expired.public void purge(String domainName, int graceperiod) throws AMException, SSOException
callbacks
for users are executed during this method.domainName
- domain to be purgedgraceperiod
- time in days which should have passed since the entry was last
modified before it can be deleted from the system.AMException
- if an error occurred when retrieving the information from the
data store.SSOException
- if single sign on token is invalid or expired.public void purgeUser(String uid, String domainName, int graceperiod) throws AMException, SSOException
callbacks
throw an exception the delete operation
is aborted.uid
- user IDdomainName
- domain in which the user belongs.graceperiod
- time in days which should have passed before this user can be
deleted.AMException
- if there is an error in deleting the user, or if the user
callbacks
thrown an exceptionSSOException
public void purgeResource(String rid, String domainName, int graceperiod) throws AMException, SSOException
callbacks
throw an exception the
delete operation is aborted.rid
- resource IDdomainName
- domain in which the user belongs.graceperiod
- time in days which should have passed before this user can be
deleted.AMException
- if there is an error in deleting the user, or if the user
callbacks
thrown an exceptionSSOException
public void purgeGroup(String gid, String domainName, int graceperiod) throws AMException, SSOException
callbacks
throw an exception the
delete operation is aborted.gid
- group namedomainName
- domain in which the group belongs.graceperiod
- time in days which should have passed before this user can be
deleted. If a -1 is passed, group is deleted right away
without check on graceperiod
.AMException
- if there is an error in deleting the group, or if the
callbacks
thrown an exceptionSSOException
public Set getEntityTypes()
com.iplanet.am.sdk.AMEntityType
objects,
which is the set of objects which are supported by the
com.iplanet.am.sdk.AMEntity
APIs.AMEntityType
objects.protected String getBaseDN(ServiceConfig sc)
protected boolean isRFC2247(ServiceConfig sc)
protected static void addToOrgMapCache(SSOToken stoken, String dn) throws AMException, SSOException
orgMapCache
AMException
SSOException
protected static int daysSinceModified(SSOToken stoken, String entryDN) throws AMException, SSOException
AMException
SSOException
protected static void updateCache(String dn, int eventType)
orgMapCache
.Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.