Class Permission
- java.lang.Object
-
- com.thingworx.security.permissions.Permission
-
@ThingworxExtensionApiClass(since={6,6}, canInstantiate=true) public class Permission extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Permission(EntityReference principal, boolean permitted)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Permission
fromJSON(org.json.JSONObject jsonObject)
EntityReference
getPrincipal()
boolean
isPermitted()
org.json.JSONObject
toJSON()
-
-
-
Constructor Detail
-
Permission
@ThingworxExtensionApiMethod(since={6,6}) public Permission(EntityReference principal, boolean permitted)
-
-
Method Detail
-
getPrincipal
@ThingworxExtensionApiMethod(since={6,6}) public EntityReference getPrincipal()
-
isPermitted
@ThingworxExtensionApiMethod(since={6,6}) public boolean isPermitted()
-
fromJSON
@ThingworxExtensionApiMethod(since={6,6}) public static Permission fromJSON(org.json.JSONObject jsonObject) throws java.lang.Exception
- Throws:
java.lang.Exception
- If an error occurs
-
toJSON
@ThingworxExtensionApiMethod(since={6,6}) public org.json.JSONObject toJSON() throws java.lang.Exception
- Throws:
java.lang.Exception
- If an error occurs
-
-