Class ExternalSystemContentServiceImpl
java.lang.Object
com.flowable.engage.external.system.service.ExternalSystemContentServiceImpl
- All Implemented Interfaces:
ExternalSystemContentService
public class ExternalSystemContentServiceImpl extends java.lang.Object implements ExternalSystemContentService
- Author:
- Filip Hrisafov
-
Field Summary
Fields Modifier and Type Field Description protected org.flowable.content.api.ContentService
contentService
protected java.time.Duration
contentWaitDuration
protected java.util.Map<java.lang.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(org.flowable.content.api.ContentService contentService, java.util.Collection<ExternalSystemContentProvider> externalSystemContentProviders, java.time.Duration contentWaitDuration)
-
Method Summary
Modifier and Type Method Description org.flowable.content.api.ContentItem
fetchAndCreateProvisionalContent(java.lang.String externalSystemId, java.lang.String businessAccountId, java.lang.String externalMediaId, java.util.Map<java.lang.String,java.lang.String> hints)
This fetches the media from the external system adapter and creates provisional content.protected ExternalSystemContentProvider
getAdapterProvider(java.lang.String externalSystemId)
-
Field Details
-
contentService
protected final org.flowable.content.api.ContentService contentService -
externalSystemContentProviders
protected final java.util.Map<java.lang.String,ExternalSystemContentProvider> externalSystemContentProviders -
contentWaitDuration
protected final java.time.Duration contentWaitDuration
-
-
Constructor Details
-
ExternalSystemContentServiceImpl
public ExternalSystemContentServiceImpl(org.flowable.content.api.ContentService contentService, java.util.Collection<ExternalSystemContentProvider> externalSystemContentProviders, java.time.Duration contentWaitDuration)
-
-
Method Details
-
fetchAndCreateProvisionalContent
public org.flowable.content.api.ContentItem fetchAndCreateProvisionalContent(java.lang.String externalSystemId, java.lang.String businessAccountId, java.lang.String externalMediaId, java.util.Map<java.lang.String,java.lang.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
-