Class ContentTransformerHelper

    • Constructor Detail

      • ContentTransformerHelper

        public ContentTransformerHelper()
        Deprecated.
    • Method Detail

      • setMimetypeService

        public void setMimetypeService​(MimetypeService mimetypeService)
        Deprecated.
        Helper setter of the mimetype service. This is not always required.
        Parameters:
        mimetypeService - MimetypeService
      • getMimetypeService

        protected MimetypeService getMimetypeService()
        Deprecated.
        Returns:
        Returns the mimetype helper
      • setExplicitTransformations

        public void setExplicitTransformations​(List<ExplictTransformationDetails> explicitTransformations)
        Deprecated.
        supported transformations are now set with global properties rather than spring configuration.
      • setSupportedTransformations

        public void setSupportedTransformations​(List<SupportedTransformation> supportedTransformations)
        Deprecated.
        supported transformations are now set with global properties rather than spring configuration.
      • setUnsupportedTransformations

        public void setUnsupportedTransformations​(List<SupportedTransformation> unsupportedTransformations)
        Deprecated.
        supported transformations are now set with global properties rather than spring configuration.
      • setTransformerConfig

        public void setTransformerConfig​(TransformerConfig transformerConfig)
        Deprecated.
      • getMimetype

        protected String getMimetype​(ContentAccessor content)
        Deprecated.
        Convenience to fetch and check the mimetype for the given content
        Parameters:
        content - the reader/writer for the content
        Returns:
        Returns the mimetype for the content
        Throws:
        AlfrescoRuntimeException - if the content doesn't have a mimetype
      • isSupportedTransformation

        public boolean isSupportedTransformation​(String sourceMimetype,
                                                 String targetMimetype,
                                                 TransformationOptions options)
        Deprecated.
      • setBeanName

        public void setBeanName​(String beanName)
        Deprecated.
        Sets the Spring bean name.
        Specified by:
        setBeanName in interface org.springframework.beans.factory.BeanNameAware
      • register

        public void register()
        Deprecated.
        THIS IS A CUSTOM SPRING INIT METHOD
      • getBeanName

        public String getBeanName()
        Deprecated.
        Returns the Spring bean name.
      • getName

        public String getName()
        Deprecated.
        Returns transformer name. Uses the Spring bean name, but if null uses the class name.
      • getSimpleName

        public static String getSimpleName​(ContentTransformer transformer)
        Deprecated.
        Returns the simple form of the transformer name, which has had the normal "transformer." prefix to the Spring bean name removed.
      • deprecatedSetter

        protected void deprecatedSetter​(String sourceMimetype,
                                        String targetMimetype,
                                        String suffixAndValue)
        Deprecated.
        Called by deprecated property setter methods that should no longer be called by Spring configuration as the values are now set using global properties.
        Parameters:
        sourceMimetype - so that the source extension can be worked out once the mimetypeService has been set.
        targetMimetype - so that the target extension can be worked out once the mimetypeService has been set.
        suffixAndValue - that should be used.
      • getExtensionOrAny

        protected String getExtensionOrAny​(String mimetype)
        Deprecated.
      • getCommentsOnlySupports

        protected String getCommentsOnlySupports​(List<String> sourceMimetypes,
                                                 List<String> targetMimetypes,
                                                 boolean available)
        Deprecated.
        Helper method for getComments(boolean) to create a line that indicates which source and target mimetypes it supports.
        Parameters:
        available - TODO
        Returns:
        a String of the form "# only supports xxx, yyy or zzz to aaa or bb\n".
      • onlySupports

        protected String onlySupports​(String sourceMimetype,
                                      String targetMimetype,
                                      boolean available)
        Deprecated.
        Helper method for getComments(boolean) to create a line that indicates which source and target mimetypes it supports.
        Parameters:
        sourceMimetype - String
        targetMimetype - String
        available - TODO
        Returns:
        a String of the form "# only supports xxx to aaa\n".
      • hashCode

        public int hashCode()
        Deprecated.
        Overrides:
        hashCode in class Object
      • equals

        public boolean equals​(Object obj)
        Deprecated.
        Overrides:
        equals in class Object