Interface DataObjectRepositoryService
- All Known Implementing Classes:
DataObjectRepositoryServiceImpl
public interface DataObjectRepositoryService
The main service interface for the master data management.
- Author:
- Micha Kiener
-
Method Summary
Modifier and TypeMethodDescriptionReturns a new data object definition query instance to be used when searching for data object definitions.Starts creating a new deploymentQuery deploymentsvoid
deleteDeployment
(String deploymentId) Deletes the given deployment.getDataObjectDefinition
(String dataObjectDefinitionId) Returns the specified data object definition given by its id.getDataObjectDefinitionByKey
(String dataObjectDefinitionKey) Returns the data object definition with the matching definition key.getDataObjectDefinitionByKeyAndTenantId
(String dataObjectDefinitionKey, String tenantId) Returns the data object definition with the matching definition key and tenant id.getDataObjectModel
(String dataObjectDefinitionId) Returns the data object model by definition id.getDataObjectModelByKey
(String dataObjectDefinitionKey) Returns the data object model by definition key.getDataObjectModelByKeyAndTenantId
(String dataObjectDefinitionKey, String tenantId) Returns the data object model by definition key and tenant id.getDeploymentResourceNames
(String deploymentId) Retrieves a list of deployment resources for the given deployment, ordered alphabetically.getMasterDataModel
(String dataObjectDefinitionId) Returns the master data model for the given master data definition id containing the meta information for that master data type.getResourceAsStream
(String deploymentId, String resourceName) Gives access to a deployment resource through a stream of bytes.void
performDataObjectSchemaDefinitionRollback
(String dataObjectSchemaDefinitionId) Perform the rollback for the schema definition with the given id.void
performDataObjectSchemaDefinitionUpdate
(String dataObjectSchemaDefinitionId) Perform the update for the schema definition with the given id.
-
Method Details
-
createDeployment
DataObjectDeploymentBuilder 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.
-
createDataObjectDefinitionQuery
DataObjectDefinitionQuery createDataObjectDefinitionQuery()Returns a new data object definition query instance to be used when searching for data object definitions.- Returns:
- the query instance used to specify the data object definition query terms
-
getDataObjectDefinition
Returns the specified data object definition given by its id.- Parameters:
dataObjectDefinitionId
- the id of the data object definition- Returns:
- the data object definition given by its id or null if not found
-
getDataObjectDefinitionByKey
Returns the data object definition with the matching definition key.- Parameters:
dataObjectDefinitionKey
- the key of the data object definition- Returns:
- the data object definition given by its key or null if not found
-
getDataObjectDefinitionByKeyAndTenantId
DataObjectDefinition getDataObjectDefinitionByKeyAndTenantId(String dataObjectDefinitionKey, String tenantId) Returns the data object definition with the matching definition key and tenant id.- Parameters:
dataObjectDefinitionKey
- the key of the data object definitiontenantId
- the tenant ID of the data object definition- Returns:
- the data object definition given by its key and tenantId or null if not found
-
getDataObjectModel
Returns the data object model by definition id.- Parameters:
dataObjectDefinitionId
- the id of the data object definition- Returns:
- the parsed data object model.
-
getDataObjectModelByKey
Returns the data object model by definition key.- Parameters:
dataObjectDefinitionKey
- the key of the data object definition- Returns:
- the parsed data object model.
-
getDataObjectModelByKeyAndTenantId
Returns the data object model by definition key and tenant id.- Parameters:
dataObjectDefinitionKey
- the key of the data object definitiontenantId
- the tenant ID of the data object definition- Returns:
- the parsed data object model.
-
createDataObjectSchemaDefinitionQuery
DataObjectSchemaDefinitionQuery createDataObjectSchemaDefinitionQuery()- Returns:
- A query that can be used to retrieve data object schema definitions.
-
performDataObjectSchemaDefinitionUpdate
Perform the update for the schema definition with the given id.- Parameters:
dataObjectSchemaDefinitionId
- the id of the data object schema definition for which the update should be done
-
performDataObjectSchemaDefinitionRollback
Perform the rollback for the schema definition with the given id.- Parameters:
dataObjectSchemaDefinitionId
- the id of the data object schema definition for which the rollback should be done
-
getMasterDataModel
Returns the master data model for the given master data definition id containing the meta information for that master data type.- Parameters:
dataObjectDefinitionId
- the id of the master data definition to return its model- Returns:
- the master data model requested
-
deleteDeployment
Deletes the given deployment.- Parameters:
deploymentId
- id of the deployment, cannot be null.
-
createDeploymentQuery
DataObjectDeploymentQuery createDeploymentQuery()Query deployments
-