public class TransformerConfigMBeanImpl extends Object implements TransformerConfigMBean
Constructor and Description |
---|
TransformerConfigMBeanImpl() |
Modifier and Type | Method and Description |
---|---|
String[] |
getContextNames()
Lists the names of the contexts or uses.
|
String[] |
getCustomePropertyNames()
Lists custom (non default) property names.
|
String[] |
getExtensionsAndMimetypes()
Lists all configured mimetypes, proceeded by its primary file extension.
|
String |
getProperties(boolean listAll)
Returns custom and default transformer propertiest.
|
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.
|
String |
getTransformationsByExtension(String sourceExtension,
String targetExtension,
String use)
Lists all possible transformations sorted by source and then target mimetype extension.
|
String |
getTransformationsByTransformer(String simpleTransformerName,
String use)
Lists all possible transformations sorted by Transformer name.
|
String |
getTransformationStatistics(String simpleTransformerName,
String sourceExtension,
String targetExtension)
Lists the transformation statistics for the current node.
|
String[] |
getTransformerNames()
Lists the names of all top level transformers.
|
String |
help()
Returns a description of each method and its parameters.
|
String |
removeProperties(String propertyNames)
Removes transformer properties.
|
void |
setContentTransformerRegistry(ContentTransformerRegistry transformerRegistry) |
void |
setMimetypeService(org.alfresco.service.cmr.repository.MimetypeService mimetypeService) |
String |
setProperties(String propertyNamesAndValues)
Adds or replaces new transformer properties.
|
void |
setTransformerConfig(TransformerConfig transformerConfig) |
void |
setTransformerDebug(TransformerDebug transformerDebug) |
void |
setTransformerDebugLog(org.alfresco.repo.content.transform.LogEntries transformerDebugLog) |
void |
setTransformerLog(org.alfresco.repo.content.transform.LogEntries transformerLog) |
String |
testTransform(String simpleTransformerName,
String sourceExtension,
String targetExtension,
String use)
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.
|
public void setContentTransformerRegistry(ContentTransformerRegistry transformerRegistry)
public void setTransformerDebug(TransformerDebug transformerDebug)
public void setTransformerConfig(TransformerConfig transformerConfig)
public void setMimetypeService(org.alfresco.service.cmr.repository.MimetypeService mimetypeService)
public void setTransformerLog(org.alfresco.repo.content.transform.LogEntries transformerLog)
public void setTransformerDebugLog(org.alfresco.repo.content.transform.LogEntries transformerDebugLog)
public String[] getTransformerNames()
TransformerConfigMBean
getTransformerNames
in interface TransformerConfigMBean
public String[] getExtensionsAndMimetypes()
TransformerConfigMBean
getExtensionsAndMimetypes
in interface TransformerConfigMBean
public String getTransformationsByTransformer(String simpleTransformerName, String use)
TransformerConfigMBean
getTransformationsByTransformer
in interface TransformerConfigMBean
simpleTransformerName
- to be checked. If null all transformers are included.use
- or context in which the transformation will be used ("doclib",
"index", "webpreview", "syncRule", "asyncRule"...) or null for the default.public String getTransformationsByExtension(String sourceExtension, String targetExtension, String use)
TransformerConfigMBean
getTransformationsByExtension
in interface TransformerConfigMBean
sourceExtension
- to be checked. If null all source mimetypes are included.targetExtension
- to be checked. If null all target mimetypes are included.use
- or context in which the transformation will be used ("doclib",
"index", "webpreview", "syncRule", "asyncRule"...) or null for the default.public String getTransformationStatistics(String simpleTransformerName, String sourceExtension, String targetExtension)
TransformerConfigMBean
getTransformationStatistics
in interface TransformerConfigMBean
simpleTransformerName
- to be checked. If null all transformers are included.sourceExtension
- to be checked. If null all source mimetypes are included.targetExtension
- to be checked. If null all target mimetypes are included.public String[] getTransformationLog(int n)
TransformerConfigMBean
getTransformationLog
in interface TransformerConfigMBean
public String[] getTransformationDebugLog(int n)
TransformerConfigMBean
getTransformationDebugLog
in interface TransformerConfigMBean
public String getProperties(boolean listAll)
TransformerConfigMBean
getProperties
in interface TransformerConfigMBean
listAll
- list both default and custom values, otherwise includes
only custom values.public String setProperties(String propertyNamesAndValues)
TransformerConfigMBean
setProperties
in interface TransformerConfigMBean
public String removeProperties(String propertyNames)
TransformerConfigMBean
removeProperties
in interface TransformerConfigMBean
propertyNames
- to be removed. Any values after the property name are ignored.public String testTransform(String simpleTransformerName, String sourceExtension, String targetExtension, String use)
TransformerConfigMBean
testTransform
in interface TransformerConfigMBean
simpleTransformerName
- to be used. If not specified the ContentService is used to select one.sourceExtension
- used to identify the mimetypetargetExtension
- used to identify the mimetypeuse
- or context in which to test the transformation ("doclib", "index", "webpreview",
"syncRule", "asyncRule"...) or blank for the default.";public String[] getContextNames()
TransformerConfigMBean
getContextNames
in interface TransformerConfigMBean
public String[] getCustomePropertyNames()
TransformerConfigMBean
getCustomePropertyNames
in interface TransformerConfigMBean
public String[] getTestFileExtensionsAndMimetypes()
TransformerConfigMBean
getTestFileExtensionsAndMimetypes
in interface TransformerConfigMBean
public String help()
TransformerConfigMBean
help
in interface TransformerConfigMBean
Copyright © 2005–2017 Alfresco Software. All rights reserved.