Class ContentServiceImpl
java.lang.Object
org.flowable.common.engine.impl.service.CommonServiceImpl<ContentEngineConfiguration>
org.flowable.common.engine.impl.service.CommonEngineServiceImpl<ContentEngineConfiguration>
com.flowable.content.engine.impl.ContentServiceImpl
- All Implemented Interfaces:
CoreContentService, org.flowable.content.api.ContentService
public class ContentServiceImpl
extends org.flowable.common.engine.impl.service.CommonEngineServiceImpl<ContentEngineConfiguration>
implements CoreContentService
- Author:
- Tijs Rademakers
-
Field Summary
Fields inherited from class org.flowable.common.engine.impl.service.CommonEngineServiceImpl
commandExecutorFields inherited from class org.flowable.common.engine.impl.service.CommonServiceImpl
configuration -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddGroupIdentityLink(String contentItemId, String groupId, String identityLinkType) voidaddUserIdentityLink(String contentItemId, String userId, String identityLinkType) copyContentItem(String contentItemId, String parentFolderId) org.flowable.content.api.ContentItemQuerycreateNewVersionContentItem(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) voiddeleteContentItem(String contentItemId) voiddeleteContentItemsByProcessInstanceId(String processInstanceId) voiddeleteContentItemsByScopeIdAndScopeType(String scopeId, String scopeType) voiddeleteContentItemsByTaskId(String taskId) voiddeleteContentItemsByVersionParentId(String versionParentId) voiddeleteGroupIdentityLink(String contentItemId, String groupId, String identityLinkType) voiddeleteUserIdentityLink(String contentItemId, String userId, String identityLinkType) findContentItemsByProcessInstanceId(String processInstanceId) findContentItemsByScopeIdAndType(String scopeId, String scopeType) findContentItemsByTaskId(String taskId) getContentItemData(String contentItemId) moveContentItem(String contentItemId, String newParentFolderId) Moves a non-folder content item to a different parent folder and returns the updated entity.org.flowable.content.api.ContentItemrenameContentItem(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.voidsaveContentItem(org.flowable.content.api.ContentItem contentItem) voidsaveContentItem(org.flowable.content.api.ContentItem contentItem, InputStream inputStream) 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 class org.flowable.common.engine.impl.service.CommonEngineServiceImpl
getCommandExecutor, setCommandExecutorMethods inherited from class org.flowable.common.engine.impl.service.CommonServiceImpl
getConfiguration
-
Constructor Details
-
ContentServiceImpl
-
-
Method Details
-
newContentItem
public org.flowable.content.api.ContentItem newContentItem()- Specified by:
newContentItemin interfaceorg.flowable.content.api.ContentService
-
newCoreContentItem
- Specified by:
newCoreContentItemin interfaceCoreContentService
-
saveContentItem
public void saveContentItem(org.flowable.content.api.ContentItem contentItem) - Specified by:
saveContentItemin interfaceorg.flowable.content.api.ContentService
-
saveContentItem
public void saveContentItem(org.flowable.content.api.ContentItem contentItem, InputStream inputStream) - Specified by:
saveContentItemin interfaceorg.flowable.content.api.ContentService
-
getContentItemData
- Specified by:
getContentItemDatain interfaceorg.flowable.content.api.ContentService
-
findContentItemsByTaskId
- Specified by:
findContentItemsByTaskIdin interfaceCoreContentService
-
findContentItemsByProcessInstanceId
- Specified by:
findContentItemsByProcessInstanceIdin interfaceCoreContentService
-
findContentItemsByScopeIdAndType
- Specified by:
findContentItemsByScopeIdAndTypein interfaceCoreContentService
-
deleteContentItem
- Specified by:
deleteContentItemin interfaceorg.flowable.content.api.ContentService
-
deleteContentItemsByProcessInstanceId
- Specified by:
deleteContentItemsByProcessInstanceIdin interfaceorg.flowable.content.api.ContentService
-
deleteContentItemsByTaskId
- Specified by:
deleteContentItemsByTaskIdin interfaceorg.flowable.content.api.ContentService
-
deleteContentItemsByScopeIdAndScopeType
-
deleteContentItemsByVersionParentId
- Specified by:
deleteContentItemsByVersionParentIdin interfaceCoreContentService
-
copyContentItem
- Specified by:
copyContentItemin interfaceCoreContentService
-
renameContentItem
Description copied from interface:CoreContentServiceRenames 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.- Specified by:
renameContentItemin interfaceCoreContentService
-
moveContentItem
Description copied from interface:CoreContentServiceMoves 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.- Specified by:
moveContentItemin interfaceCoreContentService
-
updateContentItemContent
Description copied from interface:CoreContentServiceReplaces 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.- Specified by:
updateContentItemContentin interfaceCoreContentService
-
setContentItemDefinition
Description copied from interface:CoreContentServiceSets, 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.- Specified by:
setContentItemDefinitionin interfaceCoreContentService
-
createNewVersionContentItem
public CoreContentItem createNewVersionContentItem(String originalContentItemId, String name, String mimeType, InputStream inputStream) Description copied from interface:CoreContentServiceCreates 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.- Specified by:
createNewVersionContentItemin interfaceCoreContentService
-
revertContentItemVersion
public CoreContentItem revertContentItemVersion(String currentContentItemId, String revertToContentItemId) Description copied from interface:CoreContentServiceReverts 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.- Specified by:
revertContentItemVersionin interfaceCoreContentService
-
createContentItemQuery
public org.flowable.content.api.ContentItemQuery createContentItemQuery()- Specified by:
createContentItemQueryin interfaceorg.flowable.content.api.ContentService
-
createCoreContentItemQuery
- Specified by:
createCoreContentItemQueryin interfaceCoreContentService
-
addUserIdentityLink
- Specified by:
addUserIdentityLinkin interfaceCoreContentService
-
addGroupIdentityLink
- Specified by:
addGroupIdentityLinkin interfaceCoreContentService
-
deleteUserIdentityLink
- Specified by:
deleteUserIdentityLinkin interfaceCoreContentService
-
deleteGroupIdentityLink
- Specified by:
deleteGroupIdentityLinkin interfaceCoreContentService
-
createProvisionalRenditionItems
- Specified by:
createProvisionalRenditionItemsin interfaceCoreContentService
-