Class TransformerConfigMBeanImpl
- java.lang.Object
-
- org.alfresco.repo.content.transform.TransformerConfigMBeanImpl
-
- All Implemented Interfaces:
TransformerConfigMBean
public class TransformerConfigMBeanImpl extends Object implements TransformerConfigMBean
Implements the JMX interface for monitoring Content Transformer configuration and statistics.- Author:
- Alan Davis
-
-
Constructor Summary
Constructors Constructor Description TransformerConfigMBeanImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String[]getExtensionsAndMimetypes()Lists all configured mimetypes, proceeded by its primary file extension.String[]getTestFileExtensionsAndMimetypes()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.StringgetTransformationsByExtension(String sourceExtension, String targetExtension)Lists all possible transformations sorted by source and then target mimetype extension.Stringhelp()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)StringtestTransform(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.
-
-
-
Method Detail
-
setTransformerDebug
public void setTransformerDebug(AdminUiTransformerDebug transformerDebug)
-
setMimetypeService
public void setMimetypeService(MimetypeService mimetypeService)
-
setTransformerLog
public void setTransformerLog(org.alfresco.repo.content.transform.LogEntries transformerLog)
-
setTransformerDebugLog
public void setTransformerDebugLog(org.alfresco.repo.content.transform.LogEntries transformerDebugLog)
-
getExtensionsAndMimetypes
public String[] getExtensionsAndMimetypes()
Description copied from interface:TransformerConfigMBeanLists all configured mimetypes, proceeded by its primary file extension.- Specified by:
getExtensionsAndMimetypesin interfaceTransformerConfigMBean
-
getTransformationsByExtension
public String getTransformationsByExtension(String sourceExtension, String targetExtension)
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
public String[] getTransformationLog(int n)
Description copied from interface:TransformerConfigMBeanReturns the last n entries in the transformation log.- Specified by:
getTransformationLogin interfaceTransformerConfigMBean
-
getTransformationDebugLog
public String[] getTransformationDebugLog(int n)
Description copied from interface:TransformerConfigMBeanReturns the last n entries in the transformation debug log.- Specified by:
getTransformationDebugLogin interfaceTransformerConfigMBean
-
testTransform
public String testTransform(String sourceExtension, String targetExtension)
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
public String[] getTestFileExtensionsAndMimetypes()
Description copied from interface:TransformerConfigMBeanLists the extensions of available test files.- Specified by:
getTestFileExtensionsAndMimetypesin interfaceTransformerConfigMBean
-
help
public String help()
Description copied from interface:TransformerConfigMBeanReturns a description of each method and its parameters.- Specified by:
helpin interfaceTransformerConfigMBean
-
-