|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfr.paris.lutece.plugins.jcr.business.AbstractRepositoryDAO
fr.paris.lutece.plugins.jcr.business.JcrRepositoryWorkspaceDAO
public class JcrRepositoryWorkspaceDAO
An implementation of IworkspaceDAO for Jackrabbit JCR
Field Summary | |
---|---|
protected static String |
NODE_ROLES
|
protected static String |
NODE_TYPE_FILE
|
protected static String |
NODE_TYPE_FOLDER
|
protected static String |
PROPERTY_DELETED
|
Fields inherited from class fr.paris.lutece.plugins.jcr.business.AbstractRepositoryDAO |
---|
_jcrTemplate, _repositoryInitializer, _strDefaultWorkspaceName |
Constructor Summary | |
---|---|
JcrRepositoryWorkspaceDAO()
|
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)
We can't delete programmatically a jackrabbit 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 |
static IWorkspaceDAO |
getInstance(org.springmodules.jcr.JcrTemplate jcrTemplate,
IRepositoryInitializer repositoryInitializer,
String strDefaultWorkspaceName,
boolean creationAllowed)
|
void |
store(IWorkspace workspace)
Modify a workspace |
Methods inherited from class fr.paris.lutece.plugins.jcr.business.AbstractRepositoryDAO |
---|
execute, execute, free, init, isAlive, releaseSession |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface fr.paris.lutece.plugins.jcr.business.IJsr170DAO |
---|
free, isAlive |
Field Detail |
---|
protected static final String NODE_TYPE_FOLDER
protected static final String NODE_TYPE_FILE
protected static final String NODE_ROLES
protected static final String PROPERTY_DELETED
Constructor Detail |
---|
public JcrRepositoryWorkspaceDAO()
Method Detail |
---|
public static IWorkspaceDAO getInstance(org.springmodules.jcr.JcrTemplate jcrTemplate, IRepositoryInitializer repositoryInitializer, String strDefaultWorkspaceName, boolean creationAllowed)
jcrTemplate
- a jcrTemplaterepositoryInitializer
- a repositoryInitializerstrDefaultWorkspaceName
- a default workspace namecreationAllowed
- workspace creation allowed ?
public void create(String strWorkspace)
IWorkspaceDAO
create
in interface IWorkspaceDAO
strWorkspace
- the workspace to createIWorkspaceDAO.create(java.lang.String)
public void delete(String strWorkspace)
delete
in interface IWorkspaceDAO
strWorkspace
- the workspace to deleteIWorkspaceDAO.delete(java.lang.String)
public IWorkspace findById(String id)
IWorkspaceDAO
findById
in interface IWorkspaceDAO
id
- the id to search for
IWorkspaceDAO.findById(java.lang.String)
public IWorkspace findByName(String strWorkspace)
IWorkspaceDAO
findByName
in interface IWorkspaceDAO
strWorkspace
- the name of the workspace to search
IWorkspaceDAO.findByName(java.lang.String)
public String[] getAvailableWorkspaces()
IWorkspaceDAO
getAvailableWorkspaces
in interface IWorkspaceDAO
IWorkspaceDAO.getAvailableWorkspaces()
public void store(IWorkspace workspace)
IWorkspaceDAO
store
in interface IWorkspaceDAO
workspace
- the workspace to updateIWorkspaceDAO.store(fr.paris.lutece.plugins.jcr.business.IWorkspace)
public boolean canCreate()
IWorkspaceDAO
canCreate
in interface IWorkspaceDAO
IWorkspaceDAO.canCreate()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |