Class ActivityFile
java.lang.Object
org.exoplatform.social.core.activity.model.ActivityFile
- All Implemented Interfaces:
Serializable
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionActivityFile(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
Modifier and TypeMethodDescriptiongetId()Gets the file inputStreamlongGets the last modified.Gets the mime type.getName()Gets the file name.Gets the file storageGets the file uploadId.booleanvoidsetDeleted(boolean deleted) voidsetDestinationFolder(String destinationFolder) voidvoidsetInputStream(InputStream inputStream) Sets the file inputStreamvoidsetLastModified(long lastModified) Sets the last modified.voidSets the mime type.voidSets the file name.voidsetStorage(String storage) Sets the file storagevoidsetUploadId(String uploadId) Sets the uploadId
-
Constructor Details
-
ActivityFile
public ActivityFile() -
ActivityFile
-
ActivityFile
-
ActivityFile
-
ActivityFile
public ActivityFile(String uploadId, String storage, String name, String mimeType, InputStream inputStream, long lastModified)
-
-
Method Details
-
setDeleted
public void setDeleted(boolean deleted) -
isDeleted
public boolean isDeleted() -
getName
Gets the file name.- Returns:
- the file name
-
setName
Sets the file name.- Parameters:
name-
-
getMimeType
Gets the mime type.- Returns:
- the mime type
-
setMimeType
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
Gets the file uploadId.- Returns:
- the uploadId
-
setUploadId
Sets the uploadId- Parameters:
uploadId-
-
getStorage
Gets the file storage- Returns:
- the file storage
-
setStorage
Sets the file storage- Parameters:
storage-
-
setInputStream
Sets the file inputStream- Parameters:
inputStream-
-
getInputStream
Gets the file inputStream- Returns:
- inputStream
-
getId
-
setId
-
getDestinationFolder
-
setDestinationFolder
-