DATA Step Functions for Metadata Security Administration |
Returns the nth ACT.
Syntax |
rc = METASEC_GETNACT(tc,uri,n,act_uri,name,desc,use<,flags>);
Arguments |
Argument | Direction | Description |
---|---|---|
tc |
in | Transaction context handle; can be an empty string " " to invoke with a temporary context |
uri |
in |
Character variable or constant that contains the URI of the object from
which you want to return the ACTs.
If the URI is for a repository (in the form "ReposID:xxxxxxxx"), then the metadata server function GetAccessControlTemplateList() is called to obtain the ACT information. If the URI is for an object (in the form "omsobj:ObjectType/xxxxxxxx.yyyyyyyy"), then GetACTsOnObj() is called. Search syntax is supported, such as "omsobj:ObjectType?@Name='My Object' " |
n |
in | One-based numeric index value that indicates which row to return from the array; for information, see Array Parameters |
act_uri |
out | Character variable that contains the URI of the ACT that is requested; this URI is in the following form: "omsobj:AccessControlTemplate/xxxxxxxx.yyyyyyyy" |
name |
out | Character variable that contains the name of the nth ACT |
desc |
out | Character variable that contains the description of the nth ACT |
use |
out | Character variable that contains the value of the USE attribute of the nth ACT. If the ACT is for a repository, the returned value is "REPOS". Otherwise the returned value is an empty string. |
flags |
in |
Optional integer bit field; if the uri
argument is in the form ReposID:yyyyyyyy (that
is, GetAccessControlTemplateList() is called), you can use the following macro
variable from %MDSECCON();
For more information see Using the %MDSECCON() Macro. |
Return Values |
Details |
If the uri argument represents a repository, then the ACTs in the repository are returned. If uri does not represent a repository, then the ACTs that protect the object are returned.
This function calls the ISecAdmin method GetAccessControlTemplateList() or GetACTsOnObj(), depending on the form of the URI in the uri argument. For information about the methods, see SAS Open Metadata Interface: Reference.
Example |
Related Functions |
Copyright © 2010 by SAS Institute Inc., Cary, NC, USA. All rights reserved.