Class ExternalSystemContentServiceImpl

java.lang.Object
com.flowable.engage.external.system.service.ExternalSystemContentServiceImpl
All Implemented Interfaces:
ExternalSystemContentService

public class ExternalSystemContentServiceImpl extends Object implements ExternalSystemContentService
Author:
Filip Hrisafov
  • Field Details

    • contentService

      protected final org.flowable.content.api.ContentService contentService
    • externalSystemContentProviders

      protected final Map<String,ExternalSystemContentProvider> externalSystemContentProviders
    • contentWaitDuration

      protected final Duration contentWaitDuration
  • Constructor Details

    • ExternalSystemContentServiceImpl

      public ExternalSystemContentServiceImpl(org.flowable.content.api.ContentService contentService, Collection<ExternalSystemContentProvider> externalSystemContentProviders, Duration contentWaitDuration)
  • Method Details

    • fetchAndCreateProvisionalContent

      public org.flowable.content.api.ContentItem fetchAndCreateProvisionalContent(String externalSystemId, String businessAccountId, String externalMediaId, Map<String,String> hints)
      Description copied from interface: ExternalSystemContentService
      This fetches the media from the external system adapter and creates provisional content.
      Specified by:
      fetchAndCreateProvisionalContent in interface ExternalSystemContentService
      Parameters:
      externalSystemId - the id of the system from which the content item should be fetched
      businessAccountId - the account for which the fetch should be done
      externalMediaId - the id of the external media
      hints - optional hints that can be used when creating the content item
      Returns:
      the persistent content item
    • getAdapterProvider

      protected ExternalSystemContentProvider getAdapterProvider(String externalSystemId)