Package com.sun.identity.policy.plugins
Class SubjectReferentialIntegrityPlugin
- java.lang.Object
-
- com.iplanet.am.sdk.AMCallBack
-
- com.sun.identity.policy.plugins.SubjectReferentialIntegrityPlugin
-
public class SubjectReferentialIntegrityPlugin extends AMCallBack
The classSubjectReferentialIntegrityPluginprovides the implementation to preserve referential integrity between the subjects in policies to the corresponding objects in local directory.
-
-
Constructor Summary
Constructors Constructor Description SubjectReferentialIntegrityPlugin()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidpostProcessDelete(SSOToken token, String entryDN, Map attributes, boolean softDeleteEnabled, int objectType)This implementation would visit all the subjects in policies across all orgs/sub-orgs and remove the subject values corresponding to the deleted entry DN.-
Methods inherited from class com.iplanet.am.sdk.AMCallBack
getAttributes, postProcessAddUser, postProcessCreate, postProcessModify, postProcessRemoveUser, preProcessAddUser, preProcessCreate, preProcessDelete, preProcessModify, preProcessRemoveUser
-
-
-
-
Method Detail
-
postProcessDelete
public void postProcessDelete(SSOToken token, String entryDN, Map attributes, boolean softDeleteEnabled, int objectType) throws AMPostCallBackException
This implementation would visit all the subjects in policies across all orgs/sub-orgs and remove the subject values corresponding to the deleted entry DN. After removing an entry from a subject, checks if that entry is the only one in the subject to remove the subject as well.- Overrides:
postProcessDeletein classAMCallBack- Parameters:
token- theSSOTokenentryDN- the DN of the entry being deletedattributes- a map consisting of attribute names and a set of values for each of themsoftDeleteEnabled- If true, this implies that the object is just being marked for deletion, if false, then it implies that the object is being removed from the data store.objectType- represents the type of entry on which the operation is being performed. Types could be:- Throws:
AMPostCallBackException- if an error occurs during post processing. A user specific localized message should be sent as part of the exception message. The specific messages can be added toamProfile.propertiesfile.
-
-