@ThingworxExtensionApiClass(since={6,6}, canInstantiate=true) public class CollectionsServices extends Resource
BASIC_PROPERTIES
NAME_COMPARATOR
Constructor and Description |
---|
CollectionsServices() |
Modifier and Type | Method and 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.
|
getEntityType
getInstancePublicServiceDefinitions, getInstanceServiceDefinition, getInstanceServiceDefinitions, initializeEntity, preInitializeEntity, processAPIServiceRequest, processServiceRequest
AddConfigurationTableDefinition, addDesignTimePermission, AddDesignTimePermission, addRunTimePermission, AddRunTimePermission, AddTags, addVisibilityPermission, AddVisibilityPermission, CheckDesignTimePermission, CheckDesignTimePermissionForGroup, CheckDesignTimePermissionForUser, CheckPermission, CheckPermissionForGroup, CheckPermissionForUser, cleanupEntity, cleanupEntity, DeleteAllConfigurationTableRows, DeleteConfigurationTable, 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, 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, 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, validateConfiguration
getID, hasID, isTransient
getDescription, getName, setDescription, setName, toValueCollection
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getID, hasID
getDescription, getName
getID, getName
@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
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) - BOOLEANjava.lang.Exception
- If an error occurs@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
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) - STRINGjava.lang.Exception
- If an error occurs@ThingworxExtensionApiMethod(since={6,6}) public InfoTable GetCollectionRunTimePermissions(java.lang.String collectionName) throws java.lang.Exception
collectionName
- Collection name (Things, Users, ThingShapes, etc.) - STRINGjava.lang.Exception
- If an error occurs@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
collectionName
- Collection name (Things, Users, ThingShapes, etc.) - STRINGtype
- Permission type (PropertyRead PropertyWrite ServiceInvoke EventInvoke EventSubscribe) - STRINGprincipal
- Principal name (name of user or group) - STRINGprincipalType
- Principal type (User or Group) - STRINGallow
- Permission (true = allow, false = deny) - BOOLEANjava.lang.Exception
- If an error occurs@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
collectionName
- Collection name (Things, Users, ThingShapes, etc.) - STRINGtype
- Permission type - STRINGprincipal
- Principal name (name of user or group) - STRINGprincipalType
- Principal type (User or Group) - STRINGjava.lang.Exception
- If an error occurs@ThingworxExtensionApiMethod(since={6,6}) public InfoTable GetCollectionDesignTimePermissions(java.lang.String collectionName) throws java.lang.Exception
collectionName
- Collection name (Things, Users, ThingShapes, etc.) - STRINGjava.lang.Exception
- If an error occurs@ThingworxExtensionApiMethod(since={6,6}) public void AddCollectionVisibilityPermission(java.lang.String collectionName, java.lang.String principal, java.lang.String principalType) throws java.lang.Exception
collectionName
- Collection name (Things, Users, ThingShapes, etc.) - STRINGprincipal
- Principal name (name of organization or organization unit) - STRINGprincipalType
- Principal type (Organization or Organization Unit) - STRINGjava.lang.Exception
- If an error occurs@ThingworxExtensionApiMethod(since={6,6}) public void DeleteCollectionVisibilityPermission(java.lang.String collectionName, java.lang.String principal, java.lang.String principalType) throws java.lang.Exception
collectionName
- Collection name (Things, Users, ThingShapes, etc.) - STRINGprincipal
- Principal name (name of organization or organization unit) - STRINGprincipalType
- Principal type (Organization or Organization Unit) - STRINGjava.lang.Exception
- If an error occurs@ThingworxExtensionApiMethod(since={6,6}) public InfoTable GetCollectionVisibilityPermissions(java.lang.String collectionName) throws java.lang.Exception
collectionName
- Collection name (Things, Users, ThingShapes, etc.) - STRINGjava.lang.Exception
- If an error occurs@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
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 - BOOLEANjava.lang.Exception
- If an error occurs@ThingworxExtensionApiMethod(since={7,1}) public void ImportUserPermissions(java.lang.String repositoryName, java.lang.String path, java.lang.String fileName) throws java.lang.Exception
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 - STRINGjava.lang.Exception
- If an error occurs