public interface DomainObjectProvider extends EntityProvider<AnyWorkObjectProviderListener>
Represents the base entity provider interface.
Modifier and Type | Method and Description |
---|---|
String |
create(AnyWorkObject template,
String parentWorkObjectId)
Creates a new entity based on the given template.
|
void |
delete(String workObjectId)
Deletes the entity with the given id .
|
void |
deployDefinitions(List<? extends org.springframework.core.io.Resource> resources,
String deploymentName)
Deploys the given definition resources.
|
Collection<AnyWorkObjectDefinition> |
getDefinitions()
Returns all definitions known to the provider.
|
String |
getWorkObjectType()
Returns the type of entity that are managed by this provider.
|
void |
update(String workObjectId,
List<FieldChange> changes)
Updates the entity with the given id by applying the submitted changes.
|
addListener, removeListener
getId
String getWorkObjectType()
Returns the type of entity that are managed by this provider.
Collection<AnyWorkObjectDefinition> getDefinitions()
Returns all definitions known to the provider.
void deployDefinitions(List<? extends org.springframework.core.io.Resource> resources, String deploymentName)
Deploys the given definition resources. Typically, the implementation creates definition instances based on the given resources and notifies the provider listeners.
resources
- the definition resources to deploydeploymentName
- the name under which to deploy the given resourcesString create(AnyWorkObject template, String parentWorkObjectId)
Creates a new entity based on the given template.
Typically, the template is used to build the initial data set of the entity that is created. Multiple entities based on the same definition can be created at the same time. Each created entity can be uniquely identified by its id.
template
- the definition id of the entity to createparentWorkObjectId
- the parent work object ID (may be null
)RuntimeException
- if the entity cannot be createdvoid update(String workObjectId, List<FieldChange> changes)
Updates the entity with the given id by applying the submitted changes.
workObjectId
- the external id of the entity to updatechanges
- the changes to apply on the entityEntityNotFoundException
- if the entity with the given id cannot be foundEntityUpdateFailedException
- if the update of the entity with the given id failsvoid delete(String workObjectId)
Deletes the entity with the given id .
workObjectId
- the external id of the entity to deleteEntityNotFoundException
- if the entity with the given id cannot be foundEntityDeleteFailedException
- if the delete of the entity with the given id failsCopyright © 2010 - 2019 edorasware ag. All Rights Reserved.