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.
|
canceldeployDefinitions, getDefinitions, getWorkObjectTypeaddListener, getId, removeListenerequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcanceldeployDefinitions, getDefinitions, getWorkObjectTypeaddListener, removeListenergetIdpublic static final String ID
public QueryProvider(TimeProvider timeProvider)
public String create(AnyWorkObject template, String parentId)
DomainObjectProviderCreates 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 DomainObjectProvidercreate in class BaseDomainObjectProvidertemplate - the definition id of the entity to createparentId - the parent work object ID (may be null)public void update(String workObjectId, List<FieldChange> changes)
DomainObjectProviderUpdates the entity with the given id by applying the submitted changes.
update in interface DomainObjectProviderupdate in class BaseDomainObjectProviderworkObjectId - the external id of the entity to updatechanges - the changes to apply on the entitypublic void delete(String workObjectId)
DomainObjectProviderDeletes the entity with the given id .
delete in interface DomainObjectProviderdelete in class BaseDomainObjectProviderworkObjectId - the external id of the entity to deleteCopyright © 2010 - 2019 edorasware ag. All Rights Reserved.