public interface WorkspacesService
Modifier and Type | Field and Description |
---|---|
static String |
DMX_WORKSPACE_NAME |
static SharingMode |
DMX_WORKSPACE_SHARING_MODE |
static String |
DMX_WORKSPACE_URI |
static String |
PROP_WORKSPACE_ID |
Modifier and Type | Method and Description |
---|---|
void |
assignRoleTypeToWorkspace(RoleType roleType,
long workspaceId)
Assigns a role type as well as its "parts" to a workspace.
|
void |
assignToWorkspace(DMXObject object,
long workspaceId)
Assigns an object to a workspace.
|
void |
assignTypeToWorkspace(DMXType type,
long workspaceId)
Assigns a type as well as its "parts" to a workspace.
|
Topic |
createWorkspace(String name,
String uri,
SharingMode sharingMode) |
void |
deleteWorkspace(long workspaceId) |
List<Assoc> |
getAssignedAssocs(long workspaceId)
Returns all associations assigned to the given workspace.
|
List<Assoc> |
getAssignedAssocs(long workspaceId,
String assocTypeUri)
Returns all associations of the given type that are assigned to the given workspace.
|
List<Topic> |
getAssignedTopics(long workspaceId)
Returns all topics assigned to the given workspace.
|
List<Topic> |
getAssignedTopics(long workspaceId,
String topicTypeUri)
Returns all topics of the given type that are assigned to the given workspace.
|
Topic |
getAssignedWorkspace(long objectId)
Returns the workspace the given topic/association is assigned to.
|
Topic |
getWorkspace(String uri)
Returns a workspace by URI.
|
static final String DMX_WORKSPACE_NAME
static final String DMX_WORKSPACE_URI
static final SharingMode DMX_WORKSPACE_SHARING_MODE
static final String PROP_WORKSPACE_ID
Topic createWorkspace(String name, String uri, SharingMode sharingMode)
uri
- may be nullvoid deleteWorkspace(long workspaceId)
Topic getWorkspace(String uri)
RuntimeException
- If no workspace exists for the given URI.Topic getAssignedWorkspace(long objectId)
objectId
- a topic ID, or an association IDnull
if no workspace is assigned.RuntimeException
- If no object with the given ID exists.RuntimeException
- If the current user has no READ permission for the workspace (and thus for the given
topic/association).void assignToWorkspace(DMXObject object, long workspaceId)
workspaceId
- The ID of the workspace to assign the object to.
If -1 is given an existing workspace assignment is removed.void assignTypeToWorkspace(DMXType type, long workspaceId)
workspaceId
- The ID of the workspace to assign the type (and its parts) to.
If -1 is given the existing workspace assignments are removed.void assignRoleTypeToWorkspace(RoleType roleType, long workspaceId)
workspaceId
- The ID of the workspace to assign the role type (and its parts) to.
If -1 is given the existing workspace assignments are removed.List<Topic> getAssignedTopics(long workspaceId)
List<Assoc> getAssignedAssocs(long workspaceId)
List<Topic> getAssignedTopics(long workspaceId, String topicTypeUri)
Copyright © 2023. All Rights Reserved.