public abstract class BaseDomainObjectProvider<T extends EntityId,D extends EntityId,P extends Id,E extends DomainObjectDefinition<D,P>,L extends EventListener,M extends DomainObjectManager<T,D,P,?,?,?,?,?,?,?>> extends BaseEntityProvider<P,L,M> implements DomainObjectProvider<T,D,P,E,L>
Modifier | Constructor and Description |
---|---|
protected |
BaseDomainObjectProvider(M manager,
P id,
boolean requiresInitialSynchronization,
TimeProvider timeProvider) |
protected |
BaseDomainObjectProvider(M manager,
P id,
TimeProvider timeProvider) |
protected |
BaseDomainObjectProvider(M manager,
TimeProvider timeProvider) |
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, execute, getId, getTimeProvider, removeListener
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addListener, removeListener
getId
protected BaseDomainObjectProvider(M manager, TimeProvider timeProvider)
protected BaseDomainObjectProvider(M manager, P id, TimeProvider timeProvider)
protected BaseDomainObjectProvider(M manager, P id, boolean requiresInitialSynchronization, TimeProvider timeProvider)
public boolean requiresInitialSynchronization()
DomainObjectProvider
requiresInitialSynchronization
in interface DomainObjectProvider<T extends EntityId,D extends EntityId,P extends Id,E extends DomainObjectDefinition<D,P>,L extends EventListener>
public Collection<E> getDefinitions()
DomainObjectProvider
getDefinitions
in interface DomainObjectProvider<T extends EntityId,D extends EntityId,P extends Id,E extends DomainObjectDefinition<D,P>,L extends EventListener>
public void deployDefinitions(List<? extends org.springframework.core.io.Resource> resources, String deploymentName)
DomainObjectProvider
deployDefinitions
in interface DomainObjectProvider<T extends EntityId,D extends EntityId,P extends Id,E extends DomainObjectDefinition<D,P>,L extends EventListener>
resources
- the definition resources to deploydeploymentName
- the name under which to deploy the given resourcespublic T create(D definitionId, Map<String,Object> variables)
DomainObjectProvider
create
in interface DomainObjectProvider<T extends EntityId,D extends EntityId,P extends Id,E extends DomainObjectDefinition<D,P>,L extends EventListener>
definitionId
- the definition id of the entity to createvariables
- the instance-specific variables to apply when creating the entitypublic void update(T entityId, List<FieldChange> changes)
DomainObjectProvider
update
in interface DomainObjectProvider<T extends EntityId,D extends EntityId,P extends Id,E extends DomainObjectDefinition<D,P>,L extends EventListener>
entityId
- the id of the entity to updatechanges
- the changes to apply on the entitypublic void delete(T entityId)
DomainObjectProvider
delete
in interface DomainObjectProvider<T extends EntityId,D extends EntityId,P extends Id,E extends DomainObjectDefinition<D,P>,L extends EventListener>
entityId
- the id of the entity to deleteCopyright © 2010 - 2018 edorasware ag. All Rights Reserved.