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 |
assignToWorkspace(DMXObject object,
long workspaceId)
Assigns the given object to the given workspace.
|
void |
assignTypeToWorkspace(DMXType type,
long workspaceId)
Assigns the given type and all its view configuration topics to the given workspace.
|
Topic |
createWorkspace(String name,
String uri,
SharingMode sharingMode) |
List<Association> |
getAssignedAssociations(long workspaceId)
Returns all associations assigned to the given workspace.
|
List<Association> |
getAssignedAssociations(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 a topic or 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 nullTopic getWorkspace(String uri)
RuntimeException
- If no workspace exists for the given URI.Topic getAssignedWorkspace(long objectId)
id
- a topic ID, or an association IDnull
if no workspace is assigned.void assignToWorkspace(DMXObject object, long workspaceId)
void assignTypeToWorkspace(DMXType type, long workspaceId)
List<Topic> getAssignedTopics(long workspaceId)
List<Association> getAssignedAssociations(long workspaceId)
List<Topic> getAssignedTopics(long workspaceId, String topicTypeUri)
List<Association> getAssignedAssociations(long workspaceId, String assocTypeUri)
Copyright © 2018. All Rights Reserved.