Class 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 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 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 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 interface IDownloadableFile
        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 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
      • getContentType

        public java.lang.String getContentType()
        Returns the contentType.
        Specified by:
        getContentType in interface IDownloadableFile
        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