Interface CoreContentService

All Superinterfaces:
org.flowable.content.api.ContentService
All Known Implementing Classes:
ContentServiceImpl

public interface CoreContentService extends org.flowable.content.api.ContentService
  • Method Details

    • newCoreContentItem

      CoreContentItem newCoreContentItem()
    • findContentItemsByTaskId

      List<CoreContentItem> findContentItemsByTaskId(String taskId)
    • findContentItemsByProcessInstanceId

      List<CoreContentItem> findContentItemsByProcessInstanceId(String processInstanceId)
    • findContentItemsByScopeIdAndType

      List<CoreContentItem> findContentItemsByScopeIdAndType(String scopeId, String scopeType)
    • createCoreContentItemQuery

      CoreContentItemQuery createCoreContentItemQuery()
    • deleteContentItemsByVersionParentId

      void deleteContentItemsByVersionParentId(String versionParentId)
    • copyContentItem

      CoreContentItem copyContentItem(String contentItemId, String parentFolderId)
    • renameContentItem

      CoreContentItem renameContentItem(String contentItemId, String newName)
      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 a DOCUMENT_RENAMED event when the name actually changes, except for folders and provisional items which are not considered documents — those are renamed silently.
    • moveContentItem

      CoreContentItem moveContentItem(String contentItemId, String newParentFolderId)
      Moves a non-folder content item to a different parent folder and returns the updated entity. Fires a DOCUMENT_MOVED event when the parent folder actually changes and the content item is non-provisional.
    • updateContentItemContent

      CoreContentItem updateContentItemContent(String contentItemId, InputStream inputStream)
      Replaces the binary content of an existing content item and returns the updated entity. Fires a DOCUMENT_CONTENT_UPDATED event when the content item is non-provisional. The previous binary in the content store is left in place.
    • setContentItemDefinition

      CoreContentItem setContentItemDefinition(String contentItemId, String definitionId)
      Sets, replaces, or unsets the document definition assigned to a content item and returns the updated entity. Fires a DOCUMENT_DEFINITION_SET event when the definition id actually changes and the content item is non-provisional. Pass null to 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 gets version = max(existingVersion) + 1, name and mimeType from the arguments, and inherits the original item's metadata. Fires a DOCUMENT_NEW_VERSION_CREATED event.
    • revertContentItemVersion

      CoreContentItem 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 of currentContentItemId, has version = current.version + 1, and contains the binary, name and mime-type of revertToContentItemId. Inherits the chain fields and metadata from the current item. Fires a DOCUMENT_REVERTED_TO_VERSION event.
    • addUserIdentityLink

      void addUserIdentityLink(String contentItemId, String userId, String identityLinkType)
    • addGroupIdentityLink

      void addGroupIdentityLink(String contentItemId, String userId, String identityLinkType)
    • deleteUserIdentityLink

      void deleteUserIdentityLink(String contentItemId, String userId, String identityLinkType)
    • deleteGroupIdentityLink

      void deleteGroupIdentityLink(String contentItemId, String userId, String identityLinkType)
    • createProvisionalRenditionItems

      void createProvisionalRenditionItems(String contentItemId, String documentAgentDefinitionId)