Package com.flowable.core.content.api
Interface DocumentRepositoryService
-
- All Known Implementing Classes:
DocumentRepositoryServiceImpl
public interface DocumentRepositoryService
-
-
Method Summary
All Methods Instance Methods Abstract Methods 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.DocumentDefinitiongetDocumentDefinitionByKey(java.lang.String documentDefinitionKey)Returns the latestDocumentDefinitionfor the given key.DocumentDefinitiongetDocumentDefinitionByKeyAndTenantId(java.lang.String documentDefinitionKey, java.lang.String tenantId)Returns the latestDocumentDefinitionfor the given key in the given tenant.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 Detail
-
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
DocumentDefinitionModel getDocumentDefinitionModel(java.lang.String documentDefinitionId)
Returns theDocumentDefinitionModelincluding all action model info.
-
convertDocumentDefinitionModelToJson
java.lang.String convertDocumentDefinitionModelToJson(java.lang.String documentDefinitionId)
Returns theDocumentDefinitionModelas a JSON string.
-
getDocumentDefinition
DocumentDefinition getDocumentDefinition(java.lang.String documentDefinitionId)
Returns theDocumentDefinitionincluding all action information like additional Properties (e.g. documentation).
-
getDocumentDefinitionByKey
DocumentDefinition getDocumentDefinitionByKey(java.lang.String documentDefinitionKey)
Returns the latestDocumentDefinitionfor the given key.
-
getDocumentDefinitionByKeyAndTenantId
DocumentDefinition getDocumentDefinitionByKeyAndTenantId(java.lang.String documentDefinitionKey, java.lang.String tenantId)
Returns the latestDocumentDefinitionfor the given key in the given tenant.
-
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
-
-