The following code fragment
shows how the RemoveACTFromObj method is issued from a Java environment:
public void removeAccessControlTemplateFromObj(String transCtxt, String resource,
int options, String ACTspec ) throws Exception {
try
{
iSecurityAdmin.RemoveACTFromObj(transCtxt, resource, options, ACTspec);
}
catch (Exception e) {
System.out.println("RemoveACTFromObj: Exceptions");
e.printStackTrace();
throw e;
}
}
The following example
removes the ACT identified by ACTspec from a Tree object identified
by Tree_URN:
public void RemoveAccessControlTemplateFromObj() throws Exception {
try
{
// Remove the ACT from the Tree to see the impact on authorizations
iSecurityAdmin.RemoveAccessControlTemplateFromObj "",Tree_URN, 0, ACTspec);
}
catch(Exception e)
{
e.printStackTrace();
throw e;
}
}