public interface DomainObjectService<T extends EntityId,D extends EntityId,P extends Id,E extends DomainObject<T,D,P>,Q extends DomainObjectQuery,W extends DomainObjectModification<T,D,P,E,?>,WB extends DomainObjectModification.DomainObjectModificationBuilder<T,D,P,E,?,W,WB>,U extends DomainObjectUpdate<W>,UB extends DomainObjectUpdate.Builder<E,W,WB,U,UB>> extends EntityService<T,P,E,Q>
Modifier and Type | Method and Description |
---|---|
E |
apply(U update,
String description)
Applies an entity update.
|
WB |
createModificationBuilder()
Creates a new type-safe modification builder.
|
WB |
createModificationBuilder(W modification)
Creates a new type-safe modification builder based on the given template modification.
|
UB |
createReadableUpdateBuilder(GlobalId globalId)
Creates a new type-safe readable update builder for the given entity.
|
UB |
createUpdateBuilder(GlobalId globalId)
Creates a new type-safe update builder for the given entity.
|
void |
deleteVariable(GlobalId globalId,
String name,
String description)
Deletes the variable with the given
name from the entity with given globalId . |
<V> void |
deleteVariable(GlobalId globalId,
VariableName<V,?> name,
String description)
Deletes the variable with the given
name from the entity with given globalId . |
void |
deleteVariable(T id,
String name,
String description)
Deletes the variable with the given
name from the entity with given id . |
<V> void |
deleteVariable(T id,
VariableName<V,?> name,
String description)
Deletes the variable with the given
name from the entity with given id . |
void |
deleteVariables(GlobalId globalId,
Collection<String> variables,
String description)
Deletes the variables from the collection of variable
names from the entity with given globalId . |
void |
deleteVariables(T entityId,
Collection<String> variables,
String description)
Deletes the variables from the collection of variable
names from the entity with given entityId . |
void |
putVariable(GlobalId globalId,
String name,
Object value,
String description)
Associates the given variable with the specified entity.
|
<V> void |
putVariable(GlobalId globalId,
VariableName<V,?> name,
V value,
String description)
Associates the given variable with the specified entity.
|
void |
putVariable(T id,
String name,
Object value,
String description)
Associates the given variable with the specified entity.
|
<V> void |
putVariable(T id,
VariableName<V,?> name,
V value,
String description)
Associates the given variable with the specified entity.
|
void |
putVariables(GlobalId globalId,
Map<String,Object> variables,
String description)
Associates the given variables with the specified entity.
|
void |
putVariables(GlobalId globalId,
VariableMap variables,
String description)
Associates the given variables with the specified entity.
|
void |
putVariables(T id,
Map<String,Object> variables,
String description)
Associates the given variables with the specified entity.
|
void |
putVariables(T id,
VariableMap variables,
String description)
Associates the given variables with the specified entity.
|
void |
setDescription(GlobalId globalId,
String description,
String comment)
Sets the description of the specified entity.
|
void |
setDescription(T id,
String description,
String comment)
Sets the description of the specified entity.
|
void |
setName(GlobalId globalId,
String name,
String description)
Sets the name of the specified entity.
|
void |
setName(T id,
String name,
String description)
Sets the name of the specified entity.
|
void |
setState(GlobalId globalId,
State state,
String description)
Sets the state of the specified entity.
|
void |
setState(T id,
State state,
String description)
Sets the state of the specified entity.
|
void |
setSubState(GlobalId globalId,
State subState,
String description)
Sets the sub state of the specified entity.
|
void |
setSubState(T id,
State subState,
String description)
Sets the sub state of the specified entity.
|
T |
startEntity(D definitionId,
Map<String,Object> variables)
Starts a new entity based on the definition with the given id.
|
T |
startEntity(D definitionId,
String name,
Object value)
Starts a new entity based on the definition with the given id.
|
T |
startEntity(D definitionId,
VariableMap variables)
Starts a new entity based on the definition with the given id.
|
<V> T |
startEntity(D definitionId,
VariableName<V,?> name,
V value)
Starts a new entity based on the definition with the given id.
|
addEntity, addEntityGeneric, countEntities, countEntities, countEntities, countEntities, findEntities, findEntities, findEntities, findEntities, findEntity, findEntity, findEntity, findEntity, findEntityByExternalId, findEntityByExternalId, findEntityByGlobalId, findEntityByGlobalId, findEntityById, findEntityById, findExternalIdByGlobalId, findExternalIdByGlobalId, findExternalIdById, findExternalIdById, findGlobalIdByExternalId, findGlobalIdByExternalId, findIdByExternalId, findIdByExternalId, getEntityByGlobalId, getEntityByGlobalId, getEntityById, getEntityById
void setName(T id, String name, String description)
id
- the id of the entity for which to set the namename
- the name to set on the entitydescription
- transient meta information regarding the reason to set the name of the entityvoid setName(GlobalId globalId, String name, String description)
globalId
- the global id of the entity for which to set the namename
- the name to set on the entitydescription
- transient meta information regarding the reason to set the name of the entityvoid setDescription(T id, String description, String comment)
id
- the id of the entity for which to set the descriptiondescription
- the description to set on the entitycomment
- transient meta information regarding the reason to set the description of the entityvoid setDescription(GlobalId globalId, String description, String comment)
globalId
- the global id of the entity for which to set the descriptiondescription
- the description to set on the entitycomment
- transient meta information regarding the reason to set the description of the entityvoid setState(T id, State state, String description)
id
- the id of the entity for which to set the statestate
- the state to set on the entitydescription
- transient meta information regarding the reason to set the state of the entityvoid setState(GlobalId globalId, State state, String description)
globalId
- the global id of the entity for which to set the statestate
- the state to set on the entitydescription
- transient meta information regarding the reason to set the state of the entityvoid setSubState(T id, State subState, String description)
id
- the id of the entity for which to set the sub statesubState
- the sub state to set on the entitydescription
- transient meta information regarding the reason to set the sub state of the entityvoid setSubState(GlobalId globalId, State subState, String description)
globalId
- the global id of the entity for which to set the sub statesubState
- the sub state to set on the entitydescription
- transient meta information regarding the reason to set the sub state of the entityvoid putVariable(T id, String name, Object value, String description)
id
- the id of the entity for which to associate the variable withname
- the name of the variable to associate with the entityvalue
- the value of the variable to associate with the entitydescription
- transient meta information regarding the reason to associate variable with the entityvoid putVariable(GlobalId globalId, String name, Object value, String description)
globalId
- the global id of the entity to be updatedname
- the name of the variable to associate with the entityvalue
- the value of the variable to associate with the entitydescription
- transient meta information regarding the reason to associate variable with the entity<V> void putVariable(T id, VariableName<V,?> name, V value, String description)
V
- the expected transient type of the variableid
- the id of the entity for which to associate the variable withname
- the name of the variable to associate with the entityvalue
- the value of the variable to associate with the entitydescription
- transient meta information regarding the reason to associate variable with the entity<V> void putVariable(GlobalId globalId, VariableName<V,?> name, V value, String description)
V
- the expected transient type of the variableglobalId
- the global id of the entity to be updatedname
- the name of the variable to associate with the entityvalue
- the value of the variable to associate with the entitydescription
- transient meta information regarding the reason to associate variable with the entityvoid putVariables(T id, Map<String,Object> variables, String description)
id
- the id of the entity for which to associate the variables withvariables
- the variables to associate with the entitydescription
- transient meta information regarding the reason to associate variables with the entityvoid putVariables(GlobalId globalId, Map<String,Object> variables, String description)
globalId
- the global id of the entity to be updatedvariables
- the variables to associate with the entitydescription
- transient meta information regarding the reason to associate variables with the entityvoid putVariables(T id, VariableMap variables, String description)
id
- the id of the entity for which to associate the variables withvariables
- the variables to associate with the entitydescription
- transient meta information regarding the reason to associate variables with the entityvoid putVariables(GlobalId globalId, VariableMap variables, String description)
globalId
- the global id of the entity to be updatedvariables
- the variables to associate with the entitydescription
- transient meta information regarding the reason to associate variables with the entityvoid deleteVariable(T id, String name, String description)
name
from the entity with given id
. In the case when variable does not exist no action is taken.id
- the entity id from which variable is deletedname
- the variable namedescription
- transient meta information regarding the reason to delete variable from the entityEntityNotFoundException
- if the given entity cannot be foundvoid deleteVariable(GlobalId globalId, String name, String description)
name
from the entity with given globalId
. In the case when variable does not exist no action is taken.globalId
- the entity globalId from which variable is deletedname
- the variable namedescription
- transient meta information regarding the reason to delete variable from the entityEntityNotFoundException
- if the given entity cannot be found<V> void deleteVariable(T id, VariableName<V,?> name, String description)
name
from the entity with given id
. In the case when variable does not exist no action is taken.id
- the entity globalId from which variable is deletedname
- the variable namedescription
- transient meta information regarding the reason to delete variable from the entityEntityNotFoundException
- if the given entity cannot be found<V> void deleteVariable(GlobalId globalId, VariableName<V,?> name, String description)
name
from the entity with given globalId
. In the case when variable does not exist no action is taken.globalId
- the entity globalId from which variable is deletedname
- the variable namedescription
- transient meta information regarding the reason to delete variable from the entityEntityNotFoundException
- if the given entity cannot be foundvoid deleteVariables(T entityId, Collection<String> variables, String description)
names
from the entity with given entityId
. In the case when variable does not exist no action
is taken.entityId
- the entity id from which variable is deletedvariables
- the collection of variable names to deletedescription
- transient meta information regarding the reason to delete variable from the entityEntityNotFoundException
- if the given entity cannot be foundvoid deleteVariables(GlobalId globalId, Collection<String> variables, String description)
names
from the entity with given globalId
. In the case when variable does not exist no action
is taken.globalId
- the entity globalId from which variable is deletedvariables
- the collection of variable names to deletedescription
- transient meta information regarding the reason to delete variable from the entityEntityNotFoundException
- if the given entity cannot be foundT startEntity(D definitionId, String name, Object value)
definitionId
- the id of the definition for which to start a new entityname
- the name of the variable to build the initial data set of the entity that is startedvalue
- the value of the variable to build the initial data set of the entity that is startedEntityNotFoundException
- if the given definition cannot be found<V> T startEntity(D definitionId, VariableName<V,?> name, V value)
V
- the expected transient type of the variabledefinitionId
- the id of the definition for which to start a new entityname
- the name of the variable to build the initial data set of the entity that is startedvalue
- the value of the variable to build the initial data set of the entity that is startedEntityNotFoundException
- if the given definition cannot be foundT startEntity(D definitionId, Map<String,Object> variables)
definitionId
- the id of the definition for which to start a new entityvariables
- the variables to build the initial data set of the entity that is startedEntityNotFoundException
- if the given definition cannot be foundT startEntity(D definitionId, VariableMap variables)
definitionId
- the id of the definition for which to start a new entityvariables
- the variables to build the initial data set of the entity that is startedEntityNotFoundException
- if the given definition cannot be foundWB createModificationBuilder()
WB createModificationBuilder(W modification)
modification
- the template modificationUB createUpdateBuilder(GlobalId globalId)
globalId
- the global idUB createReadableUpdateBuilder(GlobalId globalId)
globalId
- the global idCopyright © 2010 - 2018 edorasware ag. All Rights Reserved.