Class ActivityFile
- java.lang.Object
-
- org.exoplatform.social.core.activity.model.ActivityFile
-
- All Implemented Interfaces:
Serializable
public class ActivityFile extends Object implements Serializable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ActivityFile()ActivityFile(String uploadId, String storage)ActivityFile(String id, String uploadId, String storage)ActivityFile(String id, String uploadId, String storage, String destinationFolder)ActivityFile(String uploadId, String storage, String name, String mimeType, InputStream inputStream, long lastModified)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDestinationFolder()StringgetId()InputStreamgetInputStream()Gets the file inputStreamlonggetLastModified()Gets the last modified.StringgetMimeType()Gets the mime type.StringgetName()Gets the file name.StringgetStorage()Gets the file storageStringgetUploadId()Gets the file uploadId.booleanisDeleted()voidsetDeleted(boolean deleted)voidsetDestinationFolder(String destinationFolder)voidsetId(String id)voidsetInputStream(InputStream inputStream)Sets the file inputStreamvoidsetLastModified(long lastModified)Sets the last modified.voidsetMimeType(String s)Sets the mime type.voidsetName(String name)Sets the file name.voidsetStorage(String storage)Sets the file storagevoidsetUploadId(String uploadId)Sets the uploadId
-
-
-
Method Detail
-
setDeleted
public void setDeleted(boolean deleted)
-
isDeleted
public boolean isDeleted()
-
getName
public String getName()
Gets the file name.- Returns:
- the file name
-
setName
public void setName(String name)
Sets the file name.- Parameters:
name-
-
getMimeType
public String getMimeType()
Gets the mime type.- Returns:
- the mime type
-
setMimeType
public void setMimeType(String s)
Sets the mime type.- Parameters:
s- the new mime type
-
getLastModified
public long getLastModified()
Gets the last modified.- Returns:
- the last modified
-
setLastModified
public void setLastModified(long lastModified)
Sets the last modified.- Parameters:
lastModified- the new last modified
-
getUploadId
public String getUploadId()
Gets the file uploadId.- Returns:
- the uploadId
-
setUploadId
public void setUploadId(String uploadId)
Sets the uploadId- Parameters:
uploadId-
-
getStorage
public String getStorage()
Gets the file storage- Returns:
- the file storage
-
setStorage
public void setStorage(String storage)
Sets the file storage- Parameters:
storage-
-
setInputStream
public void setInputStream(InputStream inputStream)
Sets the file inputStream- Parameters:
inputStream-
-
getInputStream
public InputStream getInputStream()
Gets the file inputStream- Returns:
- inputStream
-
getId
public String getId()
-
setId
public void setId(String id)
-
getDestinationFolder
public String getDestinationFolder()
-
setDestinationFolder
public void setDestinationFolder(String destinationFolder)
-
-