public enum Permission extends java.lang.Enum<Permission>
Enum Constant and Description |
---|
CREATE_ALLOWED |
CREATE_DENIED |
DELETE_ALLOWED |
DELETE_DENIED |
READ_ALLOWED |
READ_DENIED |
WRITE_ALLOWED |
WRITE_DENIED |
Modifier and Type | Field and Description |
---|---|
boolean |
allowed |
PermissionType |
type |
Modifier and Type | Method and Description |
---|---|
boolean |
denied() |
java.lang.String |
getDeniedText(BOI bo,
java.lang.String attributeName,
java.lang.String rightsAssignmentText) |
boolean |
granted() |
static Permission |
valueOf(PermissionType type,
boolean allowed) |
static Permission |
valueOf(java.lang.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 READ_ALLOWED
public static final Permission WRITE_ALLOWED
public static final Permission CREATE_ALLOWED
public static final Permission DELETE_ALLOWED
public static final Permission READ_DENIED
public static final Permission WRITE_DENIED
public static final Permission CREATE_DENIED
public static final Permission DELETE_DENIED
public final PermissionType type
public final boolean allowed
public static Permission[] values()
for (Permission c : Permission.values()) System.out.println(c);
public static Permission valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static final Permission valueOf(PermissionType type, boolean allowed)
public final boolean granted()
public final boolean denied()
public final java.lang.String getDeniedText(BOI bo, java.lang.String attributeName, java.lang.String rightsAssignmentText)
Copyright © 2000-2025 OAshi S.à r.l. All Rights Reserved.