Package lumis.portal.file.transformation
Class TransformedFileConfig
- java.lang.Object
-
- lumis.portal.file.transformation.TransformedFileConfig
-
- All Implemented Interfaces:
IDownloadableFile
public class TransformedFileConfig extends Object implements IDownloadableFile
Represents the transformation to be persisted.- Since:
- 6.1.0
- Version:
- $Revision: 20807 $ $Date: 2017-11-30 17:08:51 -0200 (Thu, 30 Nov 2017) $
-
-
Constructor Summary
Constructors Constructor Description TransformedFileConfig()
Class ConstructorTransformedFileConfig(String fileId, String fileConfigId, FileTransformation fileTransformation, String name, long fileSize, String contentType, String fullPath, FileMetadata metadata, boolean generatedWithError)
Class Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getContentType()
Returns the contentType.String
getFileConfigId()
Returns the fileConfigId.long
getFileSize()
Returns the fileSize.FileTransformation
getFileTransformation()
Returns the fileTransformationId.String
getFullPath()
Returns the fullPath starting from the "files/" directory.IFileMetadata
getMetadata()
Returns the metadata.String
getName()
Returns the name.String
getTransformedFileId()
Returns the transformedFileId.void
setContentType(String contentType)
Sets the contentType.void
setFileConfigId(String fileConfigId)
Sets the fileConfigId.void
setFileSize(long fileSize)
Sets the fileSize.void
setFileTransformation(FileTransformation fileTransformation)
Sets the fileTransformationId.void
setFullPath(String fullPath)
Sets the fullPath.void
setGeneratedWithError(boolean generatedWithError)
Sets whether this transformed file had an error during its generation.void
setMetadata(FileMetadata metadata)
Sets the metadata.void
setName(String name)
Sets the name.void
setTransformedFileId(String transformedFileId)
Sets the transformedFileId.boolean
wasGeneratedWithError()
Return whether this transformed file had an error during its generation.
-
-
-
Constructor Detail
-
TransformedFileConfig
public TransformedFileConfig(String fileId, String fileConfigId, FileTransformation fileTransformation, String name, long fileSize, String contentType, String fullPath, FileMetadata metadata, boolean generatedWithError)
Class Constructor.- Parameters:
fileId
- the file id.originalFileId
- the original fileconfigfileTnsfId
- the transformation idname
- the transformed file namefileSize
- the transformed file sizecontentType
- the transformed file contentTypefullPath
- the transformed file pathmetadata
- the transformed file metadata- Since:
- 6.1.0
-
TransformedFileConfig
public TransformedFileConfig()
Class Constructor- Since:
- 6.1.0
-
-
Method Detail
-
getTransformedFileId
public String getTransformedFileId()
Returns the transformedFileId.- Returns:
- the transformedFileId
- Since:
- 6.1.0
-
setTransformedFileId
public void setTransformedFileId(String transformedFileId)
Sets the transformedFileId.- Parameters:
transformedFileId
- the transformedFileId value to set.- Since:
- 6.1.0
-
getFileConfigId
public String getFileConfigId()
Returns the fileConfigId.- Returns:
- the fileConfigId
- Since:
- 6.1.0
-
setFileConfigId
public void setFileConfigId(String fileConfigId)
Sets the fileConfigId.- Parameters:
fileConfigId
- the fileConfigId value to set.- Since:
- 6.1.0
-
getFileTransformation
public FileTransformation getFileTransformation()
Returns the fileTransformationId.- Returns:
- the fileTransformationId
- Since:
- 6.1.0
-
setFileTransformation
public void setFileTransformation(FileTransformation fileTransformation)
Sets the fileTransformationId.- Parameters:
fileTransformationId
- the fileTransformationId value to set.- Since:
- 6.1.0
-
getName
public String getName()
Returns the name.- Specified by:
getName
in interfaceIDownloadableFile
- Returns:
- the name
- Since:
- 6.1.0
-
setName
public void setName(String name)
Sets the name.- Parameters:
name
- the name value to set.- Since:
- 6.1.0
-
getFileSize
public long getFileSize()
Returns the fileSize.- Specified by:
getFileSize
in interfaceIDownloadableFile
- Returns:
- the fileSize
- Since:
- 6.1.0
-
setFileSize
public void setFileSize(long fileSize)
Sets the fileSize.- Parameters:
fileSize
- the fileSize value to set.- Since:
- 6.1.0
-
getContentType
public String getContentType()
Returns the contentType.- Specified by:
getContentType
in interfaceIDownloadableFile
- Returns:
- the contentType
- Since:
- 6.1.0
-
setContentType
public void setContentType(String contentType)
Sets the contentType.- Parameters:
contentType
- the contentType value to set.- Since:
- 6.1.0
-
getFullPath
public String getFullPath()
Returns the fullPath starting from the "files/" directory.- Returns:
- the fullPath
- Since:
- 6.1.0
-
setFullPath
public void setFullPath(String fullPath)
Sets the fullPath.- Parameters:
fullPath
- the fullPath value to set.- Since:
- 6.1.0
-
getMetadata
public IFileMetadata getMetadata()
Returns the metadata.- Returns:
- the metadata
- Since:
- 6.1.0
-
setMetadata
public void setMetadata(FileMetadata metadata)
Sets the metadata.- Parameters:
metadata
- the metadata value to set.- Since:
- 6.1.0
-
wasGeneratedWithError
public boolean wasGeneratedWithError()
Return whether this transformed file had an error during its generation.- Returns:
- true if generated with error, false otherwise.
- Since:
- 10.3.0
-
setGeneratedWithError
public void setGeneratedWithError(boolean generatedWithError)
Sets whether this transformed file had an error during its generation.- Parameters:
generatedWithError
- true if generated with error, false otherwise.- Since:
- 10.3.0
-
-