Class LocalTransformServiceRegistry

    • Constructor Detail

      • LocalTransformServiceRegistry

        public LocalTransformServiceRegistry()
    • Method Detail

      • setPipelineConfigFolder

        public void setPipelineConfigFolder​(String pipelineConfigFolder)
      • setEnabled

        public void setEnabled​(boolean enabled)
      • setProperties

        public void setProperties​(Properties properties)
        The Alfresco global properties.
      • setMimetypeService

        public void setMimetypeService​(org.alfresco.service.cmr.repository.MimetypeService mimetypeService)
      • setTransformerDebug

        public void setTransformerDebug​(TransformerDebug transformerDebug)
      • setStrictMimeTypeCheck

        public void setStrictMimeTypeCheck​(boolean strictMimeTypeCheck)
      • setRetryTransformOnDifferentMimeType

        public void setRetryTransformOnDifferentMimeType​(boolean retryTransformOnDifferentMimeType)
      • getMaxSize

        public long getMaxSize​(String sourceMimetype,
                               String targetMimetype,
                               Map<String,​String> options,
                               String renditionName)
        Description copied from interface: TransformServiceRegistry
        Returns the maximun size (in bytes) of the source content that can be transformed.
        Specified by:
        getMaxSize in interface TransformServiceRegistry
        Overrides:
        getMaxSize in class TransformServiceRegistryImpl
        Parameters:
        sourceMimetype - the mimetype of the source content
        targetMimetype - the mimetype of the target
        options - the actual name value pairs available that could be passed to the Transform Service.
        renditionName - (optional) name for the set of options and target mimetype. If supplied is used to cache results to avoid having to work out if a given transformation is supported a second time. The sourceMimetype and sourceSizeInBytes may still change. In the case of ACS this is the rendition name.
        Returns:
        the maximum size (in bytes) of the source content that can be transformed. If -1 there is no limit, but if 0 the transform is not supported.
      • transform

        public void transform​(org.alfresco.service.cmr.repository.ContentReader reader,
                              org.alfresco.service.cmr.repository.ContentWriter writer,
                              Map<String,​String> actualOptions,
                              String renditionName,
                              org.alfresco.service.cmr.repository.NodeRef sourceNodeRef)
                       throws Exception
        Throws:
        Exception