Package com.flowable.core.content.api
Interface DocumentRepositoryService
- All Known Implementing Classes:
DocumentRepositoryServiceImpl
public interface DocumentRepositoryService
-
Method Summary
Modifier and Type Method Description java.lang.String
convertDocumentDefinitionModelToJson(java.lang.String documentDefinitionId)
Returns theDocumentDefinitionModel
as a JSON string.DocumentDeploymentBuilder
createDeployment()
Starts creating a new deploymentDocumentDeploymentQuery
createDeploymentQuery()
Query deploymentsDocumentDefinitionQuery
createDocumentDefinitionQuery()
Query case definitionsvoid
deleteDeployment(java.lang.String deploymentId)
Deletes the given deployment.java.util.List<java.lang.String>
getDeploymentResourceNames(java.lang.String deploymentId)
Retrieves a list of deployment resources for the given deployment, ordered alphabetically.DocumentDefinition
getDocumentDefinition(java.lang.String documentDefinitionId)
Returns theDocumentDefinition
including all action information like additional Properties (e.g.DocumentDefinitionModel
getDocumentDefinitionModel(java.lang.String documentDefinitionId)
Returns theDocumentDefinitionModel
including all action model info.java.io.InputStream
getResourceAsStream(java.lang.String deploymentId, java.lang.String resourceName)
Gives access to a deployment resource through a stream of bytes.void
setDocumentDefinitionCategory(java.lang.String documentDefinitionId, java.lang.String category)
-
Method Details
-
createDeployment
DocumentDeploymentBuilder createDeployment()Starts creating a new deployment -
getDeploymentResourceNames
java.util.List<java.lang.String> getDeploymentResourceNames(java.lang.String deploymentId)Retrieves a list of deployment resources for the given deployment, ordered alphabetically.- Parameters:
deploymentId
- id of the deployment, cannot be null.
-
getResourceAsStream
java.io.InputStream getResourceAsStream(java.lang.String deploymentId, java.lang.String resourceName)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:
org.flowable.common.engine.api.FlowableObjectNotFoundException
- when the resource doesn't exist in the given deployment or when no deployment exists for the given deploymentId.
-
getDocumentDefinitionModel
Returns theDocumentDefinitionModel
including all action model info. -
convertDocumentDefinitionModelToJson
java.lang.String convertDocumentDefinitionModelToJson(java.lang.String documentDefinitionId)Returns theDocumentDefinitionModel
as a JSON string. -
getDocumentDefinition
Returns theDocumentDefinition
including all action information like additional Properties (e.g. documentation). -
setDocumentDefinitionCategory
void setDocumentDefinitionCategory(java.lang.String documentDefinitionId, java.lang.String category) -
deleteDeployment
void deleteDeployment(java.lang.String deploymentId)Deletes the given deployment.- Parameters:
deploymentId
- id of the deployment, cannot be null.
-
createDeploymentQuery
DocumentDeploymentQuery createDeploymentQuery()Query deployments -
createDocumentDefinitionQuery
DocumentDefinitionQuery createDocumentDefinitionQuery()Query case definitions
-