The following code fragment
shows how the GetAuthorizationsOnObj method is issued in a Java environment:
public void getAccessControlTemplateList(String transCtxt, String repositorySpec,
int options, VariableArray2dOfStringHolder ACTlist ) throws Exception {
try
{
iSecurityAdmin.GetAccessControlTemplateList(transCtxt,
repositorySpec,
options,
ACTlist
);
}
catch (Exception e) {
System.out.println("GetAccessControlTemplateList: Exceptions");
e.printStackTrace();
throw e;
}
}
The example issues the
GetAuthorizationsOnObj method to get the inherited authorizations
on a table that is identified by Table_URN.
public void testAuthsOnTable() throws Exception {
try {
// Get existing authorizations on the table.
iSecurityAdmin.GetAuthorizationsOnObj("",
Table_URN,
0,
Identities,
Permissions,
authRslt
);
}
catch (Exception e)
{
throw e;
}
}