Package com.flowable.core.content.api
Interface DocumentRepositoryService
- All Known Implementing Classes:
DocumentRepositoryServiceImpl
public interface DocumentRepositoryService
-
Method Summary
Modifier and TypeMethodDescriptionconvertDocumentDefinitionModelToJson(String documentDefinitionId) Returns theDocumentDefinitionModelas a JSON string.Starts creating a new deploymentQuery deploymentsQuery case definitionsvoiddeleteDeployment(String deploymentId) Deletes the given deployment.getDeploymentResourceNames(String deploymentId) Retrieves a list of deployment resources for the given deployment, ordered alphabetically.getDocumentDefinition(String documentDefinitionId) Returns theDocumentDefinitionincluding all action information like additional Properties (e.g.getDocumentDefinitionByKey(String documentDefinitionKey) Returns the latestDocumentDefinitionfor the given key.getDocumentDefinitionByKeyAndTenantId(String documentDefinitionKey, String tenantId) Returns the latestDocumentDefinitionfor the given key in the given tenant.getDocumentDefinitionModel(String documentDefinitionId) Returns theDocumentDefinitionModelincluding all action model info.getResourceAsStream(String deploymentId, String resourceName) Gives access to a deployment resource through a stream of bytes.voidsetDocumentDefinitionCategory(String documentDefinitionId, String category)
-
Method Details
-
createDeployment
DocumentDeploymentBuilder createDeployment()Starts creating a new deployment -
getDeploymentResourceNames
Retrieves a list of deployment resources for the given deployment, ordered alphabetically.- Parameters:
deploymentId- id of the deployment, cannot be null.
-
getResourceAsStream
Gives access to a deployment resource through a stream of bytes.- Parameters:
deploymentId- id of the deployment, cannot be null.resourceName- name of the resource, cannot be null.- Throws:
FlowableObjectNotFoundException- when the resource doesn't exist in the given deployment or when no deployment exists for the given deploymentId.
-
getDocumentDefinitionModel
Returns theDocumentDefinitionModelincluding all action model info. -
convertDocumentDefinitionModelToJson
Returns theDocumentDefinitionModelas a JSON string. -
getDocumentDefinition
Returns theDocumentDefinitionincluding all action information like additional Properties (e.g. documentation). -
getDocumentDefinitionByKey
Returns the latestDocumentDefinitionfor the given key. -
getDocumentDefinitionByKeyAndTenantId
DocumentDefinition getDocumentDefinitionByKeyAndTenantId(String documentDefinitionKey, String tenantId) Returns the latestDocumentDefinitionfor the given key in the given tenant. -
setDocumentDefinitionCategory
-
deleteDeployment
Deletes the given deployment.- Parameters:
deploymentId- id of the deployment, cannot be null.
-
createDeploymentQuery
DocumentDeploymentQuery createDeploymentQuery()Query deployments -
createDocumentDefinitionQuery
DocumentDefinitionQuery createDocumentDefinitionQuery()Query case definitions
-