Module platform

Interface ProjectManager

All Superinterfaces:
RegistryContext
All Known Implementing Classes:
ProjectManagerImpl

public interface ProjectManager extends RegistryContext
  • Method Details

    • createProject

      Project createProject(ProjectFactory projectFactory) throws IOException
      Create a new project
      Parameters:
      porjectFactory -
      Returns:
      Throws:
      IOException
    • openProject

      Project openProject(ProjectFactory projectFactory, FilterSource fs, Map initParams) throws IOException
      Open an existing project into a workbench created by the uiapp (client)
      Parameters:
      client -
      porjectFactory -
      fs -
      initParams -
      Returns:
      Throws:
      IOException
    • getProjectId

      Object getProjectId(Project p)
      Get the id of a project
      Parameters:
      p -
      Returns:
    • getProject

      Project getProject(Object projectId)
      Get exiting Project by ID
    • listOpenProjects

      String[] listOpenProjects()
      Return a list of string "project id" + "projectname"
    • connectToProject

      ProjectWorkbench connectToProject(Object p, ProjectWorkbenchLauncher wbLauncher)
      Link an existing project to a given wb
      Parameters:
      projectId -
      client -
      Returns:
    • disconnectProject

      void disconnectProject(ProjectWorkbench wb)
      Remove the link of a project to the given workbench. The workbench without project is to be disposed
      Parameters:
      wb -
    • getLinkedWorkbenches

      ProjectWorkbench[] getLinkedWorkbenches(Project p)
      get the workbenches that are linked to the project p
      Parameters:
      p -
      Returns:
    • getInstance

      static ProjectManager getInstance()
      required method to unsure there is only one instance of project manager per groimp instance
      Returns:
    • linkWorkbenchToProject

      void linkWorkbenchToProject(Object projectId, ProjectWorkbench client)
      link a Workbench to a Project
      Parameters:
      projectId -
      client -