|
| Foundation |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
com.sas.services.information.metadata.AuthorizationUtil
public class AuthorizationUtil
Methods for managing authorizations on a protected object
| Constructor Summary | |
|---|---|
AuthorizationUtil(MetadataInterface obj,
boolean actDef)
|
|
| Method Summary | |
|---|---|
void |
applyACT(AccessControlTemplateInterface act)
Apply an ACT to protect an object |
void |
commit()
Commit Authorization Changes Any pending Authorization changes will be committed on the Server. |
void |
discard()
Discard Authorization Changes Any pending Authorization changes will be discarded on the Server. |
java.util.List<AccessControlTemplateInterface> |
getACTs()
Get ACTs that protect an object |
java.util.List<java.lang.String> |
getApplicablePermissions()
Obtain permissions Applicable to a Protected Object or ACT Permission Pattern based on Object's PublicType We do think it "fits" in this Interface because its useful to know the permissions applicable to an Object's PublicType prior to invoking |
AuthorizationInfoInterface |
getAuthorizations(IdentityInterface identity,
java.util.List<java.lang.String> permissions)
Get Authorizations |
java.util.List<AuthorizationInfoInterface> |
getAuthorizations(java.util.List<IdentityInterface> identities,
java.util.List<java.lang.String> permissions)
Get Authorizations |
java.util.List<AuthorizationInfoInterface> |
getAuthorizationsAll()
Get Authorizations All |
AuthorizationExplainedInfoInterface |
getAuthorizationsExplained(IdentityInterface identity,
java.util.List<java.lang.String> permissions)
Get Authorizations with Indirect Authorization Sources Explained |
java.util.List<AuthorizationExplainedInfoInterface> |
getAuthorizationsExplained(java.util.List<IdentityInterface> identities,
java.util.List<java.lang.String> permissions)
Get Authorizations with Indirect Authorization Sources Explained |
java.util.List<AuthorizationExplainedInfoInterface> |
getAuthorizationsExplainedAll()
Get Authorizations with Indirect Authorization Sources Explained All |
boolean |
getCommitOnUpdate()
Obtains boolean indicating if Authorization changes are committed when the object is updated |
java.util.List<com.sas.services.information.metadata.AuthorizationIdentityInfoInterface> |
getIdentityInfo()
Get Identities |
AuthorizationInheritanceInfoInterface |
getInheritanceInfo()
Get Inheritance Info for this object |
void |
removeACT(AccessControlTemplateInterface act)
Remove an ACT from protecting an object |
void |
setAuthorizations(IdentityInterface identity,
java.util.List<PermissionInfoInterface> permissionInfoList)
Set Authorizations |
void |
setAuthorizations(java.util.List<AuthorizationInfoInterface> authorizations)
Set Authorizations |
void |
setCommitOnUpdate(boolean commitOnUpdate)
Set boolean indicating to Commit Authorization changes when the object is updated |
| Constructor Detail |
|---|
public AuthorizationUtil(MetadataInterface obj,
boolean actDef)
| Method Detail |
|---|
public boolean getCommitOnUpdate()
throws ServiceException,
java.rmi.RemoteException
getCommitOnUpdate in interface AuthorizationBaseInterfacecom.sas.metadata.remote.MdException
java.rmi.RemoteException - In the event of remote object failure.
ServiceException
public void setCommitOnUpdate(boolean commitOnUpdate)
throws ServiceException,
java.rmi.RemoteException
setCommitOnUpdate in interface AuthorizationBaseInterfaceboolean - value indicating to Commit Authorization changes when the object is updated
com.sas.metadata.remote.MdException
java.rmi.RemoteException - In the event of remote object failure.
ServiceException
public java.util.List<java.lang.String> getApplicablePermissions()
throws ServiceException,
java.rmi.RemoteException
We do think it "fits" in this Interface because its useful to know the permissions applicable to an Object's PublicType prior to invoking
getApplicablePermissions in interface AuthorizationBaseInterfaceServiceException
java.rmi.RemoteException - In the event of remote object failure.
public java.util.List<com.sas.services.information.metadata.AuthorizationIdentityInfoInterface> getIdentityInfo()
throws ServiceException,
java.rmi.RemoteException
getIdentityInfo in interface AuthorizationBaseInterfaceIdentityInterface objects
ServiceException - if a service level error occurs.
java.rmi.RemoteException - In the event of remote object failure.
public AuthorizationInfoInterface getAuthorizations(IdentityInterface identity,
java.util.List<java.lang.String> permissions)
throws java.lang.IllegalArgumentException,
ServiceException,
java.rmi.RemoteException
getAuthorizations in interface AuthorizationBaseInterfaceidentity - A single IdentityInterface object to test permissions
for. if identity is null then an empty List is returned.permissions - A List of String objects specifying the permissions to check.
If null or an empty List, all applicable permissions
for the object are returned.
AuthorizationInfoInterface objects '
java.lang.IllegalArgumentException - If the identity parameter reference is null
ServiceException - If a service level error occurs.
java.rmi.RemoteException - In the event of remote object failure.
public java.util.List<AuthorizationInfoInterface> getAuthorizations(java.util.List<IdentityInterface> identities,
java.util.List<java.lang.String> permissions)
throws ServiceException,
java.rmi.RemoteException
getAuthorizations in interface AuthorizationBaseInterfaceidentities - A List of IdentityInterface objects to test
permissions for. If null or an empty list then a List of
AuthorizationInfoInterface objects for all identities are
returned.permissions - A List of Strings specifying the permissions to check. If null
or an empty List, all applicable permissions for all
specified identities on the object represented by this
AuthContext instance are returned.
AuthorizationInfoInterface objects
ServiceException - if a service level error occurs.
java.rmi.RemoteException - in the event of remote object failure.
public java.util.List<AuthorizationInfoInterface> getAuthorizationsAll()
throws ServiceException,
java.rmi.RemoteException
getAuthorizationsAll in interface AuthorizationBaseInterfaceAuthorizationInfoInterface objects
ServiceException - if a service level error occurs.
java.rmi.RemoteException - in the event of remote object failure.
public AuthorizationInheritanceInfoInterface getInheritanceInfo()
throws ServiceException,
java.rmi.RemoteException
getInheritanceInfo in interface AuthorizationUtilInterfaceAuthorizationInheritanceInfoInterface objects for the
first level parents of this object. Each element on this list contains
a nested list of AuthorizationInheritanceInfoInterface objects
which collectively represent the authorization inheritance "tree" for
this object.
ServiceException - If a service level error occurs.
java.rmi.RemoteException - In the event of remote object failure.
public AuthorizationExplainedInfoInterface getAuthorizationsExplained(IdentityInterface identity,
java.util.List<java.lang.String> permissions)
throws java.lang.IllegalArgumentException,
ServiceException,
java.rmi.RemoteException
getAuthorizationsExplained in interface AuthorizationBaseInterfaceidentity - A single IdentityInterface object representing a User,
Group, or Role for which permissions are sought.permissions - A List of String objects where each string specifies a
requested permissions. If the List is null or empty, all
applicable permissions for all identities corresponding to
authorizations on the object are returned.
PermissionExplainedInfoInterface objects with
the resulting authorization data.
java.lang.IllegalArgumentException - If the Identity parameter reference is null
ServiceException - If a service level error occurs.
java.rmi.RemoteException - In the event of remote object failure.
public java.util.List<AuthorizationExplainedInfoInterface> getAuthorizationsExplained(java.util.List<IdentityInterface> identities,
java.util.List<java.lang.String> permissions)
throws ServiceException,
java.rmi.RemoteException
getAuthorizationsExplained in interface AuthorizationBaseInterfaceidentities - A List of IdentityInterface objects representing the
Users, Groups, or Roles for which permissions are sought. If
the List is null or empty, Permissions for all relevant
identities are returned.permissions - A List of String objects where each string specifies a
requested permissions. If the List is null or empty, all
applicable permissions for all identities corresponding to
authorizations on the object are returned.
AuthorizationExplainedInfoInterface objects
with the resulting authorization data.
ServiceException - If a service level error occurs.
java.rmi.RemoteException - In the event of remote object failure.
public java.util.List<AuthorizationExplainedInfoInterface> getAuthorizationsExplainedAll()
throws ServiceException,
java.rmi.RemoteException
getAuthorizationsExplainedAll in interface AuthorizationBaseInterfaceAuthorizationExplainedInfoInterface objects
with the resulting authorization data.
ServiceException - if a service level error occurs.
java.rmi.RemoteException - in the event of remote object failure.
public void setAuthorizations(IdentityInterface identity,
java.util.List<PermissionInfoInterface> permissionInfoList)
throws java.lang.IllegalArgumentException,
ServiceException,
java.rmi.RemoteException
setAuthorizations in interface AuthorizationBaseInterfaceidentity - An IdentityInterface object representing the Identity for
which permissions are setpermissions - A List of PermissionInfoInterface instances describing the
permission(s) to set
java.lang.IllegalArgumentException - If the Identity parameter reference is null
If the permissionInfoList parameter reference is null
ServiceException - If a service level error occurs.
java.rmi.RemoteException - In the event of remote object failure.
public void setAuthorizations(java.util.List<AuthorizationInfoInterface> authorizations)
throws ServiceException,
java.rmi.RemoteException
setAuthorizations in interface AuthorizationBaseInterfaceauthorizations - A List of AuthorizationInfoInterface objects defining
the authorizations to set on the object
java.lang.IllegalArgumentException - If the authorizations List parameter reference is null
ServiceException - If a service level error occurs.
java.rmi.RemoteException - In the event of remote object failure.
public java.util.List<AccessControlTemplateInterface> getACTs()
throws ServiceException,
java.rmi.RemoteException
getACTs in interface AuthorizationUtilInterfaceAccessControlTemplateInterface objects
representing the ACT's associated to the object.
ServiceException - If a service level error occurs.
java.rmi.RemoteException - In the event of a remote object failure.
public void applyACT(AccessControlTemplateInterface act)
throws java.lang.IllegalArgumentException,
ServiceException,
java.rmi.RemoteException
applyACT in interface AuthorizationUtilInterfaceact - An AccessControlTemplateInterface object for the ACT
being applied.
java.lang.IllegalArgumentException - If the authorizations act parameter reference is null
ServiceException - If a service level error occurs.
java.rmi.RemoteException - In the event of a remote object failure.
public void removeACT(AccessControlTemplateInterface act)
throws java.lang.IllegalArgumentException,
ServiceException,
java.rmi.RemoteException
removeACT in interface AuthorizationUtilInterfaceact - An AccessControlTemplateInterface object for the ACT
being removed.
java.lang.IllegalArgumentException - If the authorizations act parameter reference is null
ServiceException - If a service level error occurs.
java.rmi.RemoteException - In the event of a remote object failure.
public void commit()
throws ServiceException,
java.rmi.RemoteException
AuthorizationBaseInterface
commit in interface AuthorizationBaseInterfaceServiceException - If a service level error occurs.
java.rmi.RemoteException - In the event of a remote object failure.
public void discard()
throws ServiceException,
java.rmi.RemoteException
AuthorizationBaseInterface
discard in interface AuthorizationBaseInterfaceServiceException - If a service level error occurs.
java.rmi.RemoteException - In the event of a remote object failure.
|
| Foundation |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||