public class Attachment extends Object
| Constructor and Description |
|---|
Attachment()
This class use for keep data and infomation about attachments
the id will automatic generate when create new object
|
| Modifier and Type | Method and Description |
|---|---|
String |
getDataPath() |
String |
getId() |
InputStream |
getInputStream() |
Calendar |
getLastModified() |
String |
getMimeType() |
String |
getName() |
String |
getResourceId()
get id to call download service remove temp file
|
long |
getSize() |
String |
getWorkspace() |
void |
setId(String id) |
void |
setInputStream(InputStream input) |
void |
setLastModified(Calendar lastModified) |
void |
setMimeType(String mimeType_) |
void |
setName(String name_) |
void |
setResourceId(String resourceId)
keep id to make sure temp file will be removed after use uploaded file
|
void |
setSize(long size_) |
void |
setWorkspace(String workspace) |
public Attachment()
public String getId()
public void setId(String id)
public String getMimeType()
public void setMimeType(String mimeType_)
public long getSize()
public void setSize(long size_)
public String getName()
public void setName(String name_)
public void setInputStream(InputStream input) throws Exception
Exceptionpublic InputStream getInputStream() throws Exception
Exceptionpublic void setLastModified(Calendar lastModified)
public Calendar getLastModified()
public void setWorkspace(String workspace)
public String getWorkspace()
public void setResourceId(String resourceId)
public String getResourceId()
Copyright © 2003–2015 eXo Platform SAS. All rights reserved.