Class CollectionsServices
- java.lang.Object
-
- com.thingworx.types.NamedObject
-
- com.thingworx.persistence.common.PersistableNamedObject
-
- com.thingworx.entities.RootEntity
-
- com.thingworx.entities.ServiceProviderEntity
-
- com.thingworx.entities.ExtensibleRootEntity
-
- com.thingworx.resources.Resource
-
- com.thingworx.resources.collections.CollectionsServices
-
- All Implemented Interfaces:
IConfigurableObject
,INotScriptFriendly
,ISupportsDeprecation
,IDiffableObject
,IAvatar
,IEntityLifeCycleEvent
,IPersistable
,IServiceProvider
,ITaggableObject
,IDependencyScannableObject
,IEntityDefinition
,IPersistableObject<java.lang.String>
,IDesignTimeSecurable
,IDesignTimeSecurableEntity
,IRunTimeSecurable
,IRunTimeSecurableEntity
,ISecurable
,IVisibilitySecurable
,IVisibilitySecurableEntity
,IAspectContainer
,INamedObject
,java.io.Serializable
@ThingworxExtensionApiClass(since={6,6}, canInstantiate=true) public class CollectionsServices extends Resource
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.thingworx.entities.RootEntity
BASIC_PROPERTY_DEFINITIONS, EXCLUDED_ENTITY_TYPES_IN_PROJECT
-
Fields inherited from class com.thingworx.types.NamedObject
NAME_COMPARATOR
-
-
Constructor Summary
Constructors Constructor Description CollectionsServices()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
AddCollectionDesignTimePermission(java.lang.String collectionName, java.lang.String type, java.lang.String principal, java.lang.String principalType, java.lang.Boolean allow)
Service Category: Permissions Service Description: Add a design time permission.void
AddCollectionRunTimePermission(java.lang.String collectionName, java.lang.String type, java.lang.String resource, java.lang.String principal, java.lang.String principalType, java.lang.Boolean allow)
Service Category: Permissions Service Description: Add a run time permission.void
AddCollectionVisibilityPermission(java.lang.String collectionName, java.lang.String principal, java.lang.String principalType)
Service Category: Permissions Service Description: Add a visibility permission.void
DeleteCollectionDesignTimePermission(java.lang.String collectionName, java.lang.String type, java.lang.String principal, java.lang.String principalType)
Service Category: Permissions Service Description: Delete a design time permission.void
DeleteCollectionRunTimePermission(java.lang.String collectionName, java.lang.String type, java.lang.String resource, java.lang.String principal, java.lang.String principalType)
Service Category: Permissions Service Description: Delete a run time permission.void
DeleteCollectionVisibilityPermission(java.lang.String collectionName, java.lang.String principal, java.lang.String principalType)
Service Category: Permissions Service Description: Delete a visibility permission.void
ExportUserPermissions(java.lang.String repositoryName, java.lang.String path, java.lang.String fileName, java.lang.Boolean includeCollectionPermissions, java.lang.Boolean includeEntityPermissions, TagCollection tags, java.lang.String projectName, java.lang.Boolean includeDependents)
Service Category: Permissions Service Description: Export permissions for entities and collections.InfoTable
GetCollectionDesignTimePermissions(java.lang.String collectionName)
Service Category: Permissions Service Description: Get a list of assigned design time permissions.InfoTable
GetCollectionRunTimePermissions(java.lang.String collectionName)
Service Category: Permissions Service Description: Get a list of assigned runtime permissions.InfoTable
GetCollectionVisibilityPermissions(java.lang.String collectionName)
Service Category: Permissions Service Description: Get a list of assigned visibility permissions.void
ImportUserPermissions(java.lang.String repositoryName, java.lang.String path, java.lang.String fileName)
Service Category: Permissions Service Description: Import permissions for entities and collections.-
Methods inherited from class com.thingworx.resources.Resource
getEntityType
-
Methods inherited from class com.thingworx.entities.ServiceProviderEntity
getInstancePublicServiceDefinitions, getInstanceServiceDefinition, getInstanceServiceDefinitions, initializeEntity, preInitializeEntity, processAPIServiceRequest, processServiceRequest
-
Methods inherited from class com.thingworx.entities.RootEntity
AddConfigurationTableDefinition, AddConfigurationTableDefinition, addDesignTimePermission, AddDesignTimePermission, addRunTimePermission, AddRunTimePermission, AddTags, addVisibilityPermission, AddVisibilityPermission, CheckDesignTimePermission, CheckDesignTimePermissionForGroup, CheckDesignTimePermissionForUser, CheckPermission, CheckPermissionForGroup, CheckPermissionForUser, cleanupEntity, DeleteAllConfigurationTableRows, DeleteConfigurationTable, DeleteConfigurationTableRows, DeleteConfigurationTableRows, deleteDesignTimePermission, DeleteDesignTimePermission, deleteRunTimePermission, DeleteRunTimePermission, deleteVisibilityPermission, DeleteVisibilityPermission, dispose, getAspects, GetAvatar, getAvatarContent, GetAvatarURL, GetConfigurationChangeHistory, getConfigurationSetting, getConfigurationTable, GetConfigurationTable, GetConfigurationTableDefinition, GetConfigurationTableRow, GetConfigurationTables, GetDescription, getDesignTimePermissions, GetDesignTimePermissions, GetDesignTimePermissionsAsJSON, getDocumentationContent, getEntityTypeAsString, GetEventDefinition, GetEventDefinitions, GetHomeMashup, GetIncomingDependencies, GetIncomingDependenciesAsNetwork, GetInstanceMetadataAsJSON, GetInstanceMetadataWithPermissionsAsJSON, GetLastModifiedDate, GetMetadata, GetMetadataAsJSON, GetMetadataWithPermissionsAsJSON, GetOutgoingDependencies, GetOutgoingDependenciesAsNetwork, getOwner, GetOwner, GetPermissionsForCurrentUser, GetPermissionsForGroup, GetPermissionsForUser, GetProjectName, GetPropertyDefinition, GetPropertyDefinitions, getRunTimePermissions, GetRunTimePermissions, GetRunTimePermissionsAsJSON, GetServiceDefinition, GetServiceDefinitions, getStringConfigurationSetting, getStringConfigurationSettingWithDefault, GetSummaryInformation, getTags, GetTags, GetTagsAsInfoTable, getVisibilityPermissions, GetVisibilityPermissions, GetVisibilityPermissionsAsJSON, HasIncomingDependencies, HasOutgoingDependencies, isEditable, isEditableExtensionObject, isEditableSystemObject, isExtensionObject, IsMultiRowTable, isOwner, isSystemObject, isThemeObject, isVisible, isVisible, ListDeprecatedUsage, persistDesignTimePermissions, persistRunTimePermissions, persistVisibilityPermissions, RemoveTags, SaveConfigurationTables, SetAvatar, setConfigurationSetting, SetConfigurationTable, SetConfigurationTableRows, SetDescription, setDesignTimePermissions, SetDesignTimePermissionsAsJSON, setDocumentationContent, setExtensionObject, SetHomeMashup, setLastModifiedDate, SetMultiRowConfigurationTable, setOwner, SetOwner, SetProjectName, setRunTimePermissions, SetRunTimePermissionsAsJSON, setStringConfigurationSetting, SetTags, setVisibilityPermissions, SetVisibilityPermissionsAsJSON, toJSON, toJSONDefinition, UpdateProjectDependencies, validateConfiguration
-
Methods inherited from class com.thingworx.persistence.common.PersistableNamedObject
getID, hasID, isTransient
-
Methods inherited from class com.thingworx.types.NamedObject
getDescription, getName, setDescription, setName, toValueCollection
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.thingworx.types.INamedObject
getDescription, getName
-
Methods inherited from interface com.thingworx.entities.interfaces.IPersistable
getID, hasID
-
Methods inherited from interface com.thingworx.security.permissions.ISecurable
getID, getName
-
Methods inherited from interface com.thingworx.deprecation.ISupportsDeprecation
getDeprecated, isDeprecated, isDeprecatedBefore, since
-
-
-
-
Method Detail
-
AddCollectionRunTimePermission
@ThingworxExtensionApiMethod(since={6,6}) public void AddCollectionRunTimePermission(java.lang.String collectionName, java.lang.String type, java.lang.String resource, java.lang.String principal, java.lang.String principalType, java.lang.Boolean allow) throws java.lang.Exception
- Service Category:
- Permissions
- Service Description:
- Add a run time permission.
- Parameters:
collectionName
- Collection name (Things, Users, ThingShapes, etc.) - STRINGtype
- Permission type (PropertyRead PropertyWrite ServiceInvoke EventInvoke EventSubscribe) - STRINGresource
- Resource name (* = all or enter a specific resource to override) - STRINGprincipal
- Principal name (name of user or group) - STRINGprincipalType
- Principal type (User or Group) - STRINGallow
- Permission (true = allow, false = deny) - BOOLEAN- Throws:
java.lang.Exception
- If an error occurs
-
DeleteCollectionRunTimePermission
@ThingworxExtensionApiMethod(since={6,6}) public void DeleteCollectionRunTimePermission(java.lang.String collectionName, java.lang.String type, java.lang.String resource, java.lang.String principal, java.lang.String principalType) throws java.lang.Exception
- Service Category:
- Permissions
- Service Description:
- Delete a run time permission.
- Parameters:
collectionName
- Collection name (Things, Users, ThingShapes, etc.) - STRINGtype
- Permission type - STRINGresource
- Resource name - STRINGprincipal
- Principal name (name of user or group) - STRINGprincipalType
- Principal type (User or Group) - STRING- Throws:
java.lang.Exception
- If an error occurs
-
GetCollectionRunTimePermissions
@ThingworxExtensionApiMethod(since={6,6}) public InfoTable GetCollectionRunTimePermissions(java.lang.String collectionName) throws java.lang.Exception
- Service Category:
- Permissions
- Service Description:
- Get a list of assigned runtime permissions.
- Parameters:
collectionName
- Collection name (Things, Users, ThingShapes, etc.) - STRING- Returns:
- result Permission list - INFOTABLE - Aspects {dataShape:Permissions}
- Throws:
java.lang.Exception
- If an error occurs
-
AddCollectionDesignTimePermission
@ThingworxExtensionApiMethod(since={6,6}) public void AddCollectionDesignTimePermission(java.lang.String collectionName, java.lang.String type, java.lang.String principal, java.lang.String principalType, java.lang.Boolean allow) throws java.lang.Exception
- Service Category:
- Permissions
- Service Description:
- Add a design time permission.
- Parameters:
collectionName
- Collection name (Things, Users, ThingShapes, etc.) - STRINGtype
- Permission type (Create, Read, Update and Delete) - STRINGprincipal
- Principal name (name of user or group) - STRINGprincipalType
- Principal type (User or Group) - STRINGallow
- Permission (true = allow, false = deny) - BOOLEAN- Throws:
java.lang.Exception
- If an error occurs
-
DeleteCollectionDesignTimePermission
@ThingworxExtensionApiMethod(since={6,6}) public void DeleteCollectionDesignTimePermission(java.lang.String collectionName, java.lang.String type, java.lang.String principal, java.lang.String principalType) throws java.lang.Exception
- Service Category:
- Permissions
- Service Description:
- Delete a design time permission.
- Parameters:
collectionName
- Collection name (Things, Users, ThingShapes, etc.) - STRINGtype
- Permission type - STRINGprincipal
- Principal name (name of user or group) - STRINGprincipalType
- Principal type (User or Group) - STRING- Throws:
java.lang.Exception
- If an error occurs
-
GetCollectionDesignTimePermissions
@ThingworxExtensionApiMethod(since={6,6}) public InfoTable GetCollectionDesignTimePermissions(java.lang.String collectionName) throws java.lang.Exception
- Service Category:
- Permissions
- Service Description:
- Get a list of assigned design time permissions.
- Parameters:
collectionName
- Collection name (Things, Users, ThingShapes, etc.) - STRING- Returns:
- result Permission list - INFOTABLE - Aspects {dataShape:Permissions}
- Throws:
java.lang.Exception
- If an error occurs
-
AddCollectionVisibilityPermission
@ThingworxExtensionApiMethod(since={6,6}) public void AddCollectionVisibilityPermission(java.lang.String collectionName, java.lang.String principal, java.lang.String principalType) throws java.lang.Exception
- Service Category:
- Permissions
- Service Description:
- Add a visibility permission.
- Parameters:
collectionName
- Collection name (Things, Users, ThingShapes, etc.) - STRINGprincipal
- Principal name (name of organization or organization unit) - STRINGprincipalType
- Principal type (Organization or Organization Unit) - STRING- Throws:
java.lang.Exception
- If an error occurs
-
DeleteCollectionVisibilityPermission
@ThingworxExtensionApiMethod(since={6,6}) public void DeleteCollectionVisibilityPermission(java.lang.String collectionName, java.lang.String principal, java.lang.String principalType) throws java.lang.Exception
- Service Category:
- Permissions
- Service Description:
- Delete a visibility permission.
- Parameters:
collectionName
- Collection name (Things, Users, ThingShapes, etc.) - STRINGprincipal
- Principal name (name of organization or organization unit) - STRINGprincipalType
- Principal type (Organization or Organization Unit) - STRING- Throws:
java.lang.Exception
- If an error occurs
-
GetCollectionVisibilityPermissions
@ThingworxExtensionApiMethod(since={6,6}) public InfoTable GetCollectionVisibilityPermissions(java.lang.String collectionName) throws java.lang.Exception
- Service Category:
- Permissions
- Service Description:
- Get a list of assigned visibility permissions.
- Parameters:
collectionName
- Collection name (Things, Users, ThingShapes, etc.) - STRING- Returns:
- result Permission list - INFOTABLE - Aspects {dataShape:Permissions}
- Throws:
java.lang.Exception
- If an error occurs
-
ExportUserPermissions
@ThingworxExtensionApiMethod(since={7,1}) public void ExportUserPermissions(java.lang.String repositoryName, java.lang.String path, java.lang.String fileName, java.lang.Boolean includeCollectionPermissions, java.lang.Boolean includeEntityPermissions, TagCollection tags, java.lang.String projectName, java.lang.Boolean includeDependents) throws java.lang.Exception
- Service Category:
- Permissions
- Service Description:
- Export permissions for entities and collections.
- Parameters:
repositoryName
- File repository to which to export the permissions - THINGNAMEpath
- Path to which to write the permissions - STRINGfileName
- Name of the file in which to write the permissions - STRINGincludeCollectionPermissions
- Export the collection permissions - BOOLEANincludeEntityPermissions
- Export the entity permissions - BOOLEANtags
- Tags (optional) - TAGSprojectName
- Project Name (optional) - PROJECTNAMEincludeDependents
- Include dependent projects - BOOLEAN- Throws:
java.lang.Exception
- If an error occurs
-
ImportUserPermissions
@ThingworxExtensionApiMethod(since={7,1}) public void ImportUserPermissions(java.lang.String repositoryName, java.lang.String path, java.lang.String fileName) throws java.lang.Exception
- Service Category:
- Permissions
- Service Description:
- Import permissions for entities and collections.
- Parameters:
repositoryName
- File repository from which to import the permissions - THINGNAMEpath
- Path from which to read the permissions - STRINGfileName
- Name of the file from which to read the permissions - STRING- Throws:
java.lang.Exception
- If an error occurs
-
-