Interface CoreContentService
- All Superinterfaces:
org.flowable.content.api.ContentService
- All Known Implementing Classes:
ContentServiceImpl
public interface CoreContentService
extends org.flowable.content.api.ContentService
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddGroupIdentityLink(String contentItemId, String userId, String identityLinkType) voidaddUserIdentityLink(String contentItemId, String userId, String identityLinkType) copyContentItem(String contentItemId, String parentFolderId) createNewVersionContentItem(String originalContentItemId, String name, String mimeType, InputStream inputStream) Creates a new version of an existing content item by inserting a new content item row that shares the version parent id of the original and copying the chain fields (scope, folder, definition, tenant) from the original.voidcreateProvisionalRenditionItems(String contentItemId, String documentAgentDefinitionId) voiddeleteContentItemsByVersionParentId(String versionParentId) voiddeleteGroupIdentityLink(String contentItemId, String userId, String identityLinkType) voiddeleteUserIdentityLink(String contentItemId, String userId, String identityLinkType) findContentItemsByProcessInstanceId(String processInstanceId) findContentItemsByScopeIdAndType(String scopeId, String scopeType) findContentItemsByTaskId(String taskId) moveContentItem(String contentItemId, String newParentFolderId) Moves a non-folder content item to a different parent folder and returns the updated entity.renameContentItem(String contentItemId, String newName) Renames a content item and returns the updated entity.revertContentItemVersion(String currentContentItemId, String revertToContentItemId) Reverts a content item to a previous version by inserting a new content item row that shares the version parent id ofcurrentContentItemId, hasversion = current.version + 1, and contains the binary, name and mime-type ofrevertToContentItemId.setContentItemDefinition(String contentItemId, String definitionId) Sets, replaces, or unsets the document definition assigned to a content item and returns the updated entity.updateContentItemContent(String contentItemId, InputStream inputStream) Replaces the binary content of an existing content item and returns the updated entity.Methods inherited from interface org.flowable.content.api.ContentService
createContentItemQuery, deleteContentItem, deleteContentItemsByProcessInstanceId, deleteContentItemsByScopeIdAndScopeType, deleteContentItemsByTaskId, getContentItemData, newContentItem, saveContentItem, saveContentItem
-
Method Details
-
newCoreContentItem
CoreContentItem newCoreContentItem() -
findContentItemsByTaskId
-
findContentItemsByProcessInstanceId
-
findContentItemsByScopeIdAndType
-
createCoreContentItemQuery
CoreContentItemQuery createCoreContentItemQuery() -
deleteContentItemsByVersionParentId
-
copyContentItem
-
renameContentItem
Renames a content item and returns the updated entity. A no-op (no event, returned entity unchanged) is performed when the new name equals the current one. Fires aDOCUMENT_RENAMEDevent when the name actually changes, except for folders and provisional items which are not considered documents — those are renamed silently. -
moveContentItem
Moves a non-folder content item to a different parent folder and returns the updated entity. Fires aDOCUMENT_MOVEDevent when the parent folder actually changes and the content item is non-provisional. -
updateContentItemContent
Replaces the binary content of an existing content item and returns the updated entity. Fires aDOCUMENT_CONTENT_UPDATEDevent when the content item is non-provisional. The previous binary in the content store is left in place. -
setContentItemDefinition
Sets, replaces, or unsets the document definition assigned to a content item and returns the updated entity. Fires aDOCUMENT_DEFINITION_SETevent when the definition id actually changes and the content item is non-provisional. Passnullto unset. -
createNewVersionContentItem
CoreContentItem createNewVersionContentItem(String originalContentItemId, String name, String mimeType, InputStream inputStream) Creates a new version of an existing content item by inserting a new content item row that shares the version parent id of the original and copying the chain fields (scope, folder, definition, tenant) from the original. The new item getsversion = max(existingVersion) + 1,nameandmimeTypefrom the arguments, and inherits the original item's metadata. Fires aDOCUMENT_NEW_VERSION_CREATEDevent. -
revertContentItemVersion
Reverts a content item to a previous version by inserting a new content item row that shares the version parent id ofcurrentContentItemId, hasversion = current.version + 1, and contains the binary, name and mime-type ofrevertToContentItemId. Inherits the chain fields and metadata from the current item. Fires aDOCUMENT_REVERTED_TO_VERSIONevent. -
addUserIdentityLink
-
addGroupIdentityLink
-
deleteUserIdentityLink
-
deleteGroupIdentityLink
-
createProvisionalRenditionItems
-