public interface WorkspacesService
Modifier and Type | Field and Description |
---|---|
static String |
DEEPAMEHTA_WORKSPACE_NAME |
static SharingMode |
DEEPAMEHTA_WORKSPACE_SHARING_MODE |
static String |
DEEPAMEHTA_WORKSPACE_URI |
Modifier and Type | Method and Description |
---|---|
void |
assignToWorkspace(DeepaMehtaObject object,
long workspaceId)
Assigns the given object to the given workspace.
|
void |
assignTypeToWorkspace(Type 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) |
ResultList<RelatedTopic> |
getAssignedTopics(long workspaceId,
String typeUri)
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.
|
boolean |
isAssignedToWorkspace(long objectId,
long workspaceId)
Checks weather the given topic or association is assigned to the given workspace.
|
static final String DEEPAMEHTA_WORKSPACE_NAME
static final String DEEPAMEHTA_WORKSPACE_URI
static final SharingMode DEEPAMEHTA_WORKSPACE_SHARING_MODE
Topic createWorkspace(String name, String uri, SharingMode sharingMode)
uri
- may be nullTopic getWorkspace(String uri)
RuntimeException
- If no workspace exists for the given URI.ResultList<RelatedTopic> getAssignedTopics(long workspaceId, String typeUri)
Topic getAssignedWorkspace(long objectId)
id
- a topic ID, or an association IDnull
if no workspace is assigned.boolean isAssignedToWorkspace(long objectId, long workspaceId)
void assignToWorkspace(DeepaMehtaObject object, long workspaceId)
void assignTypeToWorkspace(Type type, long workspaceId)
Copyright © 2015. All Rights Reserved.