public abstract class TransformerPropertyNameExtractor extends Object
Constructor and Description |
---|
TransformerPropertyNameExtractor() |
Modifier and Type | Method and Description |
---|---|
protected String |
getProperty(String transformerName,
String sourceExt,
String targetExt,
String suffix,
String use,
Map<org.alfresco.repo.content.transform.TransformerSourceTargetSuffixKey,org.alfresco.repo.content.transform.TransformerSourceTargetSuffixValue> transformerSourceTargetSuffixValues)
Returns a transformer property value if it exists from the supplied map.
|
protected Collection<org.alfresco.repo.content.transform.TransformerSourceTargetSuffixValue> |
getTransformerSourceTargetValues(Collection<String> suffixes,
boolean includeSummary,
boolean includeUse,
TransformerProperties transformerProperties,
org.alfresco.service.cmr.repository.MimetypeService mimetypeService)
Returns a set of transformer name, source extension, target extension and value
from property names that defined transformation limits.
|
protected Map<org.alfresco.repo.content.transform.TransformerSourceTargetSuffixKey,org.alfresco.repo.content.transform.TransformerSourceTargetSuffixValue> |
getTransformerSourceTargetValuesMap(Collection<String> suffixes,
boolean includeSummary,
boolean includeExtensions,
boolean includeUse,
TransformerProperties transformerProperties,
org.alfresco.service.cmr.repository.MimetypeService mimetypeService)
Returns a map to access transformer name, source extension and target extension to
transformer name, source extension, target extension and value, created from property
names that defined transformation limits.
|
protected void |
handleProperty(String transformerName,
String separator,
String firstExpression,
String secondExpression,
String suffix,
String use,
String value,
String propertyName,
Map<org.alfresco.repo.content.transform.TransformerSourceTargetSuffixKey,org.alfresco.repo.content.transform.TransformerSourceTargetSuffixValue> transformerSourceTargetSuffixValues,
org.alfresco.service.cmr.repository.MimetypeService mimetypeService)
Handles a property to add values to the supplied transformerSourceTargetSuffixValues.
|
protected Collection<org.alfresco.repo.content.transform.TransformerSourceTargetSuffixValue> getTransformerSourceTargetValues(Collection<String> suffixes, boolean includeSummary, boolean includeUse, TransformerProperties transformerProperties, org.alfresco.service.cmr.repository.MimetypeService mimetypeService)
suffixes
- possible endings to the property names after the target mimetype extension.
Must start with a '.' if there is a suffix.includeSummary
- if true will also look for property names without the separator,
source mimetype and target mimetype.includeUse
- if true, additionally checks for specific usage values that override
the normal defaults. Such properties have a suffix of ".use.transformerProperties
- that provides the propertiesmimetypeService
- MimetypeServiceprotected Map<org.alfresco.repo.content.transform.TransformerSourceTargetSuffixKey,org.alfresco.repo.content.transform.TransformerSourceTargetSuffixValue> getTransformerSourceTargetValuesMap(Collection<String> suffixes, boolean includeSummary, boolean includeExtensions, boolean includeUse, TransformerProperties transformerProperties, org.alfresco.service.cmr.repository.MimetypeService mimetypeService)
suffixes
- possible endings to the property names after the target mimetype extension.
Must start with a '.' if there is a suffix.includeSummary
- if true will include property names without the separator to
source mimetype and target mimetype.includeExtensions
- if false will exclude property names with the separator to
source mimetype and target mimetype.includeUse
- if true, additionally checks for specific usage values that override
the normal defaults. Such properties have a suffix of ".use.transformerProperties
- that provides the propertiesmimetypeService
- MimetypeServiceprotected void handleProperty(String transformerName, String separator, String firstExpression, String secondExpression, String suffix, String use, String value, String propertyName, Map<org.alfresco.repo.content.transform.TransformerSourceTargetSuffixKey,org.alfresco.repo.content.transform.TransformerSourceTargetSuffixValue> transformerSourceTargetSuffixValues, org.alfresco.service.cmr.repository.MimetypeService mimetypeService)
protected String getProperty(String transformerName, String sourceExt, String targetExt, String suffix, String use, Map<org.alfresco.repo.content.transform.TransformerSourceTargetSuffixKey,org.alfresco.repo.content.transform.TransformerSourceTargetSuffixValue> transformerSourceTargetSuffixValues)
transformerName
- of the transformersourceExt
- null
indicates this is a transformer wide property.targetExt
- Stringsuffix
- Stringuse
- StringtransformerSourceTargetSuffixValues
- map of valuesnull
if not set.Copyright © 2005–2017 Alfresco Software. All rights reserved.