public class ComplianceServicesImpl extends Object implements AMConstants, IComplianceServices
Compliance
contains the functionality to support
iPlanet Compliant DIT. The methods of this class will be used by other
classes in com.iplanet.am.sdk package
.
In order to determine if iPlanet Compliance mode is required or not, the
parameter com.iplanet.am.compliance
will be verified. A value
of true
for this parameter, means iPlanet Compliance mode.
NOTE: An explicit check must be performed using Compliance. isIplanetCompliant() method before calling any other methods in this class.
Modifier and Type | Field and Description |
---|---|
protected static ServiceSchema |
gsc |
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 |
---|
ComplianceServicesImpl() |
Modifier and Type | Method and Description |
---|---|
protected void |
checkIfDeletedOrg(SSOToken token,
String orgDN)
Method which checks if the entry corresponding to orgDN represents a
deleted organization entry (entry with inetdomainstatus:deleted).
|
protected void |
checkIfDeletedUser(SSOToken token,
String userDN)
Method which checks if the entry corresponding to userDN represents a
deleted user entry (entry with inetuserstatus:deleted)
|
void |
cleanDeletedOrgCache(String orgDN)
Method to clean up the deletedOrg cache, when an event notification
occurs from the directory
|
protected void |
createAdminGroups(SSOToken token,
PersistentObject org)
Method which creates Admin Groups for an organization.
|
String |
getDeletedObjectFilter(int objectType)
Protected method to get the search filter to be used for searching for
deleted objects.
|
static boolean |
isAdminGroupsEnabled(String orgDN)
Method which checks if Admin Groups need to be created for an
organization.
|
boolean |
isAncestorOrgDeleted(SSOToken token,
String dn,
int profileType)
Method which checks all the parent organizations of this entry till the
base DN, and returns true if any one of them is deleted.
|
static boolean |
isComplianceUserDeletionEnabled()
Method which checks if Compliance User Deletion is enabled
|
protected static boolean |
isUnderRootSuffix(String objDN)
Method which checks if the object is directly under root suffix
|
void |
verifyAndDeleteObject(SSOToken token,
String profileDN)
Method which checks if the entry corresponding to DN represents a user
entry.
|
protected AttrSet |
verifyAndGetAttributes(PersistentObject po,
String[] attributeNames)
Method which adds additional compliance required attributes to the
existing list of attribute names and then fetches the attribute set from
LDAP.
|
protected void |
verifyAndLinkGroupToRole(SSOToken token,
Guid[] membersGuid,
String groupDN)
Method which verifies if the
groupDN corresponds to an
administrative role. |
protected void |
verifyAndLinkRoleToGroup(SSOToken token,
Guid[] membersGuid,
String roleDN)
Method which verifies if the
roleDN corresponds to an
admin role. |
protected void |
verifyAndUnLinkGroupToRole(SSOToken token,
Set members,
String groupDN)
Method which verifies if the groupDN corresponds to an admin role.
|
protected void |
verifyAndUnLinkRoleToGroup(SSOToken token,
Set members,
String roleDN)
Verifies if the
roleDN corresponds to an admin role. |
protected void |
verifyAttributes(AttrSet attrSet)
Method which checks the attribute set for the presence of
"inetuserstatus" attribute.
|
protected static ServiceSchema gsc
protected void verifyAndLinkRoleToGroup(SSOToken token, Guid[] membersGuid, String roleDN) throws AMException
roleDN
corresponds to an
admin role. If true the memberOf
and
adminRole
attributes of each member/user are set to the
corresponding administration groupDN
and administration
groupRDN
respectively. Each of the members/users are also
added to the corresponding admin group.token
- single sign on token.membersGuid
- Guid array of members to be operated on.roleDN
- distinguished name of the role.AMException
- if unsuccessful in adding the members to the corresponding
admin group. As a result of which the memberOf and
adminRole attributes are also not updated.protected void verifyAndUnLinkRoleToGroup(SSOToken token, Set members, String roleDN) throws AMException
roleDN
corresponds to an admin role. If
true the memberOf
and adminRole
attributes
of each member/user are set to null. Each of the members/users are also
removed to the corresponding admin group.token
- single sign on token.members
- Set of member distinguished name to be operated.roleDN
- distinguished name of the role.AMException
- if unsuccessful in removing the members from the
corresponding administrative groups and updating the
memberOf
and adminRole
attribute values to null.protected void verifyAndLinkGroupToRole(SSOToken token, Guid[] membersGuid, String groupDN) throws AMException
groupDN
corresponds to an
administrative role. If true then the members listed in
membersGuid
are added to the admin role.token
- SSO TokenmembersGuid
- Guid array of members to be operated ongroupDN
- DN of the roleAMException
- if unsuccessful in adding the members to the corresponding
admin group. As a result of which the memberOf and
adminRole attributes are also not updated.protected void verifyAndUnLinkGroupToRole(SSOToken token, Set members, String groupDN) throws AMException
members
are removed from the admin role.token
- Single Sign On Token.members
- Set of member DNs to be operated.groupDN
- Distinguished Name of the group.AMException
- if unsuccessful in removing the members from the
corresponding admin groups and updating the memberOf
and adminRole
attribute values to null.protected void verifyAttributes(AttrSet attrSet) throws AMException
attrSet
- The attrSet to be verifiedAMException
- the attrSet has inetuserstatus attribute and the value of
which is "deleted"protected AttrSet verifyAndGetAttributes(PersistentObject po, String[] attributeNames) throws AMException
po
- a PersistentObject of the entry.attributeNames
- Array of attribute names.AMException
- if the fetched attribute names has inetuserstatus
attribute and the value of which is "deleted" or if unable to
fetch the attribute set.protected void checkIfDeletedUser(SSOToken token, String userDN) throws AMEntryExistsException
token
- a SSOToken objectuserDN
- a String representing a user DNAMEntryExistsException
- if the userDN corresponds to a deleted userprotected void checkIfDeletedOrg(SSOToken token, String orgDN) throws AMEntryExistsException
token
- a SSOToken object.orgDN
- a String representing an organization DN.AMEntryExistsException
- if the orgDN corresponds to a deleted organization.public boolean isAncestorOrgDeleted(SSOToken token, String dn, int profileType) throws AMException
isAncestorOrgDeleted
in interface IComplianceServices
token
- Single Sign On token of user.dn
- Distinguished name of the object.profileType
- the profile type of the object whose ancestor is
being checked.AMException
- if there are errors from data layer.public void cleanDeletedOrgCache(String orgDN)
orgDN
- DN of organization that has been modifiedpublic void verifyAndDeleteObject(SSOToken token, String profileDN) throws AMException
verifyAndDeleteObject
in interface IComplianceServices
token
- a SSOToken objectprofileDN
- a String representing a DNAMException
- if an error is encountered while setting the
intetuserstatus attribute or if an error was encountered
while performing a delete.public static boolean isAdminGroupsEnabled(String orgDN) throws AMException
orgDN
- organization dnAMException
- if an error is encounteredprotected static boolean isUnderRootSuffix(String objDN)
objDN
- object dnprotected void createAdminGroups(SSOToken token, PersistentObject org) throws AMException, SSOException
token
- a SSOToken objectorg
- an organization objectAMException
- if an error is encounteredSSOException
public static boolean isComplianceUserDeletionEnabled() throws AMException
AMException
- if an error is encounteredpublic String getDeletedObjectFilter(int objectType) throws AMException, SSOException
getDeletedObjectFilter
in interface IComplianceServices
objectType
- Integer representing the object typeSSOException
- if the user's single sign on token is invalidAMException
Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.