public class DataObjectRuntimeServiceImpl extends CommonEngineServiceImpl<DataObjectEngineConfiguration> implements DataObjectRuntimeService
commandExecutor
configuration
Constructor and Description |
---|
DataObjectRuntimeServiceImpl(DataObjectEngineConfiguration engineConfiguration) |
Modifier and Type | Method and Description |
---|---|
void |
addGroupIdentityLink(String lookupId,
String dataObjectDefinitionKey,
String groupId,
String identityLinkType)
Involves a group with a data object instance.
|
void |
addUserIdentityLink(String lookupId,
String dataObjectDefinitionKey,
String userId,
String identityLinkType)
Involves a user with a data object instance.
|
DataObjectDeletionBuilder |
createDataObjectDeletionBuilder()
Creates a new generic data object instance deletion builder to delete data objects.
|
DataObjectInstanceEntityQuery |
createDataObjectInstanceEntityQuery()
Returns a data object instance query to be used when searching for data object instances.
|
DataObjectInstanceVariableContainerQuery |
createDataObjectInstanceQuery()
Creates a new generic data object instance query to query data objects.
|
DataObjectModificationBuilder |
createDataObjectModificationBuilder()
Creates a new database schema data object modification builder to modify existing data objects.
|
DataObjectModificationBuilder |
createDataObjectModificationBuilder(String dataObjectDefinitionId)
Creates a new database schema data object modification builder to modify existing data objects.
|
DataObjectInstanceVariableContainerBuilder |
createDataObjectValueInstanceBuilder()
Creates a new generic data object instance builder to create new data objects.
|
DataObjectInstanceVariableContainerBuilder |
createDataObjectValueInstanceBuilderByDefinitionId(String dataObjectDefinitionId)
Creates a new generic data object instance builder to create new data objects.
|
DataObjectInstanceVariableContainerBuilder |
createDataObjectValueInstanceBuilderByDefinitionKey(String dataObjectDefinitionKey)
Creates a new generic data object instance builder to create new data objects.
|
DataObjectInstanceVariableContainerBuilder |
createDataObjectValueInstanceBuilderByDefinitionKeyAndTenantId(String dataObjectDefinitionKey,
String tenantId)
Creates a new generic data object instance builder to create new data objects.
|
MasterDataInstance |
createMasterDataInstance(MasterDataInstanceBuilderImpl masterDataInstanceBuilder) |
MasterDataInstanceBuilder |
createMasterDataInstanceBuilder()
Creates a builder to add a new master data instance
|
MasterDataInstanceImportBuilder |
createMasterDataInstanceImportBuilder()
Creates a loader to add a new master data instances
from a document.
|
MasterDataInstanceQuery |
createMasterDataInstanceQuery()
Returns a master data instance query to be used when searching for master data instances.
|
void |
deleteDataObject(String lookupId,
String dataObjectDefinitionId)
Deletes the specified data object given by its lookup id and data object definition.
|
void |
deleteDataObjectVariablesByInstanceId(String dataInstanceId)
Deletes data object variables by master instance id
|
void |
deleteGroupIdentityLink(String lookupId,
String dataObjectDefinitionKey,
String groupId,
String identityLinkType)
Removes the association between a group and a data object instance for the given identityLinkType.
|
void |
deleteMasterDataInstancesByDefinitionId(String dataObjectDefinitionId)
Deletes master data instances by data object definition id
|
void |
deleteUserIdentityLink(String lookupId,
String dataObjectDefinitionKey,
String userId,
String identityLinkType)
Removes the association between a user and a data object instance for the given identityLinkType.
|
DataObjectInstanceVariableContainer |
findDataObjectValueByDataObjectInstanceId(String instanceId)
Lookup a single data object given by its instance id.
|
DataObjectInstanceVariableContainer |
findDataObjectValueByLookupIdAndDefinitionId(String lookupId,
String dataObjectDefinitionId)
Lookup a single data object given by its lookup id and definition id.
|
DataObjectInstanceVariableContainer |
findDataObjectValueByLookupIdAndDefinitionKey(String lookupId,
String dataObjectDefinitionKey)
Lookup a single data object given by its lookup id and definition key.
|
DataObjectInstanceVariableContainer |
findDataObjectValueByLookupIdAndDefinitionKey(String lookupId,
String dataObjectDefinitionKey,
String tenantId)
Lookup a single data object given by its lookup id and definition key.
|
protected DataObjectDefinition |
getDataObjectDefinitionById(String dataObjectDefinitionId) |
protected DataObjectDefinition |
getDataObjectDefinitionByKey(String dataObjectDefinitionKey) |
protected DataObjectDefinition |
getDataObjectDefinitionByKeyAndTenantId(String dataObjectDefinitionKey,
String tenantId) |
protected DataObjectModel |
getDataObjectModelById(String dataObjectDefinitionId) |
protected DataObjectModel |
getDataObjectModelByKey(String dataObjectDefinitionKey) |
protected DataObjectModel |
getDataObjectModelByKeyAndTenantId(String dataObjectDefinitionKey,
String tenantId) |
protected DataObjectRepositoryService |
getDataObjectRepositoryService() |
DataObjectDataSource |
getDataSource(String dataSourceId)
Returns the data source given its id.
|
List<IdentityLink> |
getIdentityLinksForDataObjectInstance(String lookupId,
String dataObjectDefinitionKey)
Retrieves the
IdentityLink s associated with the given data object instance. |
Map<String,Object> |
getMasterDataInstanceVariables(String masterDataInstanceId)
Get the variables for the master data instance with the provided id
|
void |
loadMasterDataInstanceData(String data,
String dataObjectDefinitionId)
Loads master data instance data into the data object engine
|
MasterDataInstance |
saveMasterDataInstance(MasterDataInstance masterDataInstance)
Saves an updated master data instance
|
getCommandExecutor, setCommandExecutor
getConfiguration
public DataObjectRuntimeServiceImpl(DataObjectEngineConfiguration engineConfiguration)
public DataObjectInstanceVariableContainer findDataObjectValueByDataObjectInstanceId(String instanceId)
DataObjectRuntimeService
findDataObjectValueByDataObjectInstanceId
in interface DataObjectRuntimeService
instanceId
- the instance id of the data object to be returnedpublic DataObjectInstanceVariableContainer findDataObjectValueByLookupIdAndDefinitionKey(String lookupId, String dataObjectDefinitionKey)
DataObjectRuntimeService
findDataObjectValueByLookupIdAndDefinitionKey
in interface DataObjectRuntimeService
lookupId
- the lookup id of the data object to be returneddataObjectDefinitionKey
- the key of the data object definition to return a data object instance forpublic DataObjectInstanceVariableContainer findDataObjectValueByLookupIdAndDefinitionKey(String lookupId, String dataObjectDefinitionKey, String tenantId)
DataObjectRuntimeService
findDataObjectValueByLookupIdAndDefinitionKey
in interface DataObjectRuntimeService
lookupId
- the lookup id of the data object to be returneddataObjectDefinitionKey
- the key of the data object definition to return a data object instance fortenantId
- the tenant id to return a data object instance forpublic DataObjectInstanceVariableContainer findDataObjectValueByLookupIdAndDefinitionId(String lookupId, String dataObjectDefinitionId)
DataObjectRuntimeService
findDataObjectValueByLookupIdAndDefinitionId
in interface DataObjectRuntimeService
lookupId
- the lookup id of the data object to be returneddataObjectDefinitionId
- the id of the data object definition to return a data object instance forpublic DataObjectInstanceVariableContainerBuilder createDataObjectValueInstanceBuilder()
DataObjectRuntimeService
createDataObjectValueInstanceBuilder
in interface DataObjectRuntimeService
public DataObjectInstanceVariableContainerBuilder createDataObjectValueInstanceBuilderByDefinitionKey(String dataObjectDefinitionKey)
DataObjectRuntimeService
createDataObjectValueInstanceBuilderByDefinitionKey
in interface DataObjectRuntimeService
dataObjectDefinitionKey
- the key of the data object definition a new instance should be created forpublic DataObjectInstanceVariableContainerBuilder createDataObjectValueInstanceBuilderByDefinitionKeyAndTenantId(String dataObjectDefinitionKey, String tenantId)
DataObjectRuntimeService
createDataObjectValueInstanceBuilderByDefinitionKeyAndTenantId
in interface DataObjectRuntimeService
dataObjectDefinitionKey
- the key of the data object definition a new instance should be created fortenantId
- the tenant of the data object definitionpublic DataObjectInstanceVariableContainerBuilder createDataObjectValueInstanceBuilderByDefinitionId(String dataObjectDefinitionId)
DataObjectRuntimeService
createDataObjectValueInstanceBuilderByDefinitionId
in interface DataObjectRuntimeService
dataObjectDefinitionId
- the id of the data object definition a new instance should be created forpublic DataObjectModificationBuilder createDataObjectModificationBuilder()
DataObjectRuntimeService
createDataObjectModificationBuilder
in interface DataObjectRuntimeService
public DataObjectModificationBuilder createDataObjectModificationBuilder(String dataObjectDefinitionId)
DataObjectRuntimeService
createDataObjectModificationBuilder
in interface DataObjectRuntimeService
dataObjectDefinitionId
- the id of the data object definition for the data object to be modifiedpublic DataObjectInstanceVariableContainerQuery createDataObjectInstanceQuery()
DataObjectRuntimeService
createDataObjectInstanceQuery
in interface DataObjectRuntimeService
public DataObjectDeletionBuilder createDataObjectDeletionBuilder()
DataObjectRuntimeService
createDataObjectDeletionBuilder
in interface DataObjectRuntimeService
public void deleteDataObject(String lookupId, String dataObjectDefinitionId)
DataObjectRuntimeService
deleteDataObject
in interface DataObjectRuntimeService
lookupId
- the lookup id of the data object to be deleteddataObjectDefinitionId
- the id of the data object definition the data object is specified withpublic List<IdentityLink> getIdentityLinksForDataObjectInstance(String lookupId, String dataObjectDefinitionKey)
DataObjectRuntimeService
IdentityLink
s associated with the given data object instance.
Such an IdentityLink
informs how a certain user is involved with a data object instancegetIdentityLinksForDataObjectInstance
in interface DataObjectRuntimeService
public void addUserIdentityLink(String lookupId, String dataObjectDefinitionKey, String userId, String identityLinkType)
DataObjectRuntimeService
addUserIdentityLink
in interface DataObjectRuntimeService
lookupId
- id of the lookup id, cannot be null.dataObjectDefinitionKey
- the key of the data object definition keyuserId
- id of the involved user, cannot be null.identityLinkType
- type of identityLink, cannot be null (@see IdentityLinkType
).public void addGroupIdentityLink(String lookupId, String dataObjectDefinitionKey, String groupId, String identityLinkType)
DataObjectRuntimeService
addGroupIdentityLink
in interface DataObjectRuntimeService
lookupId
- id of the lookup id, cannot be null.dataObjectDefinitionKey
- the key of the data object definition keygroupId
- id of the involved group, cannot be null.identityLinkType
- type of identityLink, cannot be null (@see IdentityLinkType
).public void deleteUserIdentityLink(String lookupId, String dataObjectDefinitionKey, String userId, String identityLinkType)
DataObjectRuntimeService
deleteUserIdentityLink
in interface DataObjectRuntimeService
lookupId
- id of the lookup id, cannot be null.dataObjectDefinitionKey
- the key of the data object definition keyuserId
- id of the involved user, cannot be null.identityLinkType
- type of identityLink, cannot be null (@see IdentityLinkType
).public void deleteGroupIdentityLink(String lookupId, String dataObjectDefinitionKey, String groupId, String identityLinkType)
DataObjectRuntimeService
deleteGroupIdentityLink
in interface DataObjectRuntimeService
lookupId
- id of the lookup id, cannot be null.dataObjectDefinitionKey
- the key of the data object definition keygroupId
- id of the involved group, cannot be null.identityLinkType
- type of identityLink, cannot be null (@see IdentityLinkType
).public DataObjectDataSource getDataSource(String dataSourceId)
DataObjectRuntimeService
getDataSource
in interface DataObjectRuntimeService
dataSourceId
- the id of the data source to be returnedpublic DataObjectInstanceEntityQuery createDataObjectInstanceEntityQuery()
DataObjectRuntimeService
createDataObjectInstanceEntityQuery
in interface DataObjectRuntimeService
public void loadMasterDataInstanceData(String data, String dataObjectDefinitionId)
DataObjectRuntimeService
loadMasterDataInstanceData
in interface DataObjectRuntimeService
public MasterDataInstanceQuery createMasterDataInstanceQuery()
DataObjectRuntimeService
createMasterDataInstanceQuery
in interface DataObjectRuntimeService
public MasterDataInstanceBuilder createMasterDataInstanceBuilder()
DataObjectRuntimeService
createMasterDataInstanceBuilder
in interface DataObjectRuntimeService
public MasterDataInstanceImportBuilder createMasterDataInstanceImportBuilder()
DataObjectRuntimeService
createMasterDataInstanceImportBuilder
in interface DataObjectRuntimeService
public Map<String,Object> getMasterDataInstanceVariables(String masterDataInstanceId)
DataObjectRuntimeService
getMasterDataInstanceVariables
in interface DataObjectRuntimeService
public MasterDataInstance saveMasterDataInstance(MasterDataInstance masterDataInstance)
DataObjectRuntimeService
saveMasterDataInstance
in interface DataObjectRuntimeService
public void deleteMasterDataInstancesByDefinitionId(String dataObjectDefinitionId)
DataObjectRuntimeService
deleteMasterDataInstancesByDefinitionId
in interface DataObjectRuntimeService
public void deleteDataObjectVariablesByInstanceId(String dataInstanceId)
DataObjectRuntimeService
deleteDataObjectVariablesByInstanceId
in interface DataObjectRuntimeService
public MasterDataInstance createMasterDataInstance(MasterDataInstanceBuilderImpl masterDataInstanceBuilder)
protected DataObjectDefinition getDataObjectDefinitionById(String dataObjectDefinitionId)
protected DataObjectDefinition getDataObjectDefinitionByKey(String dataObjectDefinitionKey)
protected DataObjectDefinition getDataObjectDefinitionByKeyAndTenantId(String dataObjectDefinitionKey, String tenantId)
protected DataObjectModel getDataObjectModelById(String dataObjectDefinitionId)
protected DataObjectModel getDataObjectModelByKey(String dataObjectDefinitionKey)
protected DataObjectModel getDataObjectModelByKeyAndTenantId(String dataObjectDefinitionKey, String tenantId)
protected DataObjectRepositoryService getDataObjectRepositoryService()