Class ContentItemFunctionDelegate

java.lang.Object
com.flowable.platform.common.el.content.ContentItemFunctionDelegate
All Implemented Interfaces:
FlowableAstFunctionCreatorAndDelegate, org.flowable.common.engine.api.delegate.FlowableFunctionDelegate, org.flowable.common.engine.api.delegate.FlowableMultiFunctionDelegate, org.flowable.common.engine.impl.el.FlowableAstFunctionCreator

public class ContentItemFunctionDelegate extends Object implements org.flowable.common.engine.api.delegate.FlowableMultiFunctionDelegate, FlowableAstFunctionCreatorAndDelegate
The following expressions are valid:
  • content:getContentItem(<contentItemId>) - Get the content item with the given id
  • content:getContentItemData(<contentItemId>) - Get the binary data of the content item as an InputStream
  • content:getMetadataValues(<contentItemId>) - Get all metadata values for the content item with the given id
  • content:getMetadataValue(<contentItemId>, <metadataName>) - Get a specific metadata value for the content item with the given id
  • content:getRenditionItem(<renditionItemId>) - Get the rendition item with the given id
  • content:getRenditionByType(<contentItemId>, <renditionType>) - Get the rendition item for the given content item and rendition type (e.g. pdf, thumbnail, structured)
  • content:getRenditionItemData(<renditionItemId>) - Get the binary data of the rendition item as an InputStream
  • content:getRenditionItemDataByType(<contentItemId>, <renditionType>) - Get the binary data of the rendition item matching the given type for the content item
Author:
Tijs Rademakers
  • Constructor Details

    • ContentItemFunctionDelegate

      public ContentItemFunctionDelegate()
  • Method Details

    • prefix

      public String prefix()
      Specified by:
      prefix in interface org.flowable.common.engine.api.delegate.FlowableFunctionDelegate
    • localNames

      public Collection<String> localNames()
      Specified by:
      localNames in interface org.flowable.common.engine.api.delegate.FlowableFunctionDelegate
      Specified by:
      localNames in interface org.flowable.common.engine.api.delegate.FlowableMultiFunctionDelegate
    • functionMethod

      public Method functionMethod(String prefix, String localName) throws NoSuchMethodException
      Specified by:
      functionMethod in interface org.flowable.common.engine.api.delegate.FlowableFunctionDelegate
      Specified by:
      functionMethod in interface org.flowable.common.engine.api.delegate.FlowableMultiFunctionDelegate
      Throws:
      NoSuchMethodException
    • determineParameterTypes

      protected Class<?>[] determineParameterTypes(String localName)
    • createFunction

      public org.flowable.common.engine.impl.de.odysseus.el.tree.impl.ast.AstFunction createFunction(String name, int index, org.flowable.common.engine.impl.de.odysseus.el.tree.impl.ast.AstParameters parameters, boolean varargs, org.flowable.common.engine.impl.el.FlowableExpressionParser parser)
      Specified by:
      createFunction in interface org.flowable.common.engine.impl.el.FlowableAstFunctionCreator