public class Attachment extends AbstractModel
| 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() |
InputStream |
getInputStream() |
String |
getMimeType() |
String |
getName() |
String |
getResourceId()
get id to call download service remove temp file
|
long |
getSize() |
String |
getWorkspace() |
void |
setInputStream(InputStream input) |
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) |
equals, getCompositeId, getDS, getId, getLastModified, hashCode, setDS, setId, setLastModifiedpublic Attachment()
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 String getDataPath()
public void setInputStream(InputStream input) throws Exception
Exceptionpublic InputStream getInputStream() throws Exception
Exceptionpublic void setWorkspace(String workspace)
public String getWorkspace()
public void setResourceId(String resourceId)
public String getResourceId()
Copyright © 2003–2021 eXo Platform SAS. All rights reserved.