fr.paris.lutece.plugins.jcr.business
Interface IWorkspaceDAO

All Known Implementing Classes:
AlfrescoRepositoryWorkspaceDAO, JcrRepositoryWorkspaceDAO

public interface IWorkspaceDAO

Interface for DAO accessing repository


Method Summary
 boolean canCreate()
          Tells if workspace creation is provided by this DAO.
 void create(java.lang.String strWorkspace)
          Create a new workspace
 void delete(java.lang.String strWorkspace)
          Remove a workspace
 IWorkspace findById(java.lang.String id)
          Find a workspace by id
 IWorkspace findByName(java.lang.String strWorkspace)
          Find a workspace by name
 java.lang.String[] getAvailableWorkspaces()
          Return all availables workspace
 void store(IWorkspace workspace)
          Modify a workspace
 

Method Detail

create

void create(java.lang.String strWorkspace)
Create a new workspace

Parameters:
strWorkspace - the workspace name

store

void store(IWorkspace workspace)
Modify a workspace

Parameters:
workspace - the workspace

delete

void delete(java.lang.String strWorkspace)
Remove a workspace

Parameters:
strWorkspace - the workspace

findById

IWorkspace findById(java.lang.String id)
Find a workspace by id

Parameters:
id - the workspace id
Returns:
the workspace

findByName

IWorkspace findByName(java.lang.String strWorkspace)
Find a workspace by name

Parameters:
strWorkspace - the workspace name
Returns:
the workspace

getAvailableWorkspaces

java.lang.String[] getAvailableWorkspaces()
Return all availables workspace

Returns:
an array with available workspace names

canCreate

boolean canCreate()
Tells if workspace creation is provided by this DAO.

Returns:
true if workspace creation is allowed


Copyright © 2008 Mairie de Paris. All Rights Reserved.