@ThingworxExtensionApiClass(since={6,6}, canInstantiate=true) public final class RunTimePermissionCollection extends java.lang.Object implements IDiffableObject
Constructor and Description |
---|
RunTimePermissionCollection() |
Modifier and Type | Method and 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() |
@ThingworxExtensionApiMethod(since={6,6}) public void mergePermissions(RunTimePermissionCollection permissions)
@ThingworxExtensionApiMethod(since={6,6}) public void addPermission(PermissionTypes permissionType, java.lang.String resourceName, Permission permission)
@ThingworxExtensionApiMethod(since={6,6}) public void deletePermission(PermissionTypes permissionType, java.lang.String resourceName, Permission permission)
@ThingworxExtensionApiMethod(since={6,6}) public void deleteAllPermissions(PermissionTypes permissionType, java.lang.String resourceName)
@ThingworxExtensionApiMethod(since={6,6}) public org.json.JSONObject toJSON() throws java.lang.Exception
java.lang.Exception
- If an error occurs@ThingworxExtensionApiMethod(since={6,6}) public static RunTimePermissionCollection fromJSON(org.json.JSONObject jsonObject) throws java.lang.Exception
java.lang.Exception
- If an error occurs