Package lumis.portal.file.transformation
Class TransformedFileConfig
- java.lang.Object
-
- lumis.portal.file.transformation.TransformedFileConfig
-
- All Implemented Interfaces:
IDownloadableFile
public class TransformedFileConfig extends java.lang.Object implements IDownloadableFile
Represents the transformation to be persisted.- Since:
- 6.1.0
- Version:
- $Revision$ $Date$
-
-
Constructor Summary
Constructors Constructor Description TransformedFileConfig()
Class ConstructorTransformedFileConfig(java.lang.String fileId, java.lang.String fileConfigId, FileTransformation fileTransformation, java.lang.String name, long fileSize, java.lang.String contentType, java.lang.String fullPath, FileMetadata metadata, boolean generatedWithError)
Class Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getContentType()
Returns the contentType.java.lang.String
getFileConfigId()
Returns the fileConfigId.long
getFileSize()
Returns the fileSize.FileTransformation
getFileTransformation()
Returns the fileTransformationId.java.lang.String
getFullPath()
Returns the fullPath starting from the "files/" directory.IFileMetadata
getMetadata()
Returns the metadata.java.lang.String
getName()
Returns the name.java.lang.String
getTransformedFileId()
Returns the transformedFileId.void
setContentType(java.lang.String contentType)
Sets the contentType.void
setFileConfigId(java.lang.String fileConfigId)
Sets the fileConfigId.void
setFileSize(long fileSize)
Sets the fileSize.void
setFileTransformation(FileTransformation fileTransformation)
Sets the fileTransformationId.void
setFullPath(java.lang.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(java.lang.String name)
Sets the name.void
setTransformedFileId(java.lang.String transformedFileId)
Sets the transformedFileId.boolean
wasGeneratedWithError()
Return whether this transformed file had an error during its generation.
-
-
-
Constructor Detail
-
TransformedFileConfig
public TransformedFileConfig(java.lang.String fileId, java.lang.String fileConfigId, FileTransformation fileTransformation, java.lang.String name, long fileSize, java.lang.String contentType, java.lang.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 java.lang.String getTransformedFileId()
Returns the transformedFileId.- Returns:
- the transformedFileId
- Since:
- 6.1.0
-
setTransformedFileId
public void setTransformedFileId(java.lang.String transformedFileId)
Sets the transformedFileId.- Parameters:
transformedFileId
- the transformedFileId value to set.- Since:
- 6.1.0
-
getFileConfigId
public java.lang.String getFileConfigId()
Returns the fileConfigId.- Returns:
- the fileConfigId
- Since:
- 6.1.0
-
setFileConfigId
public void setFileConfigId(java.lang.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 java.lang.String getName()
Returns the name.- Specified by:
getName
in interfaceIDownloadableFile
- Returns:
- the name
- Since:
- 6.1.0
-
setName
public void setName(java.lang.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 java.lang.String getContentType()
Returns the contentType.- Specified by:
getContentType
in interfaceIDownloadableFile
- Returns:
- the contentType
- Since:
- 6.1.0
-
setContentType
public void setContentType(java.lang.String contentType)
Sets the contentType.- Parameters:
contentType
- the contentType value to set.- Since:
- 6.1.0
-
getFullPath
public java.lang.String getFullPath()
Returns the fullPath starting from the "files/" directory.- Returns:
- the fullPath
- Since:
- 6.1.0
-
setFullPath
public void setFullPath(java.lang.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
-
-