Class RenditionDefinitionRegistry2Impl

  • All Implemented Interfaces:
    RenditionDefinitionRegistry2, org.springframework.beans.factory.InitializingBean

    public class RenditionDefinitionRegistry2Impl
    extends java.lang.Object
    implements RenditionDefinitionRegistry2, org.springframework.beans.factory.InitializingBean
    A registry of rendition definitions.
    Author:
    adavis
    • Constructor Detail

      • RenditionDefinitionRegistry2Impl

        public RenditionDefinitionRegistry2Impl()
    • Method Detail

      • setTransformServiceRegistry

        public void setTransformServiceRegistry​(org.alfresco.transform.client.registry.TransformServiceRegistry transformServiceRegistry)
      • setRenditionConfigDir

        public void setRenditionConfigDir​(java.lang.String renditionConfigDir)
      • setTimeoutDefault

        public void setTimeoutDefault​(java.lang.String timeoutDefault)
      • setJsonObjectMapper

        public void setJsonObjectMapper​(com.fasterxml.jackson.databind.ObjectMapper jsonObjectMapper)
      • getCronExpression

        public org.quartz.CronExpression getCronExpression()
      • setCronExpression

        public void setCronExpression​(org.quartz.CronExpression cronExpression)
      • getInitialAndOnErrorCronExpression

        public org.quartz.CronExpression getInitialAndOnErrorCronExpression()
      • setInitialAndOnErrorCronExpression

        public void setInitialAndOnErrorCronExpression​(org.quartz.CronExpression initialAndOnErrorCronExpression)
      • setShutdownIndicator

        public void setShutdownIndicator​(org.alfresco.util.ShutdownIndicator shutdownIndicator)
      • afterPropertiesSet

        public void afterPropertiesSet()
                                throws java.lang.Exception
        Specified by:
        afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
        Throws:
        java.lang.Exception
      • createData

        public org.alfresco.repo.rendition2.RenditionDefinitionRegistry2Impl.Data createData()
      • getData

        public org.alfresco.repo.rendition2.RenditionDefinitionRegistry2Impl.Data getData()
      • readConfig

        public boolean readConfig()
      • isEnabled

        public boolean isEnabled()
      • unregister

        public void unregister​(java.lang.String renditionName)
      • getRenditionNamesFrom

        public java.util.Set<java.lang.String> getRenditionNamesFrom​(java.lang.String sourceMimetype,
                                                                     long size)
        Description copied from interface: RenditionDefinitionRegistry2
        Obtains the names of renditions that are possible from a given source mimetype.
        Specified by:
        getRenditionNamesFrom in interface RenditionDefinitionRegistry2
        Parameters:
        sourceMimetype - the mimetype of the source.
        size - the size of the source. May be -1 if the size should be ignored.