public class TransformationOptionLimitsMap extends AbstractMap<String,Map<String,TransformationOptionLimits>>
Map<String, Map<String, TransformationOptionLimits>>
, keyed on source and target mimetypes. Used to
define transformation limits, without having to specify lots of spring XML. For example:
<bean id="mimetypeLimits.OpenOffice" class="org.alfresco.service.cmr.repository.TransformationOptionLimitsMap"> <constructor-arg> <i;value> * txt maxSourceSizeKBytes ${content.transformer.OpenOffice.mimeTypeLimits.txt.pdf.maxSourceSizeKBytes} ; doc pdf maxSourceSizeKBytes ${content.transformer.OpenOffice.mimeTypeLimits.doc.pdf.maxSourceSizeKBytes} </value> </constructor-arg> <constructor-arg> <ref bean="mimetypeService" /> </constructor-arg> </bean>The first constructor argument is a space separated list of values:
configuration ::= [ <source extension> <target extension> <property name> <value> ]* ";" ]* property name ::= "maxSourceSizeKBytes" | "readLimitKBytes" | "readLimitTimeMs" | "timeoutMs" | "maxPages" | "pageLimit"
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
TransformationOptionLimitsMap(String values,
org.alfresco.service.cmr.repository.MimetypeService mimetypeService)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Set<Map.Entry<String,Map<String,TransformationOptionLimits>>> |
entrySet() |
clear, clone, containsKey, containsValue, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, toString, values
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public TransformationOptionLimitsMap(String values, org.alfresco.service.cmr.repository.MimetypeService mimetypeService)
value
parameter takes a space separated list of
values that define the map. See the class descriptor.values
- the configuration.mimetypeService
- used to lookup mimetypes.public Set<Map.Entry<String,Map<String,TransformationOptionLimits>>> entrySet()
entrySet
in interface Map<String,Map<String,TransformationOptionLimits>>
entrySet
in class AbstractMap<String,Map<String,TransformationOptionLimits>>
Copyright © 2005–2017 Alfresco Software. All rights reserved.