Class ScaleTransformationBuilder

  • All Implemented Interfaces:
    ITransformationBuilder

    public class ScaleTransformationBuilder
    extends java.lang.Object
    implements ITransformationBuilder

    Scale transformation builder is based on content type and service instance to decide the right ITransformation.

    For convention the args parameter must be created using keys in upper case and their values should be a string. Only reductions are allowed, always keeping the proportionality.

    Since:
    6.1.0
    Version:
    $Revision: 25808 $ $Date: 2023-07-04 15:20:55 -0300 (Tue, 04 Jul 2023) $
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      ITransformation build​(IFileTransformation fileTransformation, java.io.InputStream content, java.lang.String contentType, java.lang.String serviceInstanceId, IFileMetadata fileMetadata, java.util.Map<java.lang.String,​java.lang.Object> args)
      Returns an instance of ITransformation based on content type, file service instance and transformation parameters.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ScaleTransformationBuilder

        public ScaleTransformationBuilder()
    • Method Detail

      • build

        public ITransformation build​(IFileTransformation fileTransformation,
                                     java.io.InputStream content,
                                     java.lang.String contentType,
                                     java.lang.String serviceInstanceId,
                                     IFileMetadata fileMetadata,
                                     java.util.Map<java.lang.String,​java.lang.Object> args)
        Description copied from interface: ITransformationBuilder
        Returns an instance of ITransformation based on content type, file service instance and transformation parameters.
        Specified by:
        build in interface ITransformationBuilder
        Parameters:
        fileTransformation - the file transformation being performed.
        content - the source of transformation.
        contentType - the content type of the source of transformation.
        serviceInstanceId - the service instance owner of source of the transformation.
        fileMetadata - the file metadata to be built.
        args - the arguments of the transformation. where the key is the parameter name and the value represents the value of the parameter.
        Returns:
        a ITransformation implementation product of the transformation.