de.deepamehta.plugins.workspaces.service
Interface WorkspacesService

Show UML class diagram
All Superinterfaces:
PluginService
All Known Implementing Classes:
WorkspacesPlugin

public interface WorkspacesService
extends PluginService


Method Summary
 void assignToWorkspace(DeepaMehtaObject object, long workspaceId)
          Assigns the specified object to a workspace.
 void assignTypeToWorkspace(Type type, long workspaceId)
          Assigns the specified type and all its view configuration topics to a workspace.
 Topic createWorkspace(String name)
           
 Topic createWorkspace(String name, String uri)
           
 List<RelatedTopic> getAssignedWorkspaces(DeepaMehtaObject object)
          Fetches the workspaces the specified object is assigned to.
 Topic getDefaultWorkspace()
          Fetches the default workspace ("DeepaMehta").
 boolean isAssignedToWorkspace(Topic topic, long workspaceId)
          Checks weather the specified topic is assigned to the specified workspace
 

Method Detail

getAssignedWorkspaces

List<RelatedTopic> getAssignedWorkspaces(DeepaMehtaObject object)
Fetches the workspaces the specified object is assigned to.


isAssignedToWorkspace

boolean isAssignedToWorkspace(Topic topic,
                              long workspaceId)
Checks weather the specified topic is assigned to the specified workspace


getDefaultWorkspace

Topic getDefaultWorkspace()
Fetches the default workspace ("DeepaMehta").

Returns:
The default workspace (a topic of type "Workspace" / "dm4.workspaces.workspace"), or null if it doesn't exist. Note: the default workspace is NOT required to exist ### TODO: think about it

assignToWorkspace

void assignToWorkspace(DeepaMehtaObject object,
                       long workspaceId)
Assigns the specified object to a workspace.


assignTypeToWorkspace

void assignTypeToWorkspace(Type type,
                           long workspaceId)
Assigns the specified type and all its view configuration topics to a workspace.


createWorkspace

Topic createWorkspace(String name)

createWorkspace

Topic createWorkspace(String name,
                      String uri)


Copyright © 2014. All Rights Reserved.