mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-14 17:58:59 +00:00
45449: ALF-13254: TransformationOptions Should Have Separate Source and Target Options
- Added SerializedTransformationOptionsAccessor interface which defines the methods used in the protected AbstractRenderingEngine.RenderContext class in a public manner
- Changed AbstractRenderingEngine.RenderContext to implement SerializedTransformationOptionsAccessor
- Added TransformationSourceOptions interface which also contains TransformationSourceOptionsSerializer interface which uses SerializedTransformationOptionsAccessor for deserialization
- Added base AbstractTransformationSourceOptions class
- Added PagedSourceOptions class which extends TransformationSourceOptions for start and end page options
- Added TemporalSourceOptions class which extends TransformationSourceOptions for time-based offset and duration options
- Changed TransformationOptions to contain TransformationSourceOptions held as a map with class as key
- Changed ImageTransformationOptions to extend copyFrom
- Changed ImageMagickContentTransformerWorker.getSourcePageRange to check for paged source options in the TransformationOptions passed in
- Added ImageMagickContentTransformerTest.testPageSourceOptions to test null, default, page 2, and invalid options
- Changed ThumbnailRenditionConvertor to iterate the transformationOptions.sourceOptionsList and use each serializer to add to the parameters
- Changed AbstractTransformationRenderingEngine to iterate a list of TransformationSourceOptionsSerializers and use each to deserialize the RenderContext parameters and construct a TransformationSourceOptions object
- Changed rendition-services-context.xml to set imageRenderingEngine's list of known sourceOptionsSerializers
- Changed ThumbnailServiceImplParameterTest to test paged and temporal options
- Added ThumbanailServiceImplTest.testCreateRenditionThumbnailFromPdfPage2 which tests grabbing the second page of a PDF
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@46062 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261