Here is the sample code to disable the resource objects allocated to a user:
"y9506a"));
userOp = oimClient.getService(tcUserOperationsIntf.class);
tcResultSet userObjects = userOp.getObjects(userKey);
Long processKey = userObjects.getLongValue(Users-Object Instance For User.Key");
// Disable the Resource Object
String ostatus = userObjects.getStringValue(
System.
tcResultSet userObjects = userOp.getObjects(userKey);
Long processKey = userObjects.getLongValue(Users-Object Instance For User.Key");
// Disable the Resource Object
userOp.disableAppForUser(userKey, processKey);
// Enable the Resource Object
userOp.enableAppForUser(userKey, processKey);
"Objects.Object Status.Status");
out.println(ostatus);
No comments:
Post a Comment