Interface ExternalSystemContentService
- All Known Implementing Classes:
ExternalSystemContentServiceImpl
public interface ExternalSystemContentService
Service that is responsible for fetching content from the external systems.
- Author:
- Filip Hrisafov
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
MIME_TYPE_HINT
static java.lang.String
NAME_HINT
-
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.
-
Field Details
-
NAME_HINT
static final java.lang.String NAME_HINT- See Also:
- Constant Field Values
-
MIME_TYPE_HINT
static final java.lang.String MIME_TYPE_HINT- See Also:
- Constant Field Values
-
-
Method Details
-
fetchAndCreateProvisionalContent
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.- 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
-