|
||||||||||
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
public abstract class AbstractRepositoryDAO
Abstract class for common jcr operations like :
Field Summary | |
---|---|
protected org.springmodules.jcr.JcrTemplate |
_jcrTemplate
|
protected IRepositoryInitializer |
_repositoryInitializer
|
protected String |
_strDefaultWorkspaceName
|
Constructor Summary | |
---|---|
AbstractRepositoryDAO()
|
Method Summary | |
---|---|
protected Object |
execute(org.springmodules.jcr.JcrCallback callback)
Run a JcrCallback on the current workspace |
protected Object |
execute(String strWorkspace,
org.springmodules.jcr.JcrCallback callback)
Run a JcrCallback on the workspace specified by strWorkspace |
void |
free()
does some cleaning |
protected void |
init(org.springmodules.jcr.JcrTemplate jcrTemplate,
IRepositoryInitializer repositoryInitializer,
String strDefaultWorkspaceName)
Constructor that MUST be called by derivated classes. |
boolean |
isAlive()
|
void |
releaseSession(javax.jcr.Session session)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected org.springmodules.jcr.JcrTemplate _jcrTemplate
protected String _strDefaultWorkspaceName
protected IRepositoryInitializer _repositoryInitializer
Constructor Detail |
---|
public AbstractRepositoryDAO()
Method Detail |
---|
protected void init(org.springmodules.jcr.JcrTemplate jcrTemplate, IRepositoryInitializer repositoryInitializer, String strDefaultWorkspaceName)
jcrTemplate
- the jcrTemplate used to execute jcr operationsrepositoryInitializer
- the repositoryInitializer used to init some specific repository operationsstrDefaultWorkspaceName
- the name of the default workspace to use (can be null in order to
use the default workspace repository)protected Object execute(org.springmodules.jcr.JcrCallback callback)
callback
- a JcrCallback
protected Object execute(String strWorkspace, org.springmodules.jcr.JcrCallback callback)
strWorkspace
- the name of the workspacecallback
- a JcrCallback
public boolean isAlive()
isAlive
in interface IJsr170DAO
public void free()
IJsr170DAO
free
in interface IJsr170DAO
public void releaseSession(javax.jcr.Session session)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |