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

All Superinterfaces:
IJsr170DAO
All Known Implementing Classes:
AlfrescoRepositoryWorkspaceDAO, JcrRepositoryWorkspaceDAO

public interface IWorkspaceDAO
extends IJsr170DAO

Interface for DAO accessing repository


Method Summary
 boolean canCreate()
          Tells if workspace creation is provided by this DAO.
 void create(String strWorkspace)
          Create a new workspace
 void delete(String strWorkspace)
          Remove a workspace
 IWorkspace findById(String id)
          Find a workspace by id
 IWorkspace findByName(String strWorkspace)
          Find a workspace by name
 String[] getAvailableWorkspaces()
          Return all availables workspace
 void store(IWorkspace workspace)
          Modify a workspace
 
Methods inherited from interface fr.paris.lutece.plugins.jcr.business.IJsr170DAO
free, isAlive
 

Method Detail

create

void create(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(String strWorkspace)
Remove a workspace

Parameters:
strWorkspace - the workspace

findById

IWorkspace findById(String id)
Find a workspace by id

Parameters:
id - the workspace id
Returns:
the workspace

findByName

IWorkspace findByName(String strWorkspace)
Find a workspace by name

Parameters:
strWorkspace - the workspace name
Returns:
the workspace

getAvailableWorkspaces

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 © 2014 Mairie de Paris. All Rights Reserved.