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