|
Metadata |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Permission
A permission represents an action that a user may attempt against a resource in the metadata server. Permission objects are created in pairs within the metadata server. One instance will have its Type attribute set to "GRANT", the other will have Type= "DENY".
A Permission object is associated with a resource by defining an access control. The access control relates the Permission object and one or more identities with the resource on which the permission is being applied. Permission objects should not be explicitly created or deleted. Permissions that are enforced by SAS programs are defined for you by the system. Access controls are managed programmatically using the SAS Open Metadata Interface ISecurityAdmin method class, which is documented in the SAS 9.2 Open Metadata Interface: Reference and Usage. The ISecurityAdmin class provides methods for defining and managing direct access controls as well as access control templates.Attributes of Permission are:
Associations of Permission are:
factory
create methods. // create a store to contain your objects for this change. If you do not have an existing object // or store to use. You may obtain the store from another object by using Object.getObjectStore(). MdFactory factory; //where "factory" is a valid MdFactory instance MdObjectStore objectStore = factory.createObjectStore(); Permission myObject = (Permission) factory.createComplexMetadataObject(objectStore, "Permission_Object", MetadataObjects.PERMISSION, "AAAAAAAA"); myObject.updateMetadataAll(); // Write object to server objectStore.dispose(); // dispose of the object store if it is no longer needed
MdOMIUtil
.
updateMetadataAll
method.
delete
method can be used.
This will flag the object as being deleted on the client, and will require an update call to persist
the change to the server.
Field Summary | |
---|---|
static java.lang.String |
ASSOCIATION_ACCESSCONTROLENTRIES_NAME
Constant used for the name of the AccessControlEntries association. |
static java.lang.String |
ATTRIBUTE_TYPE_NAME
Constant used for the name of the Type attribute. |
Fields inherited from interface com.sas.metadata.remote.PrimaryType |
---|
ASSOCIATION_FAVORITESCONTAINERS_NAME, ATTRIBUTE_ISHIDDEN_NAME, ATTRIBUTE_PUBLICTYPE_NAME |
Fields inherited from interface com.sas.metadata.remote.MdObjectBase |
---|
ATTRIBUTE_DESC_NAME, ATTRIBUTE_ID_NAME, ATTRIBUTE_METADATACREATED_NAME, ATTRIBUTE_METADATAUPDATED_NAME, ATTRIBUTE_NAME_NAME |
Method Summary | |
---|---|
AssociationList |
getAccessControlEntries()
Gets the AssociationList of AccessControlEntries |
AssociationList |
getAccessControlEntries(boolean fGoToServer)
Gets the Associationlist of AccessControlEntries |
java.lang.String |
getType()
Gets the String value of Type |
int |
getTypeMaxLength()
Gets the maximum length of Type |
int |
getTypeState()
Gets the Metadata State of Type |
void |
initializePredObjects()
(S) Adds the Associated objects to the predObjects which are: AccessControlEntries |
void |
initializeRequiredObjects()
(S) This initializes the Required Objects(Roles) which are: |
void |
setAccessControlEntries(AssociationList list)
Sets the AccessControlEntries list to be list . |
void |
setAccessControlEntries(AssociationList inObjects,
int state)
Sets the entire AssociationList to match the passed in Vector, sets the state of the AssociationList |
void |
setType(java.lang.String inType)
Sets the Type value and sets the state to MetadataState.LOCAL. |
void |
setType(java.lang.String inType,
int state)
Sets the Type Metadata State. |
void |
setTypeState(int state)
Sets the Metadata State of Type . |
Methods inherited from interface com.sas.metadata.remote.PrimaryType |
---|
getFavoritesContainers, getFavoritesContainers, getIsHidden, getIsHiddenState, getPublicType, getPublicTypeMaxLength, getPublicTypeState, setFavoritesContainers, setFavoritesContainers, setIsHidden, setIsHidden, setIsHidden, setIsHidden, setIsHiddenState, setPublicType, setPublicType, setPublicTypeState |
Methods inherited from interface com.sas.metadata.remote.MdObjectBaseXML |
---|
closeUpdateMetadataXML, createEmptyXML, createObjectRefreshXML, createObjectXML, createObjectXML, createUpdateAssociationXML, createUpdateAssociationXML, createUpdateSimpleXML, doCreateUpdateXML, getUpdateSimpleSubstring, updateMetadataAll |
Field Detail |
---|
static final java.lang.String ATTRIBUTE_TYPE_NAME
Type: Type of permission
static final java.lang.String ASSOCIATION_ACCESSCONTROLENTRIES_NAME
AccessControlEntries: The access control entries that use this permission.
Method Detail |
---|
void initializeRequiredObjects() throws java.rmi.RemoteException
initializeRequiredObjects
in interface MdObjectBaseUtil
initializeRequiredObjects
in interface PrimaryType
initializeRequiredObjects
in interface Root
java.rmi.RemoteException
- If error connecting/communicating to/with remote object.void initializePredObjects() throws java.rmi.RemoteException
AccessControlEntries
initializePredObjects
in interface MdObjectBase
initializePredObjects
in interface PrimaryType
initializePredObjects
in interface Root
java.rmi.RemoteException
- If error connecting/communicating to/with remote object.java.lang.String getType() throws java.rmi.RemoteException
String
value of Type
Type
java.rmi.RemoteException
- If error connecting/communicating to/with remote object.int getTypeState() throws java.rmi.RemoteException
Type
java.rmi.RemoteException
- If error connecting/communicating to/with remote object.int getTypeMaxLength() throws java.rmi.RemoteException
Type
java.rmi.RemoteException
- If error connecting/communicating to/with remote object.AssociationList getAccessControlEntries() throws java.rmi.RemoteException, MdException
AccessControlEntries
AccessControlEntries
which can be of type: java.rmi.RemoteException
- If error connecting/communicating to/with remote object.
MdException
- If error getting/setting part of the object.AssociationList getAccessControlEntries(boolean fGoToServer) throws java.rmi.RemoteException, MdException
AccessControlEntries
fGoToServer
- boolean Get the value from the server.
AccessControlEntries
which can be of type: java.rmi.RemoteException
- If error connecting/communicating to/with remote object.
MdException
- If error getting/setting part of the object.void setType(java.lang.String inType) throws java.rmi.RemoteException
Type
value and sets the state to MetadataState.LOCAL.
inType
- String
java.rmi.RemoteException
- If error communicating with remote object.void setType(java.lang.String inType, int state) throws java.rmi.RemoteException
Type
Metadata State.
inType
- Stringstate
- int
java.rmi.RemoteException
- If error communicating with remote object.void setTypeState(int state) throws java.rmi.RemoteException
Type
.
state
- int
java.rmi.RemoteException
- If error communicating with remote object.void setAccessControlEntries(AssociationList list) throws java.rmi.RemoteException
AccessControlEntries
list to be list
. Objects of which can be of type:
list
- AssociationList
java.rmi.RemoteException
- If error communicating with remote object.void setAccessControlEntries(AssociationList inObjects, int state) throws java.rmi.RemoteException
inObjects
- AssociationListstate
- int
java.rmi.RemoteException
- If error communicating with remote object.
|
Metadata |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |