Class RootEntityCollection
java.lang.Object
java.util.AbstractMap<String,RootEntity>
java.util.concurrent.ConcurrentHashMap<String,RootEntity>
com.thingworx.common.utils.SimplifiedConcurrentHashMap<String,RootEntity>
com.thingworx.entities.collections.RootEntityCollection
- All Implemented Interfaces:
INotScriptFriendly
,IPersistableObject<String>
,IDesignTimeSecurable
,IRunTimeSecurable
,ISecurable
,IVisibilitySecurable
,INamedObject
,Serializable
,ConcurrentMap<String,
,RootEntity> Map<String,
RootEntity>
@ThingworxExtensionApiClass(since={6,6},
canInstantiate=true)
public class RootEntityCollection
extends SimplifiedConcurrentHashMap<String,RootEntity>
implements INotScriptFriendly, IPersistableObject<String>, IDesignTimeSecurable, IRunTimeSecurable, IVisibilitySecurable, INamedObject
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.concurrent.ConcurrentHashMap
ConcurrentHashMap.KeySetView<K,
V> Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,
V>, AbstractMap.SimpleImmutableEntry<K, V> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addDesignTimePermission
(PermissionTypes permissionType, Permission permission) void
addDesignTimePermission
(PermissionTypes permissionType, Permission permission, ContextType contextType) void
addRunTimePermission
(PermissionTypes permissionType, String resourceName, Permission permission) void
addVisibilityPermission
(PermissionTypes permissionType, Permission permission) void
deleteDesignTimePermission
(PermissionTypes permissionType, Permission permission) void
deleteRunTimePermission
(PermissionTypes permissionType, String resourceName, Permission permission) void
deleteVisibilityPermission
(PermissionTypes permissionType, Permission permission) getID()
getName()
getOwner()
boolean
isOwner
(EntityReference principal) void
void
void
void
void
void
Methods inherited from class java.util.concurrent.ConcurrentHashMap
clear, compute, computeIfAbsent, computeIfPresent, contains, containsKey, containsValue, elements, entrySet, equals, forEach, forEach, forEach, forEachEntry, forEachEntry, forEachKey, forEachKey, forEachValue, forEachValue, get, getOrDefault, hashCode, isEmpty, keys, keySet, keySet, mappingCount, merge, newKeySet, newKeySet, put, putAll, putIfAbsent, reduce, reduceEntries, reduceEntries, reduceEntriesToDouble, reduceEntriesToInt, reduceEntriesToLong, reduceKeys, reduceKeys, reduceKeysToDouble, reduceKeysToInt, reduceKeysToLong, reduceToDouble, reduceToInt, reduceToLong, reduceValues, reduceValues, reduceValuesToDouble, reduceValuesToInt, reduceValuesToLong, remove, remove, replace, replace, replaceAll, search, searchEntries, searchKeys, searchValues, size, toString, values
Methods inherited from class java.util.AbstractMap
clone
-
Constructor Details
-
RootEntityCollection
public RootEntityCollection()
-
-
Method Details
-
toEntityReferenceCollection
@ThingworxExtensionApiMethod(since={6,6}) public EntityReferenceCollection toEntityReferenceCollection() -
getDesignTimePermissions
@ThingworxExtensionApiMethod(since={6,6}) public DesignTimePermissionCollection getDesignTimePermissions()- Specified by:
getDesignTimePermissions
in interfaceIDesignTimeSecurable
-
setDesignTimePermissions
@ThingworxExtensionApiMethod(since={6,6}) public void setDesignTimePermissions(DesignTimePermissionCollection value) - Specified by:
setDesignTimePermissions
in interfaceIDesignTimeSecurable
-
addDesignTimePermission
@ThingworxExtensionApiMethod(since={6,6}) public void addDesignTimePermission(PermissionTypes permissionType, Permission permission) throws Exception - Specified by:
addDesignTimePermission
in interfaceIDesignTimeSecurable
- Throws:
Exception
- If an error occurs
-
addDesignTimePermission
@ThingworxExtensionApiMethod(since={9,0}) public void addDesignTimePermission(PermissionTypes permissionType, Permission permission, ContextType contextType) throws Exception - Throws:
Exception
- If an error occurs
-
deleteDesignTimePermission
@ThingworxExtensionApiMethod(since={6,6}) public void deleteDesignTimePermission(PermissionTypes permissionType, Permission permission) throws Exception - Specified by:
deleteDesignTimePermission
in interfaceIDesignTimeSecurable
- Throws:
Exception
- If an error occurs
-
getVisibilityPermissions
@ThingworxExtensionApiMethod(since={6,6}) public VisibilityPermissionCollection getVisibilityPermissions()- Specified by:
getVisibilityPermissions
in interfaceIVisibilitySecurable
-
setVisibilityPermissions
@ThingworxExtensionApiMethod(since={6,6}) public void setVisibilityPermissions(VisibilityPermissionCollection value) - Specified by:
setVisibilityPermissions
in interfaceIVisibilitySecurable
-
addVisibilityPermission
@ThingworxExtensionApiMethod(since={6,6}) public void addVisibilityPermission(PermissionTypes permissionType, Permission permission) throws Exception - Specified by:
addVisibilityPermission
in interfaceIVisibilitySecurable
- Throws:
Exception
- If an error occurs
-
deleteVisibilityPermission
@ThingworxExtensionApiMethod(since={6,6}) public void deleteVisibilityPermission(PermissionTypes permissionType, Permission permission) throws Exception - Specified by:
deleteVisibilityPermission
in interfaceIVisibilitySecurable
- Throws:
Exception
- If an error occurs
-
getID
- Specified by:
getID
in interfaceIPersistableObject<String>
- Specified by:
getID
in interfaceISecurable
-
getName
- Specified by:
getName
in interfaceINamedObject
- Specified by:
getName
in interfaceISecurable
-
getDescription
- Specified by:
getDescription
in interfaceINamedObject
-
isOwner
- Specified by:
isOwner
in interfaceISecurable
-
getOwner
- Specified by:
getOwner
in interfaceISecurable
-
getRunTimePermissions
@ThingworxExtensionApiMethod(since={6,6}) public RunTimePermissionCollection getRunTimePermissions()- Specified by:
getRunTimePermissions
in interfaceIRunTimeSecurable
-
setRunTimePermissions
@ThingworxExtensionApiMethod(since={6,6}) public void setRunTimePermissions(RunTimePermissionCollection value) - Specified by:
setRunTimePermissions
in interfaceIRunTimeSecurable
-
addRunTimePermission
@ThingworxExtensionApiMethod(since={6,6}) public void addRunTimePermission(PermissionTypes permissionType, String resourceName, Permission permission) throws Exception - Specified by:
addRunTimePermission
in interfaceIRunTimeSecurable
- Throws:
Exception
- If an error occurs
-
deleteRunTimePermission
@ThingworxExtensionApiMethod(since={6,6}) public void deleteRunTimePermission(PermissionTypes permissionType, String resourceName, Permission permission) throws Exception - Specified by:
deleteRunTimePermission
in interfaceIRunTimeSecurable
- Throws:
Exception
- If an error occurs
-
persistRunTimePermissions
- Specified by:
persistRunTimePermissions
in interfaceIRunTimeSecurable
- Throws:
Exception
- If an error occurs
-
persistDesignTimePermissions
@ThingworxExtensionApiMethod(since={6,6}) public void persistDesignTimePermissions() throws Exception- Specified by:
persistDesignTimePermissions
in interfaceIDesignTimeSecurable
- Throws:
Exception
- If an error occurs
-
persistVisibilityPermissions
@ThingworxExtensionApiMethod(since={6,6}) public void persistVisibilityPermissions() throws Exception- Specified by:
persistVisibilityPermissions
in interfaceIVisibilitySecurable
- Throws:
Exception
- If an error occurs
-