|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exoplatform.faq.service.FileAttachment
public class FileAttachment
Created by The eXo Platform SARL File Attachment is used to store infor of file is attached when upload file or get files of question when view in page.
| Constructor Summary | |
|---|---|
FileAttachment()
|
|
| Method Summary | |
|---|---|
java.lang.String |
getId()
Gets the file's id, each file have an unique id. |
java.io.InputStream |
getInputStream()
Gets the input stream which is file's data. |
java.lang.String |
getMimeType()
Gets the mime type. |
java.lang.String |
getName()
Gets the name of file attach. |
java.lang.String |
getNodeName()
Get the name of Node file |
java.lang.String |
getPath()
Gets the path of file, this path is used to view or down load file. |
long |
getSize()
Gets the size of file. |
java.lang.String |
getWorkspace()
Gets the workspace. |
void |
setId(java.lang.String s)
Sets the id for this file, setting the id for this file is done auto by system. |
void |
setInputStream(java.io.InputStream in)
Sets the input stream which is file's data. |
void |
setMimeType(java.lang.String mimeType_)
Sets the mime type. |
void |
setName(java.lang.String name_)
Sets the name of file for fileAttachment object when upload or get data. |
void |
setNodeName(java.lang.String nodeName)
Registers name for node which is used to store file attachment |
void |
setPath(java.lang.String p)
Sets the path which is the path in server. |
void |
setSize(long size_)
Sets the size for file is uploaded, setting size for file is done auto by sytem. |
void |
setWorkspace(java.lang.String ws)
Sets the workspace. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FileAttachment()
| Method Detail |
|---|
public java.lang.String getId()
public void setId(java.lang.String s)
s - the new idpublic java.lang.String getPath()
public void setPath(java.lang.String p)
p - the new pathpublic java.lang.String getWorkspace()
public void setWorkspace(java.lang.String ws)
ws - the new workspacepublic java.lang.String getMimeType()
public void setMimeType(java.lang.String mimeType_)
mimeType_ - the new mime typepublic long getSize()
public void setSize(long size_)
size_ - the new sizepublic java.lang.String getName()
public void setName(java.lang.String name_)
name_ - the new name
public java.io.InputStream getInputStream()
throws java.lang.Exception
java.lang.Exception - if Repository or value format occur exception
public void setInputStream(java.io.InputStream in)
throws java.lang.Exception
in - the new input stream
java.lang.Exception - the exceptionpublic java.lang.String getNodeName()
public void setNodeName(java.lang.String nodeName)
nodeName -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||