AbstractActionSetPermission instead.@Deprecated public final class PermissionActions extends Object
enum of actions, where the string representation (via toString()) of each enum is one possible
action name. Typically the enum should be non-public, and the constant names should be lowercase. If
an action name contains a character which is not a valid Java identifier, then the toString() method of
such constants should be overridden to report the correct string. The actions may be stored on the permission as
an EnumSet, an int, or a long. The field should be marked transient, and
the actions represented by a (possibly synthetic) field of type String which uses the canonical representation
of the actions.| Modifier and Type | Method and Description |
|---|---|
static <E extends Enum<E>> |
getCanonicalActionString(Class<E> type,
int set)
Deprecated.
Get the canonical action string representation for the given action set.
|
static <E extends Enum<E>> |
getCanonicalActionString(Class<E> type,
int set,
StringBuilder b)
Deprecated.
Get the canonical action string representation for the given action set, appending it to the given string builder.
|
static <E extends Enum<E>> |
getCanonicalActionString(Class<E> type,
long set)
Deprecated.
Get the canonical action string representation for the given action set.
|
static <E extends Enum<E>> |
getCanonicalActionString(Class<E> type,
long set,
StringBuilder b)
Deprecated.
Get the canonical action string representation for the given action set, appending it to the given string builder.
|
static <E extends Enum<E>> |
getCanonicalActionString(EnumSet<E> set)
Deprecated.
Get the canonical action string representation for the given action set.
|
static <E extends Enum<E>> |
getCanonicalActionString(EnumSet<E> set,
StringBuilder b)
Deprecated.
Get the canonical action string representation for the given action set, appending it to the given string builder.
|
static <E extends Enum<E>> |
parseActionStringToInt(Class<E> actionType,
String actionString)
Deprecated.
Parse an action string using the given action type to an
int. |
static <E extends Enum<E>> |
parseActionStringToLong(Class<E> actionType,
String actionString)
Deprecated.
Parse an action string using the given action type to a
long. |
static <E extends Enum<E>> |
parseActionStringToSet(Class<E> actionType,
String actionString)
Deprecated.
Parse an action string using the given action type to an
EnumSet. |
public static <E extends Enum<E>> EnumSet<E> parseActionStringToSet(Class<E> actionType, String actionString) throws IllegalArgumentException
EnumSet.E - the action enum typeactionType - the action enum type classactionString - the string to parseIllegalArgumentException - if the string contained an invalid actionpublic static <E extends Enum<E>> int parseActionStringToInt(Class<E> actionType, String actionString) throws IllegalArgumentException
int. The given enum type must have
32 or fewer constant values.E - the action enum typeactionType - the action enum type classactionString - the string to parseIllegalArgumentException - if the string contained an invalid actionpublic static <E extends Enum<E>> long parseActionStringToLong(Class<E> actionType, String actionString) throws IllegalArgumentException
long. The given enum type must have
64 or fewer constant values.E - the action enum typeactionType - the action enum type classactionString - the string to parseIllegalArgumentException - if the string contained an invalid actionpublic static <E extends Enum<E>> String getCanonicalActionString(EnumSet<E> set)
E - the action typeset - the action setpublic static <E extends Enum<E>> void getCanonicalActionString(EnumSet<E> set, StringBuilder b)
E - the action typeset - the action setb - the string builderpublic static <E extends Enum<E>> String getCanonicalActionString(Class<E> type, int set)
E - the action typetype - the action enum type classset - the action setpublic static <E extends Enum<E>> void getCanonicalActionString(Class<E> type, int set, StringBuilder b)
E - the action typetype - the action enum type classset - the action setb - the string builderpublic static <E extends Enum<E>> String getCanonicalActionString(Class<E> type, long set)
E - the action typetype - the action enum type classset - the action setpublic static <E extends Enum<E>> void getCanonicalActionString(Class<E> type, long set, StringBuilder b)
E - the action typetype - the action enum type classset - the action setb - the string builderCopyright © 2017 JBoss by Red Hat. All rights reserved.