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 Summary
Fields Modifier and Type Field Description protected ContentService
contentService
protected Duration
contentWaitDuration
protected Map<String,ExternalSystemContentProvider>
externalSystemContentProviders
-
Fields inherited from interface com.flowable.engage.external.system.api.ExternalSystemContentService
MIME_TYPE_HINT, NAME_HINT
-
-
Constructor Summary
Constructors Constructor Description ExternalSystemContentServiceImpl(ContentService contentService, Collection<ExternalSystemContentProvider> externalSystemContentProviders, Duration contentWaitDuration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ContentItem
fetchAndCreateProvisionalContent(String externalSystemId, String businessAccountId, String externalMediaId, Map<String,String> hints)
This fetches the media from the external system adapter and creates provisional content.protected ExternalSystemContentProvider
getAdapterProvider(String externalSystemId)
-
-
-
Field Detail
-
contentService
protected final ContentService contentService
-
externalSystemContentProviders
protected final Map<String,ExternalSystemContentProvider> externalSystemContentProviders
-
contentWaitDuration
protected final Duration contentWaitDuration
-
-
Constructor Detail
-
ExternalSystemContentServiceImpl
public ExternalSystemContentServiceImpl(ContentService contentService, Collection<ExternalSystemContentProvider> externalSystemContentProviders, Duration contentWaitDuration)
-
-
Method Detail
-
fetchAndCreateProvisionalContent
public 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 interfaceExternalSystemContentService
- Parameters:
externalSystemId
- the id of the system from which the content item should be fetchedbusinessAccountId
- the account for which the fetch should be doneexternalMediaId
- the id of the external mediahints
- optional hints that can be used when creating the content item- Returns:
- the persistent content item
-
getAdapterProvider
protected ExternalSystemContentProvider getAdapterProvider(String externalSystemId)
-
-