|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Permissions<T>
This interface describes methods to query and set permissions. The generic
type T
specifies the object type implementing the permissions.
The permissions are described in the Permission
enumeration
class.
Method Summary | |
---|---|
String |
getGroup()
Gets the group id of the entity. |
Task<T,String> |
getGroup(TaskMode mode)
Creates a task that obtains the group id of the entity. |
String |
getOwner()
Gets the owner id of the entity. |
Task<T,String> |
getOwner(TaskMode mode)
Creates a task that obtains the owner id of the entity. |
void |
permissionsAllow(String id,
int permissions)
Allows the specified permissions for the specified id. |
Task<T,Void> |
permissionsAllow(TaskMode mode,
String id,
int permissions)
Creates a task that enables the specified permissions for the specified id. |
boolean |
permissionsCheck(String id,
int permissions)
Determines if the specified permissions are enabled for the specified id. |
Task<T,Boolean> |
permissionsCheck(TaskMode mode,
String id,
int permissions)
Creates a task that determines if the specified permissions are enabled for the specified id. |
void |
permissionsDeny(String id,
int permissions)
Denies the specified permissions for the specified id. |
Task<T,Void> |
permissionsDeny(TaskMode mode,
String id,
int permissions)
Creates a task that disables the specified permissions for the specified id. |
Method Detail |
---|
void permissionsAllow(String id, int permissions) throws NotImplementedException, AuthenticationFailedException, AuthorizationFailedException, PermissionDeniedException, BadParameterException, TimeoutException, NoSuccessException
id
- the id.permissions
- the permissions to enable.
NotImplementedException
- is thrown if the implementation does not provide an
implementation of this method.
PermissionDeniedException
- is thrown when the method failed because the identity used did
not have sufficient permissions to perform the operation
successfully.
AuthorizationFailedException
- is thrown when none of the available contexts of the
used session could be used for successful authorization.
This error indicates that the resource could not be accessed
at all, and not that an operation was not available due to
restricted permissions.
AuthenticationFailedException
- is thrown when operation failed because none of the available
session contexts could successfully be used for authentication.
TimeoutException
- is thrown when a remote operation did not complete successfully
because the network communication or the remote service timed
out.
BadParameterException
- is thrown when the given id is unknown or not supported.
NoSuccessException
- is thrown when the operation was not successfully performed,
and none of the other exceptions apply.void permissionsDeny(String id, int permissions) throws NotImplementedException, AuthenticationFailedException, AuthorizationFailedException, PermissionDeniedException, BadParameterException, TimeoutException, NoSuccessException
id
- the id.permissions
- the permissions to disable.
NotImplementedException
- is thrown if the implementation does not provide an
implementation of this method.
PermissionDeniedException
- is thrown when the method failed because the identity used did
not have sufficient permissions to perform the operation
successfully.
AuthorizationFailedException
- is thrown when none of the available contexts of the
used session could be used for successful authorization.
This error indicates that the resource could not be accessed
at all, and not that an operation was not available due to
restricted permissions.
AuthenticationFailedException
- is thrown when operation failed because none of the available
session contexts could successfully be used for authentication.
TimeoutException
- is thrown when a remote operation did not complete successfully
because the network communication or the remote service timed
out.
BadParameterException
- is thrown when the given id is unknown or not supported.
NoSuccessException
- is thrown when the operation was not successfully performed,
and none of the other exceptions apply.boolean permissionsCheck(String id, int permissions) throws NotImplementedException, AuthenticationFailedException, AuthorizationFailedException, PermissionDeniedException, BadParameterException, TimeoutException, NoSuccessException
id
- the id.permissions
- the permissions to query.
true
if the specified permissions are enabled for
the specified id.
NotImplementedException
- is thrown if the implementation does not provide an
implementation of this method.
PermissionDeniedException
- is thrown when the method failed because the identity used did
not have sufficient permissions to perform the operation
successfully.
AuthorizationFailedException
- is thrown when none of the available contexts of the
used session could be used for successful authorization.
This error indicates that the resource could not be accessed
at all, and not that an operation was not available due to
restricted permissions.
AuthenticationFailedException
- is thrown when operation failed because none of the available
session contexts could successfully be used for authentication.
TimeoutException
- is thrown when a remote operation did not complete successfully
because the network communication or the remote service timed
out.
BadParameterException
- is thrown when the given id is unknown or not supported.
NoSuccessException
- is thrown when the operation was not successfully performed,
and none of the other exceptions apply.String getOwner() throws NotImplementedException, AuthenticationFailedException, AuthorizationFailedException, PermissionDeniedException, TimeoutException, NoSuccessException
NotImplementedException
- is thrown if the implementation does not provide an
implementation of this method.
PermissionDeniedException
- is thrown when the method failed because the identity used did
not have sufficient permissions to perform the operation
successfully.
AuthorizationFailedException
- is thrown when none of the available contexts of the
used session could be used for successful authorization.
This error indicates that the resource could not be accessed
at all, and not that an operation was not available due to
restricted permissions.
AuthenticationFailedException
- is thrown when operation failed because none of the available
session contexts could successfully be used for authentication.
TimeoutException
- is thrown when a remote operation did not complete successfully
because the network communication or the remote service timed
out.
NoSuccessException
- is thrown when the operation was not successfully performed,
and none of the other exceptions apply.String getGroup() throws NotImplementedException, AuthenticationFailedException, AuthorizationFailedException, PermissionDeniedException, TimeoutException, NoSuccessException
NotImplementedException
- is thrown if the implementation does not provide an
implementation of this method.
PermissionDeniedException
- is thrown when the method failed because the identity used did
not have sufficient permissions to perform the operation
successfully.
AuthorizationFailedException
- is thrown when none of the available contexts of the
used session could be used for successful authorization.
This error indicates that the resource could not be accessed
at all, and not that an operation was not available due to
restricted permissions.
AuthenticationFailedException
- is thrown when operation failed because none of the available
session contexts could successfully be used for authentication.
TimeoutException
- is thrown when a remote operation did not complete successfully
because the network communication or the remote service timed
out.
NoSuccessException
- is thrown when the operation was not successfully performed,
and none of the other exceptions apply.Task<T,Void> permissionsAllow(TaskMode mode, String id, int permissions) throws NotImplementedException
mode
- determines the initial state of the task.id
- the id.permissions
- the permissions to enable.
NotImplementedException
- is thrown when the task version of this method is not
implemented.Task<T,Void> permissionsDeny(TaskMode mode, String id, int permissions) throws NotImplementedException
mode
- determines the initial state of the task.id
- the id.permissions
- the permissions to disable.
NotImplementedException
- is thrown when the task version of this method is not
implemented.Task<T,Boolean> permissionsCheck(TaskMode mode, String id, int permissions) throws NotImplementedException
mode
- determines the initial state of the task.id
- the id.permissions
- the permissions to query.
NotImplementedException
- is thrown when the task version of this method is not
implemented.Task<T,String> getOwner(TaskMode mode) throws NotImplementedException
mode
- determines the initial state of the task.
NotImplementedException
- is thrown when the task version of this method is not
implemented.Task<T,String> getGroup(TaskMode mode) throws NotImplementedException
mode
- determines the initial state of the task.
NotImplementedException
- is thrown when the task version of this method is not
implemented.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |