@ThingworxExtensionApiClass(since={6,6}, canInstantiate=true) public final class Permission extends java.lang.Object
Constructor and Description |
---|
Permission(EntityReference principal,
boolean permitted) |
Modifier and Type | Method and Description |
---|---|
static Permission |
fromJSON(org.json.JSONObject jsonObject) |
EntityReference |
getPrincipal() |
boolean |
isPermitted() |
org.json.JSONObject |
toJSON() |
@ThingworxExtensionApiMethod(since={6,6}) public Permission(EntityReference principal, boolean permitted)
@ThingworxExtensionApiMethod(since={6,6}) public EntityReference getPrincipal()
@ThingworxExtensionApiMethod(since={6,6}) public boolean isPermitted()
@ThingworxExtensionApiMethod(since={6,6}) public static Permission fromJSON(org.json.JSONObject jsonObject) throws java.lang.Exception
java.lang.Exception
- If an error occurs@ThingworxExtensionApiMethod(since={6,6}) public org.json.JSONObject toJSON() throws java.lang.Exception
java.lang.Exception
- If an error occurs