Class AlfrescoPdfRendererContentTransformerWorker
- java.lang.Object
-
- org.alfresco.repo.content.transform.ContentTransformerHelper
-
- org.alfresco.repo.content.transform.pdfrenderer.AlfrescoPdfRendererContentTransformerWorker
-
- All Implemented Interfaces:
ContentTransformerWorker,org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanNameAware,org.springframework.beans.factory.InitializingBean
@Deprecated public class AlfrescoPdfRendererContentTransformerWorker extends ContentTransformerHelper implements ContentTransformerWorker, org.springframework.beans.factory.InitializingBean
Deprecated.The transformations code is being moved out of the codebase and replaced by the new async RenditionService2 or other external libraries.
-
-
Field Summary
-
Fields inherited from class org.alfresco.repo.content.transform.ContentTransformerHelper
transformerConfig
-
-
Constructor Summary
Constructors Constructor Description AlfrescoPdfRendererContentTransformerWorker()Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidafterPropertiesSet()Deprecated.java.lang.StringgetComments(boolean available)Deprecated.Overridden to supply a comment or String of commented out transformation properties that specify any (hard coded or implied) supported transformations.java.lang.StringgetVersionString()Deprecated.Gets a string returning product and version information.booleanisAvailable()Deprecated.Checks if this worker is available.booleanisTransformable(java.lang.String sourceMimetype, java.lang.String targetMimetype, TransformationOptions options)Deprecated.UnlikeContentTransformer.isTransformable(String, String, TransformationOptions)should not include the transformer name, as that is added by the ContentTransformer in the parent context.booleanremoteTransformerClientConfigured()Deprecated.protected voidsetAvailable(boolean available)Deprecated.Make the transformer availablevoidsetCheckCommand(org.alfresco.util.exec.RuntimeExec checkCommand)Deprecated.Sets the command that must be executed in order to retrieve version information from the executable and thus test that the executable itself is present.voidsetEnabled(boolean enabled)Deprecated.voidsetExecuter(org.alfresco.util.exec.RuntimeExec executer)Deprecated.Set the runtime command executer that must be executed in order to run alfresco-pdf-renderer.voidsetRemoteTransformerClient(RemoteTransformerClient remoteTransformerClient)Deprecated.Sets the optional remote transformer client which will be used in preference to a local command if available.voidtransform(org.alfresco.service.cmr.repository.ContentReader reader, org.alfresco.service.cmr.repository.ContentWriter writer, TransformationOptions options)Deprecated.-
Methods inherited from class org.alfresco.repo.content.transform.ContentTransformerHelper
deprecatedSetter, equals, getBeanName, getCommentsOnlySupports, getExtensionOrAny, getMimetype, getMimetypeService, getName, getSimpleName, hashCode, isExplicitTransformation, isSupportedTransformation, onlySupports, register, setBeanName, setExplicitTransformations, setMimetypeService, setSupportedTransformations, setTransformerConfig, setUnsupportedTransformations, toString
-
-
-
-
Method Detail
-
setExecuter
public void setExecuter(org.alfresco.util.exec.RuntimeExec executer)
Deprecated.Set the runtime command executer that must be executed in order to run alfresco-pdf-renderer. Whether or not this is the full path to the command or just the command itself depends the environment setup.The command must contain the variables
${source}and${target}, which will be replaced by the names of the file to be transformed and the name of the output file respectively.alfresco-pdf-renderer ${source} ${target}- Parameters:
executer- the system command executer
-
setEnabled
public void setEnabled(boolean enabled)
Deprecated.
-
setRemoteTransformerClient
public void setRemoteTransformerClient(RemoteTransformerClient remoteTransformerClient)
Deprecated.Sets the optional remote transformer client which will be used in preference to a local command if available.- Parameters:
remoteTransformerClient- may be null;
-
remoteTransformerClientConfigured
public boolean remoteTransformerClientConfigured()
Deprecated.- Specified by:
remoteTransformerClientConfiguredin interfaceContentTransformerWorker- Returns:
- true if ther worker is using a remote server.
-
setCheckCommand
public void setCheckCommand(org.alfresco.util.exec.RuntimeExec checkCommand)
Deprecated.Sets the command that must be executed in order to retrieve version information from the executable and thus test that the executable itself is present.- Parameters:
checkCommand- command executer to retrieve version information
-
afterPropertiesSet
public void afterPropertiesSet()
Deprecated.- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean
-
isAvailable
public boolean isAvailable()
Deprecated.Description copied from interface:ContentTransformerWorkerChecks if this worker is available.- Specified by:
isAvailablein interfaceContentTransformerWorker- Returns:
- Returns true if the transformer is functioning otherwise false
-
setAvailable
protected void setAvailable(boolean available)
Deprecated.Make the transformer available- Parameters:
available- boolean
-
getVersionString
public java.lang.String getVersionString()
Deprecated.Description copied from interface:ContentTransformerWorkerGets a string returning product and version information.- Specified by:
getVersionStringin interfaceContentTransformerWorker- Returns:
- the version string
-
isTransformable
public boolean isTransformable(java.lang.String sourceMimetype, java.lang.String targetMimetype, TransformationOptions options)Deprecated.Description copied from interface:ContentTransformerWorkerUnlikeContentTransformer.isTransformable(String, String, TransformationOptions)should not include the transformer name, as that is added by the ContentTransformer in the parent context.- Specified by:
isTransformablein interfaceContentTransformerWorker
-
transform
public void transform(org.alfresco.service.cmr.repository.ContentReader reader, org.alfresco.service.cmr.repository.ContentWriter writer, TransformationOptions options) throws java.lang.ExceptionDeprecated.- Specified by:
transformin interfaceContentTransformerWorker- Throws:
java.lang.Exception- See Also:
ContentTransformer.transform(ContentReader, ContentWriter, TransformationOptions)
-
getComments
public java.lang.String getComments(boolean available)
Deprecated.Description copied from class:ContentTransformerHelperOverridden to supply a comment or String of commented out transformation properties that specify any (hard coded or implied) supported transformations. Used when providing a list of properties to an administrators who may be setting other transformation properties, via JMX. Consider overriding if {linkAbstractContentTransformerLimits.isTransformableMimetype(String, String, TransformationOptions)orContentTransformerWorker.isTransformable(String, String, TransformationOptions)have been overridden. SeeContentTransformerHelper.getCommentsOnlySupports(List, List, boolean)which may be used to help construct a comment.- Specified by:
getCommentsin interfaceContentTransformerWorker- Overrides:
getCommentsin classContentTransformerHelper- Parameters:
available- indicates if the transformer has been registered and is available to be selected.falseindicates that the transformer is only available as a component of a complex transformer.- Returns:
- one line per property. The simple transformer name is returned by default as a comment.
- See Also:
ContentTransformer.getComments(boolean)
-
-