public interface DomainObjectProvider<T extends EntityId,D extends EntityId,P extends Id,E extends DomainObjectDefinition<D,P>,L extends EventListener> extends EntityProvider<P,L>
Modifier and Type | Method and Description |
---|---|
T |
create(D definitionId,
Map<String,Object> variables)
Creates a new entity based on the given definition and instance-specific variables.
|
void |
delete(T entityId)
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<E> |
getDefinitions()
Returns all definitions known to the provider.
|
boolean |
requiresInitialSynchronization()
Returns whether the provider requires initial synchronization of its data with the system that the provider is embedded in.
|
void |
update(T entityId,
List<FieldChange> changes)
Updates the entity with the given id by applying the submitted changes.
|
addListener, removeListener
getId
boolean requiresInitialSynchronization()
Collection<E> getDefinitions()
void deployDefinitions(List<? extends org.springframework.core.io.Resource> resources, String deploymentName)
resources
- the definition resources to deploydeploymentName
- the name under which to deploy the given resourcesT create(D definitionId, Map<String,Object> variables)
definitionId
- the definition id of the entity to createvariables
- the instance-specific variables to apply when creating the entityEntityNotFoundException
- if the definition with the given id cannot be foundvoid update(T entityId, List<FieldChange> changes)
entityId
- the 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(T entityId)
entityId
- the 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 - 2018 edorasware ag. All Rights Reserved.