Set object values

We can change administration object data with the instance methods associated with the administration object. We can also change administration object data with the static methods associated with the Java™ class representing the administration object. Before using the instance methods, we must obtain a local copy of the object, as outlined in Obtain a local copy of an object. After obtaining the object, we can change information about the object using the instance methods. For example, to disable the account associated with an ISAM user from a local copy of the PDUser object, use:

user.setAccountValid(mySecurityContext,
                    false,   // Disable the account
                    messages);
The instance method changes both local copy of the administration object as well as the object stored on the policy server. To update the PDUser object on the policy server, use the static method:
PDUser.setAccountValid(mySecurityContext,
                       name,
                       false,   // Disable the account
                       messages);

Parent topic: Manipulating administration objects