Previous Topic: How you Delete an Object

Next Topic: Example: Calling doDeleteAssocs() Methods Inside the doDelete and doModifyRn

Example: Implementing doDeleteAssocs

The following is an example of how you implement doDeleteAssocs:

    public void doDeleteAssocs(final ObjectInfo objInfo, final Object context) throws NamingException
    {
        doAssocUpdateReferencesTo(objInfo, null, connector);
    }

This command has the following format:

The method following method constructs the search filter and invokes the doSearch method of this connector's attribute-style processor to retrieve the associative objects (for example, Account):

com.ca.jcs.assoc.DefaultAssocDirectAttributeOpProcessor.doAssocUpdateReferencesTo()

It then constructs the modification item and invokes the doModify() method to update the associative attribute for the associative object (group members attribute in the Account).


Copyright © 2009 CA. All rights reserved.