Class RenditionDefinitionRegistry2Impl

java.lang.Object
org.alfresco.repo.rendition2.RenditionDefinitionRegistry2Impl
All Implemented Interfaces:
RenditionDefinitionRegistry2, org.springframework.beans.factory.InitializingBean

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

    • RenditionDefinitionRegistry2Impl

      public RenditionDefinitionRegistry2Impl()
  • Method Details

    • setTransformServiceRegistry

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

      public void setRenditionConfigDir(String renditionConfigDir)
    • setTimeoutDefault

      public void setTimeoutDefault(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(ShutdownIndicator shutdownIndicator)
    • afterPropertiesSet

      public void afterPropertiesSet() throws Exception
      Specified by:
      afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
      Throws:
      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()
    • getDefinition

      public RenditionDefinition2 getDefinition(String renditionName)
      Obtains a RenditionDefinition2 by name.
      Parameters:
      renditionName - to be returned
      Returns:
      the RenditionDefinition2 or null if not registered.
    • register

      public void register(RenditionDefinition2 renditionDefinition)
    • unregister

      public void unregister(String renditionName)
    • getRenditionNames

      public Set<String> getRenditionNames()
      Specified by:
      getRenditionNames in interface RenditionDefinitionRegistry2
    • getRenditionNamesFrom

      public Set<String> getRenditionNamesFrom(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.
    • getRenditionDefinition

      public RenditionDefinition2 getRenditionDefinition(String renditionName)
      Specified by:
      getRenditionDefinition in interface RenditionDefinitionRegistry2