Enum PermissionTypes
- java.lang.Object
-
- java.lang.Enum<PermissionTypes>
-
- com.thingworx.security.permissions.PermissionTypes
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<PermissionTypes>
@ThingworxExtensionApiClass(since={6,6}) public enum PermissionTypes extends java.lang.Enum<PermissionTypes>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description Create
Delete
EventInvoke
EventSubscribe
Metadata
PropertyRead
PropertyWrite
Read
ServiceInvoke
Update
Visibility
-
Field Summary
Fields Modifier and Type Field Description static PermissionTypes[]
DESIGNTIME_PERMISSIONS
static PermissionTypes[]
RUNTIME_PERMISSIONS
static PermissionTypes[]
VISIBILITY_PERMISSIONS
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
code()
static PermissionTypes
fromCode(int code)
static PermissionTypes
fromString(java.lang.String name)
static boolean
isDesignTimePermission(int code)
static boolean
isDesignTimePermission(java.lang.String name)
static boolean
isRunTimePermission(int code)
static boolean
isRunTimePermission(java.lang.String name)
static boolean
isVisibilityPermission(int code)
static PermissionTypes
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static PermissionTypes[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
EventSubscribe
public static final PermissionTypes EventSubscribe
-
Read
public static final PermissionTypes Read
-
Delete
public static final PermissionTypes Delete
-
PropertyWrite
public static final PermissionTypes PropertyWrite
-
Create
public static final PermissionTypes Create
-
PropertyRead
public static final PermissionTypes PropertyRead
-
ServiceInvoke
public static final PermissionTypes ServiceInvoke
-
Metadata
public static final PermissionTypes Metadata
-
Visibility
public static final PermissionTypes Visibility
-
EventInvoke
public static final PermissionTypes EventInvoke
-
Update
public static final PermissionTypes Update
-
-
Field Detail
-
RUNTIME_PERMISSIONS
public static PermissionTypes[] RUNTIME_PERMISSIONS
-
DESIGNTIME_PERMISSIONS
public static PermissionTypes[] DESIGNTIME_PERMISSIONS
-
VISIBILITY_PERMISSIONS
public static PermissionTypes[] VISIBILITY_PERMISSIONS
-
-
Method Detail
-
values
public static PermissionTypes[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (PermissionTypes c : PermissionTypes.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PermissionTypes valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
code
@ThingworxExtensionApiMethod(since={6,6}) public int code()
-
fromString
@ThingworxExtensionApiMethod(since={6,6}) public static PermissionTypes fromString(java.lang.String name)
-
isRunTimePermission
@ThingworxExtensionApiMethod(since={6,6}) public static boolean isRunTimePermission(java.lang.String name)
-
isRunTimePermission
@ThingworxExtensionApiMethod(since={6,6}) public static boolean isRunTimePermission(int code)
-
isDesignTimePermission
@ThingworxExtensionApiMethod(since={6,6}) public static boolean isDesignTimePermission(java.lang.String name)
-
isDesignTimePermission
@ThingworxExtensionApiMethod(since={6,6}) public static boolean isDesignTimePermission(int code)
-
isVisibilityPermission
@ThingworxExtensionApiMethod(since={6,6}) public static boolean isVisibilityPermission(int code)
-
fromCode
@ThingworxExtensionApiMethod(since={6,6}) public static PermissionTypes fromCode(int code)
-
-