Class TransformerConfigMBeanImpl
- java.lang.Object
-
- org.alfresco.repo.content.transform.TransformerConfigMBeanImpl
-
- All Implemented Interfaces:
TransformerConfigMBean
public class TransformerConfigMBeanImpl extends java.lang.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 java.lang.String[]getExtensionsAndMimetypes()Lists all configured mimetypes, proceeded by its primary file extension.java.lang.String[]getTestFileExtensionsAndMimetypes()Lists the extensions of available test files.java.lang.String[]getTransformationDebugLog(int n)Returns the last n entries in the transformation debug log.java.lang.String[]getTransformationLog(int n)Returns the last n entries in the transformation log.java.lang.StringgetTransformationsByExtension(java.lang.String sourceExtension, java.lang.String targetExtension)Lists all possible transformations sorted by source and then target mimetype extension.java.lang.Stringhelp()Returns a description of each method and its parameters.voidsetMimetypeService(org.alfresco.service.cmr.repository.MimetypeService mimetypeService)voidsetTransformerDebug(AdminUiTransformerDebug transformerDebug)voidsetTransformerDebugLog(org.alfresco.repo.content.transform.LogEntries transformerDebugLog)voidsetTransformerLog(org.alfresco.repo.content.transform.LogEntries transformerLog)java.lang.StringtestTransform(java.lang.String sourceExtension, java.lang.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(org.alfresco.service.cmr.repository.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 java.lang.String[] getExtensionsAndMimetypes()
Description copied from interface:TransformerConfigMBeanLists all configured mimetypes, proceeded by its primary file extension.- Specified by:
getExtensionsAndMimetypesin interfaceTransformerConfigMBean
-
getTransformationsByExtension
public java.lang.String getTransformationsByExtension(java.lang.String sourceExtension, java.lang.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 java.lang.String[] getTransformationLog(int n)
Description copied from interface:TransformerConfigMBeanReturns the last n entries in the transformation log.- Specified by:
getTransformationLogin interfaceTransformerConfigMBean
-
getTransformationDebugLog
public java.lang.String[] getTransformationDebugLog(int n)
Description copied from interface:TransformerConfigMBeanReturns the last n entries in the transformation debug log.- Specified by:
getTransformationDebugLogin interfaceTransformerConfigMBean
-
testTransform
public java.lang.String testTransform(java.lang.String sourceExtension, java.lang.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 java.lang.String[] getTestFileExtensionsAndMimetypes()
Description copied from interface:TransformerConfigMBeanLists the extensions of available test files.- Specified by:
getTestFileExtensionsAndMimetypesin interfaceTransformerConfigMBean
-
help
public java.lang.String help()
Description copied from interface:TransformerConfigMBeanReturns a description of each method and its parameters.- Specified by:
helpin interfaceTransformerConfigMBean
-
-