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
FieldsModifier and TypeFieldDescriptionprotected final ContentService
protected final Duration
protected final Map<String,
ExternalSystemContentProvider> Fields inherited from interface com.flowable.engage.external.system.api.ExternalSystemContentService
MIME_TYPE_HINT, NAME_HINT
-
Constructor Summary
ConstructorsConstructorDescriptionExternalSystemContentServiceImpl
(ContentService contentService, Collection<ExternalSystemContentProvider> externalSystemContentProviders, Duration contentWaitDuration) -
Method Summary
Modifier and TypeMethodDescriptionfetchAndCreateProvisionalContent
(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 Details
-
contentService
-
externalSystemContentProviders
-
contentWaitDuration
-
-
Constructor Details
-
ExternalSystemContentServiceImpl
public ExternalSystemContentServiceImpl(ContentService contentService, Collection<ExternalSystemContentProvider> externalSystemContentProviders, Duration contentWaitDuration)
-
-
Method Details
-
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
-