|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.paris.lutece.plugins.jcr.business.JcrRepositoryFileImpl
public class JcrRepositoryFileImpl
An implementation of IRepositoryFile for JCR
| Field Summary | |
|---|---|
static java.lang.String |
NODE_TYPE_FILE
|
static java.lang.String |
NODE_TYPE_FILE_RESOURCE
|
static java.lang.String |
NODE_TYPE_FOLDER
|
static java.lang.String |
PATH_SEPARATOR
|
static java.lang.String |
RESOURCE_TYPE
|
| Constructor Summary | |
|---|---|
JcrRepositoryFileImpl()
An empty constructor |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object o)
|
boolean |
exists()
Test the existence of the file |
java.lang.String |
getAbsolutePath()
Get the absolute path |
java.io.InputStream |
getContent()
Get the content of the file, if it is a file |
java.lang.String |
getMimeType()
Get the Mime type associated with the file content |
java.lang.String |
getName()
Get the name of this file |
java.lang.String |
getPath()
Get the path of this file |
java.lang.String |
getResourceId()
Return the resource id |
java.lang.String |
getResourceTypeCode()
Return the resource type |
javax.jcr.Session |
getSession()
|
java.lang.String |
getXml()
Get the xml representation of this file |
java.lang.String |
getXml(boolean loadContent)
Get the xml representation of this file |
boolean |
isDirectory()
Test the type of this file |
boolean |
isFile()
Test the type of this file |
java.util.Calendar |
lastModified()
Get the date of last modification |
long |
length()
Get the length of the file content |
void |
setAbsolutePath(java.lang.String absolutePath)
|
void |
setContent(java.io.InputStream content)
|
void |
setDirectory(boolean isDirectory)
|
void |
setExists(boolean exists)
|
void |
setFile(boolean isFile)
|
void |
setLastModified(java.util.Calendar lastModified)
|
void |
setLength(long length)
|
void |
setMimeType(java.lang.String mimeType)
|
void |
setName(java.lang.String strName)
Set the name of this file |
void |
setPath(java.lang.String path)
|
void |
setResourceId(java.lang.String strResourceId)
|
void |
setSession(javax.jcr.Session session)
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String PATH_SEPARATOR
public static final java.lang.String RESOURCE_TYPE
public static final java.lang.String NODE_TYPE_FOLDER
public static final java.lang.String NODE_TYPE_FILE
public static final java.lang.String NODE_TYPE_FILE_RESOURCE
| Constructor Detail |
|---|
public JcrRepositoryFileImpl()
| Method Detail |
|---|
public boolean exists()
IRepositoryFile
exists in interface IRepositoryFilepublic void setExists(boolean exists)
exists - the _bExists to setpublic boolean isDirectory()
IRepositoryFile
isDirectory in interface IRepositoryFilepublic void setDirectory(boolean isDirectory)
isDirectory - the _bIsDirectory to setpublic boolean isFile()
IRepositoryFile
isFile in interface IRepositoryFilepublic void setFile(boolean isFile)
isFile - the _bIsFile to setpublic java.io.InputStream getContent()
IRepositoryFile
getContent in interface IRepositoryFilepublic void setContent(java.io.InputStream content)
content - the _content to setpublic javax.jcr.Session getSession()
public void setSession(javax.jcr.Session session)
session - the _session to setpublic java.lang.String getAbsolutePath()
IRepositoryFile
getAbsolutePath in interface IRepositoryFilepublic void setAbsolutePath(java.lang.String absolutePath)
absolutePath - the _strAbsolutePath to setpublic java.lang.String getMimeType()
IRepositoryFile
getMimeType in interface IRepositoryFilepublic void setMimeType(java.lang.String mimeType)
mimeType - the _strMimeType to setpublic void setPath(java.lang.String path)
path - the _strPath to setpublic java.lang.String getPath()
IRepositoryFile
getPath in interface IRepositoryFileIRepositoryFile.getPath()public java.lang.String getName()
IRepositoryFile
getName in interface IRepositoryFileIRepositoryFile.getName()public java.util.Calendar lastModified()
IRepositoryFile
lastModified in interface IRepositoryFileIRepositoryFile.lastModified()public long length()
IRepositoryFile
length in interface IRepositoryFileIRepositoryFile.length()public void setLength(long length)
length - the file sizepublic java.lang.String getResourceId()
IRepositoryFile
getResourceId in interface IRepositoryFilegetResourceId in interface fr.paris.lutece.portal.service.rbac.RBACResourceRBACResource.getResourceId()public void setResourceId(java.lang.String strResourceId)
strResourceId - the resource IDpublic java.lang.String getResourceTypeCode()
IRepositoryFile
getResourceTypeCode in interface IRepositoryFilegetResourceTypeCode in interface fr.paris.lutece.portal.service.rbac.RBACResourceRBACResource.getResourceTypeCode()public boolean equals(java.lang.Object o)
equals in class java.lang.Objecto - the object to compare
Object.equals(java.lang.Object)public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public java.lang.String getXml()
IRepositoryFile
getXml in interface IRepositoryFileIRepositoryFile.getXml()public java.lang.String getXml(boolean loadContent)
IRepositoryFile
getXml in interface IRepositoryFileloadContent - determines if file content must be loaded
IRepositoryFile.getXml(boolean)public void setLastModified(java.util.Calendar lastModified)
lastModified - the date of last modificationpublic void setName(java.lang.String strName)
IRepositoryFile
setName in interface IRepositoryFilestrName - the name of the fileIRepositoryFile.setName(java.lang.String)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||