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