Package lumis.portal.file.transformation
Class ScaleTransformationBuilder
- java.lang.Object
-
- lumis.portal.file.transformation.ScaleTransformationBuilder
-
- All Implemented Interfaces:
ITransformationBuilder
public class ScaleTransformationBuilder extends 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: 13752 $ $Date: 2011-10-13 14:10:51 -0300 (Thu, 13 Oct 2011) $
-
-
Constructor Summary
Constructors Constructor Description ScaleTransformationBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ITransformation
build(InputStream content, String contentType, String serviceInstanceId, IFileMetadata fileMetadata, Map<String,Object> args)
Returns an instance ofITransformation
based on content type, file service instance and transformation parameters.
-
-
-
Method Detail
-
build
public ITransformation build(InputStream content, String contentType, String serviceInstanceId, IFileMetadata fileMetadata, Map<String,Object> args)
Description copied from interface:ITransformationBuilder
Returns an instance ofITransformation
based on content type, file service instance and transformation parameters.- Specified by:
build
in interfaceITransformationBuilder
- Parameters:
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.
-
-