Class 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 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 fileconfig
        fileTnsfId - the transformation id
        name - the transformed file name
        fileSize - the transformed file size
        contentType - the transformed file contentType
        fullPath - the transformed file path
        metadata - 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
      • 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 interface IDownloadableFile
        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
      • 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