Class TransformationOptionLimitsMap

  • All Implemented Interfaces:
    Map<String,​Map<String,​TransformationOptionLimits>>

    @Deprecated
    public class TransformationOptionLimitsMap
    extends AbstractMap<String,​Map<String,​TransformationOptionLimits>>
    Deprecated.
    The transformations code is being moved out of the codebase and replaced by the new async RenditionService2 or other external libraries.
    Helper class to create an immutable 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"
     
    Author:
    Alan Davis