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.StringconvertDocumentDefinitionModelToJson(java.lang.String documentDefinitionId)Returns theDocumentDefinitionModelas a JSON string.DocumentDeploymentBuildercreateDeployment()Starts creating a new deploymentDocumentDeploymentQuerycreateDeploymentQuery()Query deploymentsDocumentDefinitionQuerycreateDocumentDefinitionQuery()Query case definitionsvoiddeleteDeployment(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.DocumentDefinitiongetDocumentDefinition(java.lang.String documentDefinitionId)Returns theDocumentDefinitionincluding all action information like additional Properties (e.g.DocumentDefinitionModelgetDocumentDefinitionModel(java.lang.String documentDefinitionId)Returns theDocumentDefinitionModelincluding all action model info.java.io.InputStreamgetResourceAsStream(java.lang.String deploymentId, java.lang.String resourceName)Gives access to a deployment resource through a stream of bytes.voidsetDocumentDefinitionCategory(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 theDocumentDefinitionModelincluding all action model info. -
convertDocumentDefinitionModelToJson
java.lang.String convertDocumentDefinitionModelToJson(java.lang.String documentDefinitionId)Returns theDocumentDefinitionModelas a JSON string. -
getDocumentDefinition
Returns theDocumentDefinitionincluding 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
-