public class TransformationOptionLimitsMap
extends java.util.AbstractMap
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>
<value>
* txt TransformationOptionLimits ${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"
| Constructor and Description |
|---|
TransformationOptionLimitsMap(java.lang.String values,
org.alfresco.service.cmr.repository.MimetypeService mimetypeService)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.Set |
entrySet() |
public TransformationOptionLimitsMap(java.lang.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.Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.