|
| Foundation |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
public interface SecurityProcessorInterface
This class provides an interface for client applications to query
and manipulate the permissions on a metadata object. Most permission
checks are going to be done against the currently logged in user.
The IdentityInterface in those cases can be easily obtained
by calling UserContextInterface.getPerson().
Other users can be retrieved by searching via the Information Service.
| Field Summary | |
|---|---|
static java.lang.String |
NAME
The name of this interface. |
| Method Summary | |
|---|---|
abstract void |
addPermissions(java.util.List identities,
java.util.List permissions)
Add a set of permissions for a set of identities for this metadata object. |
abstract com.sas.services.security.Authorizer |
getAuthorizerType(IdentityInterface identity,
PermissionInterface permission)
Determine why a permission is granted or denied. |
abstract java.util.List |
getIdentities()
Get all the identities that are associated to this metadata object through permissions. |
abstract PermissionInterface |
getPermission(IdentityInterface identity,
PermissionInterface permission)
Get a permission that matches the requested permission for the requested identity on this metadata object. |
abstract java.util.List |
getPermissions(IdentityInterface identity)
Get all the permissions that apply to this object. |
abstract boolean |
isAuthorized(IdentityInterface identity,
java.lang.String permission)
Check for a specific permission on this object by the user that owns the connection to the repository. |
abstract boolean |
isAuthorized(java.lang.String permission)
Check for a specific permission on this object by the user that owns the connection to the repository. |
abstract void |
removePermission(IdentityInterface identity,
PermissionInterface permission)
Remove permission matching the identity and permission. |
abstract void |
removePermissions(java.util.List identities,
java.util.List permissions)
Remove permissions matching the identities and permission list. |
abstract void |
setPermission(IdentityInterface identity,
PermissionInterface permission)
Set a new permission on this metadata object. |
| Field Detail |
|---|
static final java.lang.String NAME
| Method Detail |
|---|
PermissionInterface getPermission(IdentityInterface identity,
PermissionInterface permission)
throws ServiceException,
java.rmi.RemoteException
identity - An IdentityInterface for the identity to find the
permission for.permission - The permission to look for.
ServiceException - if a repository error occurs.
java.rmi.RemoteException - in the event of remote object failure.
void setPermission(IdentityInterface identity,
PermissionInterface permission)
throws ServiceException,
java.rmi.RemoteException
identity - An IdentityInterface for the identity for the new
permission.permission - The new permission to add.
ServiceException - if a repository error occurs.
java.rmi.RemoteException - in the event of remote object failure.
java.util.List getPermissions(IdentityInterface identity)
throws ServiceException,
java.rmi.RemoteException
identity - The identity to get permissions for.
ServiceException - in the event of repository error.
java.rmi.RemoteException - in the event of remote object failure.
java.util.List getIdentities()
throws ServiceException,
java.rmi.RemoteException
ServiceException - if a repository error occurs.
java.rmi.RemoteException - in the event of remote object failure.
void addPermissions(java.util.List identities,
java.util.List permissions)
throws ServiceException,
java.rmi.RemoteException
identities - A List of IdentityInterface objects for whom to set
the provided permissions.permissions - a List of com.sas.services.security.Permission
objects that specify the permissions to set for these
identities.
ServiceException - if a repository error occurs.
java.rmi.RemoteException - in the event of remote object failure.
void removePermission(IdentityInterface identity,
PermissionInterface permission)
throws ServiceException,
java.rmi.RemoteException
identity - The identity for whom to remove the permissions.permission - The permissions to remove for the identity.
ServiceException - if a repository error occurs.
java.rmi.RemoteException - in the event of remote object failure.
void removePermissions(java.util.List identities,
java.util.List permissions)
throws ServiceException,
java.rmi.RemoteException
identities - The identities for whom to remove the permissions.permissions - The permissions to remove for the identities.
ServiceException - if a repository error occurs.
java.rmi.RemoteException - in the event of remote object failure.
boolean isAuthorized(java.lang.String permission)
throws ServiceException,
java.rmi.RemoteException
permission - The permission string to check for.
ServiceException - if a repository error occurs.
java.rmi.RemoteException - in the event of remote object failure.
boolean isAuthorized(IdentityInterface identity,
java.lang.String permission)
throws ServiceException,
java.rmi.RemoteException
identity - The Identity to test for permission to this object.permission - The permission string to check for.
ServiceException - if a repository error occurs.
java.rmi.RemoteException - in the event of remote object failure.
com.sas.services.security.Authorizer getAuthorizerType(IdentityInterface identity,
PermissionInterface permission)
throws ServiceException,
java.rmi.RemoteException
identity - The identity to check.permission - The permission to check.
Authorizer object that is
set to the appropriate value for the permission source.
ServiceException - If a repository error occurs.
java.rmi.RemoteException - In the event of remote object failure.
|
| Foundation |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||