Class TransformerConfigMBeanImpl
java.lang.Object
org.alfresco.repo.content.transform.TransformerConfigMBeanImpl
- All Implemented Interfaces:
TransformerConfigMBean
Implements the JMX interface for monitoring Content Transformer configuration
and statistics.
- Author:
- Alan Davis
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionString[]Lists all configured mimetypes, proceeded by its primary file extension.String[]Lists the extensions of available test files.String[]getTransformationDebugLog(int n) Returns the last n entries in the transformation debug log.String[]getTransformationLog(int n) Returns the last n entries in the transformation log.getTransformationsByExtension(String sourceExtension, String targetExtension) Lists all possible transformations sorted by source and then target mimetype extension.help()Returns a description of each method and its parameters.voidsetMimetypeService(MimetypeService mimetypeService) voidsetTransformerDebug(AdminUiTransformerDebug transformerDebug) voidsetTransformerDebugLog(org.alfresco.repo.content.transform.LogEntries transformerDebugLog) voidsetTransformerLog(org.alfresco.repo.content.transform.LogEntries transformerLog) testTransform(String sourceExtension, String targetExtension) Transforms a small test file from one mimetype to another and then shows the debug of the transform, which would indicate if it was successful or even if it was possible.
-
Constructor Details
-
TransformerConfigMBeanImpl
public TransformerConfigMBeanImpl()
-
-
Method Details
-
setTransformerDebug
-
setMimetypeService
-
setTransformerLog
public void setTransformerLog(org.alfresco.repo.content.transform.LogEntries transformerLog) -
setTransformerDebugLog
public void setTransformerDebugLog(org.alfresco.repo.content.transform.LogEntries transformerDebugLog) -
getExtensionsAndMimetypes
Description copied from interface:TransformerConfigMBeanLists all configured mimetypes, proceeded by its primary file extension.- Specified by:
getExtensionsAndMimetypesin interfaceTransformerConfigMBean
-
getTransformationsByExtension
Description copied from interface:TransformerConfigMBeanLists all possible transformations sorted by source and then target mimetype extension.- Specified by:
getTransformationsByExtensionin interfaceTransformerConfigMBean- Parameters:
sourceExtension- to be checked. If null all source mimetypes are included.targetExtension- to be checked. If null all target mimetypes are included.
-
getTransformationLog
Description copied from interface:TransformerConfigMBeanReturns the last n entries in the transformation log.- Specified by:
getTransformationLogin interfaceTransformerConfigMBean
-
getTransformationDebugLog
Description copied from interface:TransformerConfigMBeanReturns the last n entries in the transformation debug log.- Specified by:
getTransformationDebugLogin interfaceTransformerConfigMBean
-
testTransform
Description copied from interface:TransformerConfigMBeanTransforms a small test file from one mimetype to another and then shows the debug of the transform, which would indicate if it was successful or even if it was possible.- Specified by:
testTransformin interfaceTransformerConfigMBean- Parameters:
sourceExtension- used to identify the mimetypetargetExtension- used to identify the mimetype- Returns:
- Text indicating if the transform was possible and any debug
-
getTestFileExtensionsAndMimetypes
Description copied from interface:TransformerConfigMBeanLists the extensions of available test files.- Specified by:
getTestFileExtensionsAndMimetypesin interfaceTransformerConfigMBean
-
help
Description copied from interface:TransformerConfigMBeanReturns a description of each method and its parameters.- Specified by:
helpin interfaceTransformerConfigMBean
-