public enum Permission extends Enum<Permission>
SecuredContainer
. These
permissions will be enforced by the Absio Broker™ application when using the ServerProvider
, and will
restrict certain information from being shared with the user. The OfsProvider will not enforce the adherence to the
permissions. It is up to all providers to determine how, if at all, they would like to enforce permissions. The
same is true of the Mappers that a Provider uses.Enum Constant and Description |
---|
DECRYPT_CONTAINER
Permission to decrypt the SecuredContainer header and content.
|
DOWNLOAD_CONTAINER
Permission to download the SecuredContainer header and content.
|
MODIFY_ACCESS
Permission to modify the access list for the SecuredContainer.
|
MODIFY_CONTAINER_TYPE
Permission to modify the categorical type of the SecuredContainer.
|
RX_ACCESS_EVENTS
Permission to receive the access events of the SecuredContainer.
|
UPLOAD_CONTAINER
Permission to modify the SecuredContainer header and content and upload to the server.
|
VIEW_ACCESS
Permission to view the access list for the SecuredContainer.
|
VIEW_CONTAINER_TYPE
Permission to view the categorical type of the SecuredContainer.
|
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_OWNER_PERMISSIONS
Default permissions for the creator of a container.
|
static int |
DEFAULT_USER_PERMISSIONS
Default permissions for users granted access to a container.
|
Modifier and Type | Method and Description |
---|---|
int |
getFlag()
Get the flag value of the permission.
|
boolean |
hasPermission(int permissions)
Check to see if this permission is a part of the passed in permissions.
|
static Permission |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Permission[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Permission DOWNLOAD_CONTAINER
public static final Permission DECRYPT_CONTAINER
public static final Permission UPLOAD_CONTAINER
public static final Permission VIEW_ACCESS
public static final Permission MODIFY_ACCESS
public static final Permission MODIFY_CONTAINER_TYPE
public static final Permission VIEW_CONTAINER_TYPE
public static final Permission RX_ACCESS_EVENTS
public static final int DEFAULT_OWNER_PERMISSIONS
public static final int DEFAULT_USER_PERMISSIONS
public static Permission[] values()
for (Permission c : Permission.values()) System.out.println(c);
public static Permission valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic int getFlag()
public boolean hasPermission(int permissions)
permissions
- the permissions to compare toCopyright © 2021. All rights reserved.