Class CollectionsServices

All Implemented Interfaces:
IConfigurableObject, INotScriptFriendly, ISupportsDeprecation, IDiffableObject, IAvatar, IEntityLifeCycleEvent, IPersistable, IServiceProvider, ITaggableObject, IDependencyScannableObject, IEntityDefinition, IPersistableObject<String>, IDesignTimeSecurable, IDesignTimeSecurableEntity, IRunTimeSecurable, IRunTimeSecurableEntity, ISecurable, IVisibilitySecurable, IVisibilitySecurableEntity, IAspectContainer, INamedObject, Serializable

@ThingworxExtensionApiClass(since={6,6}, canInstantiate=true) public class CollectionsServices extends Resource
See Also:
  • Constructor Details

    • CollectionsServices

      public CollectionsServices()
  • Method Details

    • AddCollectionRunTimePermission

      @ThingworxExtensionApiMethod(since={6,6}) public void AddCollectionRunTimePermission(String collectionName, String type, String resource, String principal, String principalType, Boolean allow) throws Exception
      Service Category:
      Permissions
      Service Description:
      Add a run time permission.
      Parameters:
      collectionName - Collection name (Things, Users, ThingShapes, etc.) - STRING
      type - Permission type (PropertyRead PropertyWrite ServiceInvoke EventInvoke EventSubscribe) - STRING
      resource - Resource name (* = all or enter a specific resource to override) - STRING
      principal - Principal name (name of user or group) - STRING
      principalType - Principal type (User or Group) - STRING
      allow - Permission (true = allow, false = deny) - BOOLEAN
      Throws:
      Exception - If an error occurs
    • DeleteCollectionRunTimePermission

      @ThingworxExtensionApiMethod(since={6,6}) public void DeleteCollectionRunTimePermission(String collectionName, String type, String resource, String principal, String principalType) throws Exception
      Service Category:
      Permissions
      Service Description:
      Delete a run time permission.
      Parameters:
      collectionName - Collection name (Things, Users, ThingShapes, etc.) - STRING
      type - Permission type - STRING
      resource - Resource name - STRING
      principal - Principal name (name of user or group) - STRING
      principalType - Principal type (User or Group) - STRING
      Throws:
      Exception - If an error occurs
    • GetCollectionRunTimePermissions

      @ThingworxExtensionApiMethod(since={6,6}) public InfoTable GetCollectionRunTimePermissions(String collectionName) throws 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:
      Exception - If an error occurs
    • AddCollectionDesignTimePermission

      @ThingworxExtensionApiMethod(since={6,6}) public void AddCollectionDesignTimePermission(String collectionName, String type, String principal, String principalType, Boolean allow) throws Exception
      Service Category:
      Permissions
      Service Description:
      Add a design time permission.
      Parameters:
      collectionName - Collection name (Things, Users, ThingShapes, etc.) - STRING
      type - Permission type (Create, Read, Update and Delete) - STRING
      principal - Principal name (name of user or group) - STRING
      principalType - Principal type (User or Group) - STRING
      allow - Permission (true = allow, false = deny) - BOOLEAN
      Throws:
      Exception - If an error occurs
    • DeleteCollectionDesignTimePermission

      @ThingworxExtensionApiMethod(since={6,6}) public void DeleteCollectionDesignTimePermission(String collectionName, String type, String principal, String principalType) throws Exception
      Service Category:
      Permissions
      Service Description:
      Delete a design time permission.
      Parameters:
      collectionName - Collection name (Things, Users, ThingShapes, etc.) - STRING
      type - Permission type - STRING
      principal - Principal name (name of user or group) - STRING
      principalType - Principal type (User or Group) - STRING
      Throws:
      Exception - If an error occurs
    • GetCollectionDesignTimePermissions

      @ThingworxExtensionApiMethod(since={6,6}) public InfoTable GetCollectionDesignTimePermissions(String collectionName) throws 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:
      Exception - If an error occurs
    • AddCollectionVisibilityPermission

      @ThingworxExtensionApiMethod(since={6,6}) public void AddCollectionVisibilityPermission(String collectionName, String principal, String principalType) throws Exception
      Service Category:
      Permissions
      Service Description:
      Add a visibility permission.
      Parameters:
      collectionName - Collection name (Things, Users, ThingShapes, etc.) - STRING
      principal - Principal name (name of organization or organization unit) - STRING
      principalType - Principal type (Organization or Organization Unit) - STRING
      Throws:
      Exception - If an error occurs
    • DeleteCollectionVisibilityPermission

      @ThingworxExtensionApiMethod(since={6,6}) public void DeleteCollectionVisibilityPermission(String collectionName, String principal, String principalType) throws Exception
      Service Category:
      Permissions
      Service Description:
      Delete a visibility permission.
      Parameters:
      collectionName - Collection name (Things, Users, ThingShapes, etc.) - STRING
      principal - Principal name (name of organization or organization unit) - STRING
      principalType - Principal type (Organization or Organization Unit) - STRING
      Throws:
      Exception - If an error occurs
    • GetCollectionVisibilityPermissions

      @ThingworxExtensionApiMethod(since={6,6}) public InfoTable GetCollectionVisibilityPermissions(String collectionName) throws 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:
      Exception - If an error occurs
    • ExportUserPermissions

      @ThingworxExtensionApiMethod(since={7,1}) public void ExportUserPermissions(String repositoryName, String path, String fileName, Boolean includeCollectionPermissions, Boolean includeEntityPermissions, TagCollection tags, String projectName, Boolean includeDependents) throws Exception
      Service Category:
      Permissions
      Service Description:
      Export permissions for entities and collections.
      Parameters:
      repositoryName - File repository to which to export the permissions - THINGNAME
      path - Path to which to write the permissions - STRING
      fileName - Name of the file in which to write the permissions - STRING
      includeCollectionPermissions - Export the collection permissions - BOOLEAN
      includeEntityPermissions - Export the entity permissions - BOOLEAN
      tags - Tags (optional) - TAGS
      projectName - Project Name (optional) - PROJECTNAME
      includeDependents - Include dependent projects - BOOLEAN
      Throws:
      Exception - If an error occurs
    • ImportUserPermissions

      @ThingworxExtensionApiMethod(since={7,1}) public void ImportUserPermissions(String repositoryName, String path, String fileName) throws Exception
      Service Category:
      Permissions
      Service Description:
      Import permissions for entities and collections.
      Parameters:
      repositoryName - File repository from which to import the permissions - THINGNAME
      path - Path from which to read the permissions - STRING
      fileName - Name of the file from which to read the permissions - STRING
      Throws:
      Exception - If an error occurs