public class QueryProvider extends BaseAnyWorkObjectProvider
Provider for Query objects.
TODO: The code is similar to AbstractUserDashboardProvider. Try to extend from it when generics allow it.
Constructor and Description |
---|
QueryProvider(TimeProvider timeProvider) |
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 |
update(String workObjectId,
List<FieldChange> changes)
Updates the entity with the given id by applying the submitted changes.
|
cancel
deployDefinitions, getDefinitions, getWorkObjectType
addListener, getId, removeListener
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
cancel
deployDefinitions, getDefinitions, getWorkObjectType
addListener, removeListener
getId
public static final String ID
public QueryProvider(TimeProvider timeProvider)
public 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
create
in class BaseDomainObjectProvider
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
update
in class BaseDomainObjectProvider
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
delete
in class BaseDomainObjectProvider
workObjectId
- the external id of the entity to deleteCopyright © 2010 - 2019 edorasware ag. All Rights Reserved.