Class RunTimePermissionCollection
- java.lang.Object
-
- com.thingworx.security.permissions.RunTimePermissionCollection
-
- All Implemented Interfaces:
IDiffableObject
,java.lang.Cloneable
@ThingworxExtensionApiClass(since={6,6}, canInstantiate=true) public final class RunTimePermissionCollection extends java.lang.Object implements IDiffableObject, java.lang.Cloneable
-
-
Constructor Summary
Constructors Constructor Description RunTimePermissionCollection()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addPermission(PermissionTypes permissionType, java.lang.String resourceName, Permission permission)
void
deleteAllPermissions(PermissionTypes permissionType, java.lang.String resourceName)
void
deletePermission(PermissionTypes permissionType, java.lang.String resourceName, Permission permission)
static RunTimePermissionCollection
fromJSON(org.json.JSONObject jsonObject)
void
mergePermissions(RunTimePermissionCollection permissions)
org.json.JSONObject
toJSON()
-
-
-
Method Detail
-
mergePermissions
@ThingworxExtensionApiMethod(since={6,6}) public void mergePermissions(RunTimePermissionCollection permissions)
-
addPermission
@ThingworxExtensionApiMethod(since={6,6}) public void addPermission(PermissionTypes permissionType, java.lang.String resourceName, Permission permission)
-
deletePermission
@ThingworxExtensionApiMethod(since={6,6}) public void deletePermission(PermissionTypes permissionType, java.lang.String resourceName, Permission permission)
-
deleteAllPermissions
@ThingworxExtensionApiMethod(since={6,6}) public void deleteAllPermissions(PermissionTypes permissionType, java.lang.String resourceName)
-
toJSON
@ThingworxExtensionApiMethod(since={6,6}) public org.json.JSONObject toJSON() throws java.lang.Exception
- Throws:
java.lang.Exception
- If an error occurs
-
fromJSON
@ThingworxExtensionApiMethod(since={6,6}) public static RunTimePermissionCollection fromJSON(org.json.JSONObject jsonObject) throws java.lang.Exception
- Throws:
java.lang.Exception
- If an error occurs
-
-