The following code fragment
shows how the GetAccessControlTemplateList 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 following example
lists the ACTs in REPOSID:
public void GetAccessControlTemplateList() throws Exception {
// Define a holder for ACTlist
VariableArray2dOfStringHolder ACTlist = new VariableArray2dOfStringHolder;
{
try
{
iSecurityAdmin.GetAccessControlTemplateList("", "REPOSID:" + reposId, 0, ACTlist);
}
catch (Exception e) {
e.printStackTrace();
throw e;
}
}