Class TransformerPropertyNameExtractor

    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      protected java.lang.String getProperty​(java.lang.String transformerName, java.lang.String sourceExt, java.lang.String targetExt, java.lang.String suffix, java.lang.String use, java.util.Map<org.alfresco.repo.content.transform.TransformerSourceTargetSuffixKey,​org.alfresco.repo.content.transform.TransformerSourceTargetSuffixValue> transformerSourceTargetSuffixValues)
      Deprecated.
      Returns a transformer property value if it exists from the supplied map.
      protected java.util.Collection<org.alfresco.repo.content.transform.TransformerSourceTargetSuffixValue> getTransformerSourceTargetValues​(java.util.Collection<java.lang.String> suffixes, boolean includeSummary, boolean includeUse, TransformerProperties transformerProperties, org.alfresco.service.cmr.repository.MimetypeService mimetypeService)
      Deprecated.
      Returns a set of transformer name, source extension, target extension and value from property names that defined transformation limits.
      protected java.util.Map<org.alfresco.repo.content.transform.TransformerSourceTargetSuffixKey,​org.alfresco.repo.content.transform.TransformerSourceTargetSuffixValue> getTransformerSourceTargetValuesMap​(java.util.Collection<java.lang.String> suffixes, boolean includeSummary, boolean includeExtensions, boolean includeUse, TransformerProperties transformerProperties, org.alfresco.service.cmr.repository.MimetypeService mimetypeService)
      Deprecated.
      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​(java.lang.String transformerName, java.lang.String separator, java.lang.String firstExpression, java.lang.String secondExpression, java.lang.String suffix, java.lang.String use, java.lang.String value, java.lang.String propertyName, java.util.Map<org.alfresco.repo.content.transform.TransformerSourceTargetSuffixKey,​org.alfresco.repo.content.transform.TransformerSourceTargetSuffixValue> transformerSourceTargetSuffixValues, org.alfresco.service.cmr.repository.MimetypeService mimetypeService)
      Deprecated.
      Handles a property to add values to the supplied transformerSourceTargetSuffixValues.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TransformerPropertyNameExtractor

        public TransformerPropertyNameExtractor()
        Deprecated.
    • Method Detail

      • getTransformerSourceTargetValues

        protected java.util.Collection<org.alfresco.repo.content.transform.TransformerSourceTargetSuffixValue> getTransformerSourceTargetValues​(java.util.Collection<java.lang.String> suffixes,
                                                                                                                                                boolean includeSummary,
                                                                                                                                                boolean includeUse,
                                                                                                                                                TransformerProperties transformerProperties,
                                                                                                                                                org.alfresco.service.cmr.repository.MimetypeService mimetypeService)
        Deprecated.
        Returns a set of transformer name, source extension, target extension and value from property names that defined transformation limits. When the separator indicates it is followed by a regular expression that matches multiple mimetypes, more than one value may be added. When there is a value defined for specific extensions it wins over any regular expression value.
        Parameters:
        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." where is a value such as "index", "webpreview", "doclib", "syncRule", "aysncRule".
        transformerProperties - that provides the properties
        mimetypeService - MimetypeService
      • getTransformerSourceTargetValuesMap

        protected java.util.Map<org.alfresco.repo.content.transform.TransformerSourceTargetSuffixKey,​org.alfresco.repo.content.transform.TransformerSourceTargetSuffixValue> getTransformerSourceTargetValuesMap​(java.util.Collection<java.lang.String> suffixes,
                                                                                                                                                                                                                       boolean includeSummary,
                                                                                                                                                                                                                       boolean includeExtensions,
                                                                                                                                                                                                                       boolean includeUse,
                                                                                                                                                                                                                       TransformerProperties transformerProperties,
                                                                                                                                                                                                                       org.alfresco.service.cmr.repository.MimetypeService mimetypeService)
        Deprecated.
        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. When the separator indicates it is followed by a regular expression that matches multiple mimetypes, more than one value may be added. When there is a value defined for specific extensions it wins over any regular expression value.
        Parameters:
        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." where is a value such as "index", "webpreview", "doclib", "syncRule", "aysncRule".
        transformerProperties - that provides the properties
        mimetypeService - MimetypeService
      • handleProperty

        protected void handleProperty​(java.lang.String transformerName,
                                      java.lang.String separator,
                                      java.lang.String firstExpression,
                                      java.lang.String secondExpression,
                                      java.lang.String suffix,
                                      java.lang.String use,
                                      java.lang.String value,
                                      java.lang.String propertyName,
                                      java.util.Map<org.alfresco.repo.content.transform.TransformerSourceTargetSuffixKey,​org.alfresco.repo.content.transform.TransformerSourceTargetSuffixValue> transformerSourceTargetSuffixValues,
                                      org.alfresco.service.cmr.repository.MimetypeService mimetypeService)
        Deprecated.
        Handles a property to add values to the supplied transformerSourceTargetSuffixValues. If the separator is null, this indicates that the property provides a transformer wide value, so firstExpression and secondExpression should also be ignored.
      • getProperty

        protected java.lang.String getProperty​(java.lang.String transformerName,
                                               java.lang.String sourceExt,
                                               java.lang.String targetExt,
                                               java.lang.String suffix,
                                               java.lang.String use,
                                               java.util.Map<org.alfresco.repo.content.transform.TransformerSourceTargetSuffixKey,​org.alfresco.repo.content.transform.TransformerSourceTargetSuffixValue> transformerSourceTargetSuffixValues)
        Deprecated.
        Returns a transformer property value if it exists from the supplied map.
        Parameters:
        transformerName - of the transformer
        sourceExt - null indicates this is a transformer wide property.
        targetExt - String
        suffix - String
        use - String
        transformerSourceTargetSuffixValues - map of values
        Returns:
        the value or null if not set.