Class 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
    • 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.String getTransformationsByExtension​(java.lang.String sourceExtension, java.lang.String targetExtension)
      Lists all possible transformations sorted by source and then target mimetype extension.
      java.lang.String help()
      Returns a description of each method and its parameters.
      void setMimetypeService​(org.alfresco.service.cmr.repository.MimetypeService mimetypeService)  
      void setTransformerDebug​(AdminUiTransformerDebug transformerDebug)  
      void setTransformerDebugLog​(org.alfresco.repo.content.transform.LogEntries transformerDebugLog)  
      void setTransformerLog​(org.alfresco.repo.content.transform.LogEntries transformerLog)  
      java.lang.String testTransform​(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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TransformerConfigMBeanImpl

        public TransformerConfigMBeanImpl()
    • Method Detail

      • 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)
      • getTransformationsByExtension

        public java.lang.String getTransformationsByExtension​(java.lang.String sourceExtension,
                                                              java.lang.String targetExtension)
        Description copied from interface: TransformerConfigMBean
        Lists all possible transformations sorted by source and then target mimetype extension.
        Specified by:
        getTransformationsByExtension in interface TransformerConfigMBean
        Parameters:
        sourceExtension - to be checked. If null all source mimetypes are included.
        targetExtension - to be checked. If null all target mimetypes are included.
      • testTransform

        public java.lang.String testTransform​(java.lang.String sourceExtension,
                                              java.lang.String targetExtension)
        Description copied from interface: TransformerConfigMBean
        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.
        Specified by:
        testTransform in interface TransformerConfigMBean
        Parameters:
        sourceExtension - used to identify the mimetype
        targetExtension - used to identify the mimetype
        Returns:
        Text indicating if the transform was possible and any debug