public abstract class BaseDomainObjectProvider extends BaseEntityProvider<AnyWorkObjectProviderListener,AnyWorkObjectManager> implements DomainObjectProvider
Base class for provider implementations.
Modifier and Type | Method and Description |
---|---|
String |
create(AnyWorkObject template,
String parentId)
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, getId, removeListener
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addListener, removeListener
getId
public String getWorkObjectType()
DomainObjectProvider
Returns the type of entity that are managed by this provider.
getWorkObjectType
in interface DomainObjectProvider
public Collection<AnyWorkObjectDefinition> getDefinitions()
DomainObjectProvider
Returns all definitions known to the provider.
getDefinitions
in interface DomainObjectProvider
public void deployDefinitions(List<? extends org.springframework.core.io.Resource> resources, String deploymentName)
DomainObjectProvider
Deploys the given definition resources. Typically, the implementation creates definition instances based on the given resources and notifies the provider listeners.
deployDefinitions
in interface DomainObjectProvider
resources
- the definition resources to deploydeploymentName
- the name under which to deploy the given resourcespublic String create(AnyWorkObject template, String parentId)
DomainObjectProvider
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.
create
in interface DomainObjectProvider
template
- the definition id of the entity to createparentId
- the parent work object ID (may be null
)public void update(String workObjectId, List<FieldChange> changes)
DomainObjectProvider
Updates the entity with the given id by applying the submitted changes.
update
in interface DomainObjectProvider
workObjectId
- the external id of the entity to updatechanges
- the changes to apply on the entitypublic void delete(String workObjectId)
DomainObjectProvider
Deletes the entity with the given id .
delete
in interface DomainObjectProvider
workObjectId
- the external id of the entity to deleteCopyright © 2010 - 2019 edorasware ag. All Rights Reserved.