Class LocalTransformServiceRegistry
- java.lang.Object
-
- org.alfresco.transform.client.registry.AbstractTransformRegistry
-
- org.alfresco.transform.client.registry.TransformServiceRegistryImpl
-
- org.alfresco.repo.content.transform.LocalTransformServiceRegistry
-
- All Implemented Interfaces:
org.alfresco.transform.client.registry.TransformServiceRegistry,org.springframework.beans.factory.InitializingBean
public class LocalTransformServiceRegistry extends TransformServiceRegistryImpl implements org.springframework.beans.factory.InitializingBean
ImplementsTransformServiceRegistryproviding a mechanism of validating if a local transformation (based onLocalTransformrequest is supported.- Author:
- adavis
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classLocalTransformServiceRegistry.LocalData-
Nested classes/interfaces inherited from class org.alfresco.transform.client.registry.TransformServiceRegistryImpl
TransformServiceRegistryImpl.Data
-
-
Field Summary
-
Fields inherited from class org.alfresco.transform.client.registry.TransformServiceRegistryImpl
enabled
-
-
Constructor Summary
Constructors Constructor Description LocalTransformServiceRegistry()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterPropertiesSet()TransformServiceRegistryImpl.DatacreateData()longfindMaxSize(String sourceMimetype, String targetMimetype, Map<String,String> options, String renditionName)protected StringgetBaseUrlIfTesting(String name, String baseUrl)LocalTransformServiceRegistry.LocalDatagetData()LocalTransformgetLocalTransform(String sourceMimetype, long sourceSizeInBytes, String targetMimetype, Map<String,String> actualOptions, String renditionName)protected org.apache.commons.logging.LoggetLog()MimetypeServicegetMimetypeService()StringgetPipelineConfigDir()protected StringgetProperty(String name, String defaultValue)Gets a property from an alfresco global property but falls back to a System property with the same name to allow dynamic creation of transformers without having to have an AMP to add the alfresco global property.booleanreadConfig()voidregister(org.alfresco.transform.client.model.config.Transformer transformer, Map<String,Set<org.alfresco.transform.client.model.config.TransformOption>> transformOptions, String baseUrl, String readFrom)voidsetMimetypeService(MimetypeService mimetypeService)voidsetPipelineConfigDir(String pipelineConfigDir)voidsetProperties(Properties properties)The Alfresco global properties.voidsetRetryTransformOnDifferentMimeType(boolean retryTransformOnDifferentMimeType)voidsetStrictMimeTypeCheck(boolean strictMimeTypeCheck)voidsetTransformerDebug(TransformerDebug transformerDebug)-
Methods inherited from class org.alfresco.transform.client.registry.TransformServiceRegistryImpl
findTransformers, getCronExpression, getFirstTime, getInitialAndOnErrorCronExpression, isEnabled, logError, setCronExpression, setEnabled, setFirstTime, setInitialAndOnErrorCronExpression, setJsonObjectMapper, setShutdownIndicator
-
Methods inherited from class org.alfresco.transform.client.registry.AbstractTransformRegistry
findTransformerName, registerAll
-
-
-
-
Method Detail
-
setPipelineConfigDir
public void setPipelineConfigDir(String pipelineConfigDir)
-
getPipelineConfigDir
public String getPipelineConfigDir()
-
setProperties
public void setProperties(Properties properties)
The Alfresco global properties.
-
setMimetypeService
public void setMimetypeService(MimetypeService mimetypeService)
-
getMimetypeService
public MimetypeService getMimetypeService()
-
setTransformerDebug
public void setTransformerDebug(TransformerDebug transformerDebug)
-
setStrictMimeTypeCheck
public void setStrictMimeTypeCheck(boolean strictMimeTypeCheck)
-
setRetryTransformOnDifferentMimeType
public void setRetryTransformOnDifferentMimeType(boolean retryTransformOnDifferentMimeType)
-
afterPropertiesSet
public void afterPropertiesSet() throws Exception- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Overrides:
afterPropertiesSetin classTransformServiceRegistryImpl- Throws:
Exception
-
readConfig
public boolean readConfig() throws IOException- Specified by:
readConfigin classTransformServiceRegistryImpl- Throws:
IOException
-
getData
public LocalTransformServiceRegistry.LocalData getData()
- Overrides:
getDatain classTransformServiceRegistryImpl
-
createData
public TransformServiceRegistryImpl.Data createData()
- Overrides:
createDatain classTransformServiceRegistryImpl
-
register
public void register(org.alfresco.transform.client.model.config.Transformer transformer, Map<String,Set<org.alfresco.transform.client.model.config.TransformOption>> transformOptions, String baseUrl, String readFrom)- Overrides:
registerin classorg.alfresco.transform.client.registry.AbstractTransformRegistry
-
getLog
protected org.apache.commons.logging.Log getLog()
- Specified by:
getLogin classTransformServiceRegistryImpl
-
getProperty
protected String getProperty(String name, String defaultValue)
Gets a property from an alfresco global property but falls back to a System property with the same name to allow dynamic creation of transformers without having to have an AMP to add the alfresco global property.
-
findMaxSize
public long findMaxSize(String sourceMimetype, String targetMimetype, Map<String,String> options, String renditionName)
- Specified by:
findMaxSizein interfaceorg.alfresco.transform.client.registry.TransformServiceRegistry- Overrides:
findMaxSizein classorg.alfresco.transform.client.registry.AbstractTransformRegistry
-
-