fr.paris.lutece.plugins.jcr.business
Class AlfrescoRepositoryWorkspaceDAO

java.lang.Object
  extended by fr.paris.lutece.plugins.jcr.business.AbstractRepositoryDAO
      extended by fr.paris.lutece.plugins.jcr.business.AlfrescoRepositoryWorkspaceDAO
All Implemented Interfaces:
IJsr170DAO, IWorkspaceDAO

public class AlfrescoRepositoryWorkspaceDAO
extends AbstractRepositoryDAO
implements IWorkspaceDAO

Implementation of Alfresco JSR-170 browsing


Field Summary
 
Fields inherited from class fr.paris.lutece.plugins.jcr.business.AbstractRepositoryDAO
_jcrTemplate, _repositoryInitializer, _strDefaultWorkspaceName
 
Constructor Summary
AlfrescoRepositoryWorkspaceDAO()
           
 
Method Summary
 boolean canCreate()
          Tells if workspace creation is provided by this DAO.
 void create(String strWorkspace)
          Not available
 void delete(String strWorkspace)
          Not available
 IWorkspace findById(String id)
          Not available
 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)
          Creates a new JcrRepositoryFileDAO object.
 void releaseSession(javax.jcr.Session session)
           
 void store(IWorkspace workspace)
          Not available
 
Methods inherited from class fr.paris.lutece.plugins.jcr.business.AbstractRepositoryDAO
execute, execute, free, init, isAlive
 
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
 

Constructor Detail

AlfrescoRepositoryWorkspaceDAO

public AlfrescoRepositoryWorkspaceDAO()
Method Detail

getInstance

public static IWorkspaceDAO getInstance(org.springmodules.jcr.JcrTemplate jcrTemplate,
                                        IRepositoryInitializer repositoryInitializer,
                                        String strDefaultWorkspaceName)
Creates a new JcrRepositoryFileDAO object.

Parameters:
jcrTemplate - a jcrTemplate
repositoryInitializer - a repositoryInitializer
strDefaultWorkspaceName - a default workspace name
Returns:
an instance of this DAO

create

public void create(String strWorkspace)
Not available

Specified by:
create in interface IWorkspaceDAO
Parameters:
strWorkspace - the workspace
See Also:
IWorkspaceDAO.create(java.lang.String)

delete

public void delete(String strWorkspace)
Not available

Specified by:
delete in interface IWorkspaceDAO
Parameters:
strWorkspace - the workspace
See Also:
IWorkspaceDAO.delete(java.lang.String)

findById

public IWorkspace findById(String id)
Not available

Specified by:
findById in interface IWorkspaceDAO
Parameters:
id - the id
Returns:
a workspace
See Also:
IWorkspaceDAO.findById(java.lang.String)

findByName

public IWorkspace findByName(String strWorkspace)
Description copied from interface: IWorkspaceDAO
Find a workspace by name

Specified by:
findByName in interface IWorkspaceDAO
Parameters:
strWorkspace - the workspace name
Returns:
the workspace
See Also:
IWorkspaceDAO.findByName(java.lang.String)

getAvailableWorkspaces

public String[] getAvailableWorkspaces()
Description copied from interface: IWorkspaceDAO
Return all availables workspace

Specified by:
getAvailableWorkspaces in interface IWorkspaceDAO
Returns:
all available workspace
See Also:
IWorkspaceDAO.getAvailableWorkspaces()

store

public void store(IWorkspace workspace)
Not available

Specified by:
store in interface IWorkspaceDAO
Parameters:
workspace - the workspace
See Also:
IWorkspaceDAO.store(fr.paris.lutece.plugins.jcr.business.IWorkspace)

canCreate

public boolean canCreate()
Description copied from interface: IWorkspaceDAO
Tells if workspace creation is provided by this DAO.

Specified by:
canCreate in interface IWorkspaceDAO
Returns:
always false
See Also:
IWorkspaceDAO.canCreate()

releaseSession

public void releaseSession(javax.jcr.Session session)
Overrides:
releaseSession in class AbstractRepositoryDAO


Copyright © 2014 Mairie de Paris. All Rights Reserved.