public interface TransformerConfig
| Modifier and Type | Field and Description |
|---|---|
static java.util.Collection |
ALL_SUFFIXES
All suffixes to property names used to transformer configuration
|
static java.lang.String |
ANY
Wild card mimetype and mimetype extension.
|
static java.lang.String |
AVAILABLE
The suffix to property names to indicate that a transformer is available.
|
static java.lang.String |
CONTENT
Prefix before the transformer name of all property names that contain transformer
information
|
static java.lang.String |
DEBUG_ENTRIES
The number of debug lines to keep.
|
static java.lang.String |
DEFAULT_TRANSFORMER
The 'transformer name' for system wide defaults for all transformers
|
static java.lang.String |
ENTRIES |
static java.lang.String |
ERROR_TIME
The suffix to property names for the error time.
|
static java.lang.String |
EXTENSIONS
The separator between the transformer name and two mimetype extensions in a property name.
|
static java.lang.String |
FAILOVER
The suffix to property names for creating dynamic failover transformers
|
static java.lang.String |
INITIAL_COUNT
The suffix to property names for the the average count.
|
static java.lang.String |
INITIAL_TIME
The suffix to property names for the the average time.
|
static java.lang.String[][] |
LIMIT_PAIR_SUFFIXES
Suffix pairs (max and limit values) to property names used to define transformation limits
|
static java.util.Collection |
LIMIT_SUFFIXES
Suffixes to property names used to define transformation limits
|
static java.lang.String |
LOG_ENTRIES
The number of log lines to keep.
|
static java.lang.String |
MAX_PAGES |
static java.lang.String |
MAX_SOURCE_SIZE_K_BYTES
Suffixes for limits.
|
static java.lang.String |
MIMETYPES
The separator between the transformer name and wildcarded mimetypes rather than extensions in a property name.
|
static java.util.Collection |
NO_SUFFIXES
No suffixes to property names used to define transformer settings.
|
static java.lang.String |
PAGE_LIMIT |
static char |
PIPE
Separator between transformers and mimetype extensions in a dynamic compound property value.
|
static java.lang.String |
PIPELINE
The suffix to property names for creating dynamic complex transformers
|
static java.lang.String |
PREFIX
The combined content and transformer name prefix of for all property names that contain
transformer information
|
static java.lang.String |
PRIORITY
The suffix to property names for the priority.
|
static int |
PRIORITY_DEFAULT
By default transformers have a priority of 100.
|
static int |
PRIORITY_EXPLICIT
To support the historical concept of EXPLICIT transformers, all such transformers
are given a
PRIORITY_EXPLICIT (50). |
static java.lang.String |
READ_LIMIT_K_BYTES |
static java.lang.String |
READ_LIMIT_TIME_MS |
static java.lang.String[] |
SEPARATORS
Both extension and minetype separators.
|
static java.lang.String |
SUMMARY_TRANSFORMER_NAME
Name given to the 'SUMMARY' dummy (does not exist) transformer that gathers data
from all root level transformations
|
static java.lang.String |
SUPPORTED
The suffix to property names for supported and unsupported combinations.
|
static java.lang.String |
THRESHOLD_COUNT
The suffix to property names for the threshold count.
|
static java.lang.String |
TIMEOUT_MS |
static java.lang.String |
TRANSFORMER
Prefix for all transformer names
|
static java.lang.String |
USE
An optional separator appended after the normal suffix and following value that
identifies the 'use' or 'application' of the property.
|
| Modifier and Type | Method and Description |
|---|---|
TransformationOptionLimits |
getLimits(ContentTransformer transformer,
java.lang.String sourceMimetype,
java.lang.String targetMimetype,
java.lang.String use)
Returns the limits defined for the combination of transformer, sourceMimetype and targetMimetype.
|
int |
getPriority(ContentTransformer contentTransformerHelper,
java.lang.String sourceMimetype,
java.lang.String targetMimetype)
Returns the priority of the specified transformer for the the combination of source and target mimetype.
|
java.lang.String |
getProperties(boolean changesOnly)
Returns a sorted set of all transformer properties, their values and includes
comments about the properties.
|
java.lang.String |
getProperty(java.lang.String name)
Returns a transformer property value.
|
TransformerStatistics |
getStatistics(ContentTransformer transformer,
java.lang.String sourceMimetype,
java.lang.String targetMimetype,
boolean createNew)
Returns and creates if needed the
TransformerStatistics object for the combination of
transformer, sourceMimetype and targetMimetype. |
int |
getThresholdCount(ContentTransformer contentTransformerHelper,
java.lang.String sourceMimetype,
java.lang.String targetMimetype)
Returns the threshold of the transformer.
|
boolean |
isSupportedTransformation(ContentTransformer transformer,
java.lang.String sourceMimetype,
java.lang.String targetMimetype,
TransformationOptions options)
Returns true if the supplied mimetype transformation pair is allowed by the list of supported
and unsupported transformations.
|
int |
removeProperties(java.lang.String propertyNames)
Removes transformer properties.
|
int |
setProperties(java.lang.String propertyNamesAndValues)
Sets a transformer property values.
|
static final java.lang.String ANY
static final java.lang.String CONTENT
static final java.lang.String TRANSFORMER
static final java.lang.String PREFIX
static final java.lang.String DEFAULT_TRANSFORMER
static final java.lang.String SUMMARY_TRANSFORMER_NAME
static final java.lang.String USE
static final java.lang.String EXTENSIONS
static final java.lang.String MIMETYPES
TransformerConfig.EXTENSIONS.static final java.lang.String[] SEPARATORS
static final java.lang.String PIPELINE
static final java.lang.String FAILOVER
static final java.lang.String AVAILABLE
static final char PIPE
static final java.lang.String SUPPORTED
static final java.lang.String PRIORITY
static final java.lang.String THRESHOLD_COUNT
static final java.lang.String ERROR_TIME
static final java.lang.String INITIAL_TIME
static final java.lang.String INITIAL_COUNT
static final java.lang.String MAX_SOURCE_SIZE_K_BYTES
static final java.lang.String TIMEOUT_MS
static final java.lang.String MAX_PAGES
static final java.lang.String READ_LIMIT_K_BYTES
static final java.lang.String READ_LIMIT_TIME_MS
static final java.lang.String PAGE_LIMIT
static final int PRIORITY_EXPLICIT
PRIORITY_EXPLICIT (50). By default transformers have a default of 10.
A value of 5 allows better transformers to be added later.static final int PRIORITY_DEFAULT
static final java.util.Collection LIMIT_SUFFIXES
static final java.lang.String[][] LIMIT_PAIR_SUFFIXES
static final java.util.Collection ALL_SUFFIXES
static final java.util.Collection NO_SUFFIXES
static final java.lang.String ENTRIES
static final java.lang.String DEBUG_ENTRIES
static final java.lang.String LOG_ENTRIES
java.lang.String getProperty(java.lang.String name)
name - of the property.null if not set.java.lang.String getProperties(boolean changesOnly)
changesOnly - only custom values will be included.int removeProperties(java.lang.String propertyNames)
propertyNames - new line separated names. Any values will be ignored.java.lang.IllegalArgumentException - if the properties were not set or the
list contains errors.int setProperties(java.lang.String propertyNamesAndValues)
propertyNamesAndValues - new line separated name and valuesjava.lang.IllegalArgumentException - the list contains errors.TransformerStatistics getStatistics(ContentTransformer transformer, java.lang.String sourceMimetype, java.lang.String targetMimetype, boolean createNew)
TransformerStatistics object for the combination of
transformer, sourceMimetype and targetMimetype. When transformer is null this is the
system wide summary object for a combination of sourceMimetype and targetMimetype.
When both sourceMimetype and targetMimetype are null this is the transformer's summary
object. When all three parameters are null this is the system wide summary for all
transformers.transformer - the transformer for which data is being recorded.sourceMimetype - the source mimetype.targetMimetype - the source mimetype.createNew - indicates if a new object should be created if it does not exist.TransformerStatistics.TransformationOptionLimits getLimits(ContentTransformer transformer, java.lang.String sourceMimetype, java.lang.String targetMimetype, java.lang.String use)
transformer - sourceMimetype - targetMimetype - use - to which the limits will be put. For example "index", "webpreview", "doclib", "syncRule",
"aysncRule". null is the default.boolean isSupportedTransformation(ContentTransformer transformer, java.lang.String sourceMimetype, java.lang.String targetMimetype, TransformationOptions options)
transformer - sourceMimetype - targetMimetype - options - not currently usedint getPriority(ContentTransformer contentTransformerHelper, java.lang.String sourceMimetype, java.lang.String targetMimetype)
transformer - sourceMimetype - targetMimetype - PRIORITY_EXPLICIT (50). By default transformers have a default of 100.int getThresholdCount(ContentTransformer contentTransformerHelper, java.lang.String sourceMimetype, java.lang.String targetMimetype)
transformer - sourceMimetype - targetMimetype - Copyright © 2005 - 2013 Alfresco Software, Inc. All Rights Reserved.