|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.paris.lutece.plugins.jsr170.business.JcrRepositoryFileImpl
public class JcrRepositoryFileImpl
| 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()
|
|
| 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 |
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 |
setPath(java.lang.String path)
|
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 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)
_ession - the _ession 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 IRepositoryFilepublic java.lang.String getName()
IRepositoryFile
getName in interface IRepositoryFilepublic java.util.Calendar lastModified()
IRepositoryFile
lastModified in interface IRepositoryFilepublic long length()
IRepositoryFile
length in interface IRepositoryFilepublic void setLength(long length)
public java.lang.String getResourceId()
IRepositoryFile
getResourceId in interface IRepositoryFilegetResourceId in interface fr.paris.lutece.portal.service.rbac.RBACResourcepublic java.lang.String getResourceTypeCode()
IRepositoryFile
getResourceTypeCode in interface IRepositoryFilegetResourceTypeCode in interface fr.paris.lutece.portal.service.rbac.RBACResourcepublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getXml()
IRepositoryFile
getXml in interface IRepositoryFilepublic void setLastModified(java.util.Calendar lastModified)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||