Security Administration (ISecurityAdmin Interface) |
Lists all ACTs in the specified repository or in all public repositories.
Category: ACT administration methods
Syntax |
GetAccessControlTemplateList(tCtxt,REPOSresource,flags,ACT_list);
Parameters |
Details |
The GetAccessControlTemplateList method can return a large number of objects, especially if the SECAD_REPOSITORY_DEPENDENCY_USES flag is set. Use of this method within a transaction context is not recommended because of the overhead associated with the method.
Exceptions Thrown |
The SAS Open Metadata Interface explicitly returns the following exceptions for the GetAccessControlTemplateList method:
OK
SECAD_INVALID_TC_HANDLE
SECAD_INVALID_RESOURCE_SPEC
SECAD_NOT_AUTHORIZED
Examples |
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; } }
Related Methods |
Copyright © 2010 by SAS Institute Inc., Cary, NC, USA. All rights reserved.