|
||||||||||
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.AbstractRepositoryContentDAO
fr.paris.lutece.plugins.jcr.business.JcrRepositoryFileDAO
public class JcrRepositoryFileDAO
Implementation of IRepositoryFileDAO for Jackrabbit JCR
Field Summary | |
---|---|
protected static String |
PATH_SEPARATOR
|
protected static String |
RESOURCE_TYPE
|
Fields inherited from class fr.paris.lutece.plugins.jcr.business.AbstractRepositoryContentDAO |
---|
ATTRIBUTE_NODE_SIZE, DEFAULT_MIME_TYPE, MIXIN_REFERENCEABLE, MIXIN_VERSIONNABLE, NODE_TYPE_FILE, NODE_TYPE_FILE_RESOURCE, NODE_TYPE_FOLDER, NODE_TYPE_JCR_CONTENT, PROPERTY_JCR_DATA, PROPERTY_JCR_LASTMODIFIED, PROPERTY_JCR_MIMETYPE, PROPERTY_JCR_NAME, REGEXP_ABSOLUTE_PATH, ROOT_NODE_PATH |
Fields inherited from class fr.paris.lutece.plugins.jcr.business.AbstractRepositoryDAO |
---|
_jcrTemplate, _repositoryInitializer, _strDefaultWorkspaceName |
Constructor Summary | |
---|---|
JcrRepositoryFileDAO()
|
Method Summary | |
---|---|
protected boolean |
exists(javax.jcr.Node node)
Get the node existence |
protected String |
getAbsolutePath(javax.jcr.Node node)
Get the absolute path of a node |
protected Calendar |
getCreated(javax.jcr.Node node)
Get the creation date |
protected InputStream |
getFileContent(javax.jcr.Node node)
Get the node content |
protected Calendar |
getLastModified(javax.jcr.Node node)
Get the modification date |
protected String |
getMimeType(javax.jcr.Node node)
Get the Mime type |
protected String |
getName(javax.jcr.Node node)
Get the node name |
protected String |
getPath(javax.jcr.Node node)
Gives the path of a node It must be overloaded by children classes |
protected Properties |
getProperties()
Gives a way to the configuration properties |
protected long |
getSize(javax.jcr.Node node)
Get the size of node content |
protected boolean |
isDirectory(javax.jcr.Node node)
Get the node type |
protected boolean |
isFile(javax.jcr.Node node)
Get the node type |
Methods inherited from class fr.paris.lutece.plugins.jcr.business.AbstractRepositoryContentDAO |
---|
create, create, delete, findById, findById, findByPath, getDepth, getHistory, getParentUUID, getPathToFile, getProperty, getUUID, isVersionnable, listFiles, ownsLock, removeLock, setContent, setLock, setVersionnable, store |
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.IRepositoryFileDAO |
---|
create, create, delete, findById, findById, findByPath, getHistory, getPathToFile, listFiles, removeLock, setLock, setVersionnable, store |
Methods inherited from interface fr.paris.lutece.plugins.jcr.business.IJsr170DAO |
---|
free, isAlive |
Field Detail |
---|
protected static final String PATH_SEPARATOR
protected static final String RESOURCE_TYPE
Constructor Detail |
---|
public JcrRepositoryFileDAO()
Method Detail |
---|
protected String getAbsolutePath(javax.jcr.Node node)
getAbsolutePath
in class AbstractRepositoryContentDAO
node
- the node
protected InputStream getFileContent(javax.jcr.Node node)
getFileContent
in class AbstractRepositoryContentDAO
node
- the node
protected String getName(javax.jcr.Node node)
getName
in class AbstractRepositoryContentDAO
node
- the node
protected long getSize(javax.jcr.Node node)
getSize
in class AbstractRepositoryContentDAO
node
- the node
protected boolean isDirectory(javax.jcr.Node node)
isDirectory
in class AbstractRepositoryContentDAO
node
- the node
protected boolean isFile(javax.jcr.Node node)
isFile
in class AbstractRepositoryContentDAO
node
- the node
protected boolean exists(javax.jcr.Node node)
exists
in class AbstractRepositoryContentDAO
node
- the node
protected String getMimeType(javax.jcr.Node node)
getMimeType
in class AbstractRepositoryContentDAO
node
- the node
protected Calendar getCreated(javax.jcr.Node node)
getCreated
in class AbstractRepositoryContentDAO
node
- the node
protected Calendar getLastModified(javax.jcr.Node node)
getLastModified
in class AbstractRepositoryContentDAO
node
- the node
protected String getPath(javax.jcr.Node node)
AbstractRepositoryContentDAO
getPath
in class AbstractRepositoryContentDAO
node
- the node
protected Properties getProperties()
AbstractRepositoryContentDAO
getProperties
in class AbstractRepositoryContentDAO
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |