public interface AnyWorkObjectDefinitionService extends WorkObjectDefinitionService<WorkObjectDefinitionId,AnyWorkObjectProviderId,AnyWorkObjectDefinition,AnyWorkObjectDefinitionQuery>
Modifier and Type | Method and Description |
---|---|
WorkObjectDefinitionId |
addWorkObjectDefinition(AnyWorkObjectDefinition definition,
String description)
Adds the given ad-hoc concrete work object definition with no parent applied.
|
WorkObjectDefinitionId |
addWorkObjectDefinition(AnyWorkObjectDefinition definition,
WorkObjectDefinitionId parentId,
String description)
Adds the given ad-hoc concrete work object definition under the given parent.
|
long |
countWorkObjectDefinitions(AnyWorkObjectDefinitionQuery query)
Counts the concrete work object definitions that match the given query.
|
long |
countWorkObjectDefinitions(AnyWorkObjectDefinitionQuery query,
SearchScope searchScope)
Counts the concrete work object definitions that match the given query in given scope.
|
long |
countWorkObjectDefinitions(Predicate anyWorkObjectDefinitionPredicate)
Counts the concrete work objects that match the query with the given predicate.
|
long |
countWorkObjectDefinitions(Predicate anyWorkObjectDefinitionPredicate,
SearchScope searchScope)
Counts the concrete work objects that match the query with the given predicate in given scope.
|
void |
deployWorkObjectDefinitions(List<org.springframework.core.io.Resource> resources,
AnyWorkObjectProviderId workObjectProviderId)
Deploys the given resources describing concrete work object definitions as one deployment unit.
|
AnyWorkObjectDefinition |
findWorkObjectDefinition(AnyWorkObjectDefinitionQuery query)
Finds the concrete work object definition that matches the given query.
|
AnyWorkObjectDefinition |
findWorkObjectDefinition(AnyWorkObjectDefinitionQuery query,
SearchScope searchScope)
Finds the concrete work object definition that matches the given query in given scope.
|
AnyWorkObjectDefinition |
findWorkObjectDefinition(Predicate anyWorkObjectDefinitionPredicate)
Finds the concrete work object definition that matches the query with the given predicate.
|
AnyWorkObjectDefinition |
findWorkObjectDefinition(Predicate anyWorkObjectDefinitionPredicate,
SearchScope searchScope)
Finds the concrete work object definition that matches the query with the given predicate in given scope.
|
AnyWorkObjectDefinition |
findWorkObjectDefinitionByExternalId(WorkObjectDefinitionId externalId)
Finds the concrete work object definition with the given external id.
|
AnyWorkObjectDefinition |
findWorkObjectDefinitionByExternalId(WorkObjectDefinitionId externalId,
SearchScope searchScope)
Finds the concrete work object definition with the given external id in the given scope.
|
AnyWorkObjectDefinition |
findWorkObjectDefinitionById(WorkObjectDefinitionId id)
Finds the concrete work object definition with the given definition id.
|
AnyWorkObjectDefinition |
findWorkObjectDefinitionById(WorkObjectDefinitionId id,
SearchScope searchScope)
Finds the concrete work object definition with the given concrete work object definition id in the given scope.
|
List<AnyWorkObjectDefinition> |
findWorkObjectDefinitions(AnyWorkObjectDefinitionQuery query)
Finds the concrete work object definitions that match the given query.
|
List<AnyWorkObjectDefinition> |
findWorkObjectDefinitions(AnyWorkObjectDefinitionQuery query,
SearchScope searchScope)
Finds the concrete work object definitions that match the given query in given scope.
|
List<AnyWorkObjectDefinition> |
findWorkObjectDefinitions(Predicate anyWorkObjectDefinitionPredicate)
Finds the concrete work object definitions that match the query with the given predicate.
|
List<AnyWorkObjectDefinition> |
findWorkObjectDefinitions(Predicate anyWorkObjectDefinitionPredicate,
SearchScope searchScope)
Finds the concrete work object definitions that match the query with the given predicate in given scope.
|
AnyWorkObjectDefinition |
getWorkObjectDefinitionById(WorkObjectDefinitionId id)
Finds the work object definition with the given work object definition id.
|
AnyWorkObjectDefinition |
getWorkObjectDefinitionById(WorkObjectDefinitionId id,
SearchScope searchScope)
Finds the work object definition with the given work object definition id in the given scope.
|
addEntity
deployEntities
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
AnyWorkObjectDefinition getWorkObjectDefinitionById(WorkObjectDefinitionId id)
id
- the id of the work object definition to findEntityNotFoundException
- if work object definition cannot be foundAnyWorkObjectDefinition getWorkObjectDefinitionById(WorkObjectDefinitionId id, SearchScope searchScope)
id
- the id of the work object definition to findsearchScope
- the scope in which to search for the work object definitionEntityNotFoundException
- if work object definition cannot be foundAnyWorkObjectDefinition findWorkObjectDefinitionById(WorkObjectDefinitionId id)
id
- the id of the concrete work object definition to findAnyWorkObjectDefinition findWorkObjectDefinitionById(WorkObjectDefinitionId id, SearchScope searchScope)
id
- the id of the concrete work object definition to findsearchScope
- the scope in which to search for the concrete work object definitionAnyWorkObjectDefinition findWorkObjectDefinitionByExternalId(WorkObjectDefinitionId externalId)
externalId
- the external id of the concrete work object definition to findAnyWorkObjectDefinition findWorkObjectDefinitionByExternalId(WorkObjectDefinitionId externalId, SearchScope searchScope)
externalId
- the external id of the concrete work object definition to findsearchScope
- the scope in which to search for the concrete work object definitionAnyWorkObjectDefinition findWorkObjectDefinition(Predicate anyWorkObjectDefinitionPredicate)
Note: No sorting, paging, nor query hints are applied. This can become a potential query performance issue.
anyWorkObjectDefinitionPredicate
- the predicate to apply when executing the queryAnyWorkObjectDefinition findWorkObjectDefinition(Predicate anyWorkObjectDefinitionPredicate, SearchScope searchScope)
Note: No sorting, paging, nor query hints are applied. This can become a potential query performance issue.
anyWorkObjectDefinitionPredicate
- the predicate to apply when executing the querysearchScope
- the scope in which to search for the concrete work object definitionList<AnyWorkObjectDefinition> findWorkObjectDefinitions(Predicate anyWorkObjectDefinitionPredicate)
Note: No sorting, paging, nor query hints are applied. This can become a potential query performance issue.
anyWorkObjectDefinitionPredicate
- the predicate to apply when executing the queryList<AnyWorkObjectDefinition> findWorkObjectDefinitions(Predicate anyWorkObjectDefinitionPredicate, SearchScope searchScope)
Note: No sorting, paging, nor query hints are applied. This can become a potential query performance issue.
anyWorkObjectDefinitionPredicate
- the predicate to apply when executing the querysearchScope
- the scope in which to search for the concrete work object definitionslong countWorkObjectDefinitions(Predicate anyWorkObjectDefinitionPredicate)
anyWorkObjectDefinitionPredicate
- the predicate to apply when executing the querylong countWorkObjectDefinitions(Predicate anyWorkObjectDefinitionPredicate, SearchScope searchScope)
anyWorkObjectDefinitionPredicate
- the predicate to apply when executing the querysearchScope
- the scope in which to count number of concrete work object definitionsAnyWorkObjectDefinition findWorkObjectDefinition(AnyWorkObjectDefinitionQuery query)
query
- the query to executeAnyWorkObjectDefinition findWorkObjectDefinition(AnyWorkObjectDefinitionQuery query, SearchScope searchScope)
query
- the query to executesearchScope
- the scope in which to search for the concrete work object definitionList<AnyWorkObjectDefinition> findWorkObjectDefinitions(AnyWorkObjectDefinitionQuery query)
query
- the query to executeList<AnyWorkObjectDefinition> findWorkObjectDefinitions(AnyWorkObjectDefinitionQuery query, SearchScope searchScope)
query
- the query to executesearchScope
- the scope in which to search for the concrete work object definitionslong countWorkObjectDefinitions(AnyWorkObjectDefinitionQuery query)
query
- the query to executelong countWorkObjectDefinitions(AnyWorkObjectDefinitionQuery query, SearchScope searchScope)
query
- the query to executesearchScope
- the scope in which to count number of concrete work object definitionsWorkObjectDefinitionId addWorkObjectDefinition(AnyWorkObjectDefinition definition, String description)
undefined
, the
concrete work object definition id is generated by the persistence component of the system and guaranteed to be unique. In all other cases, the contributor of the concrete
work object definition needs to ensure that the concrete work object definition's id is unique.definition
- the ad-hoc concrete work object definition to adddescription
- transient meta information regarding the reason to add the ad-hoc concrete work object definitionEntity.getId()
,
Entity.getExternalId()
WorkObjectDefinitionId addWorkObjectDefinition(AnyWorkObjectDefinition definition, WorkObjectDefinitionId parentId, String description)
undefined
, the
concrete work object definition id is generated by the persistence component of the system and guaranteed to be unique. In all other cases, the contributor of the concrete
work object definition needs to ensure that the concrete work object definition's id is unique.definition
- the ad-hoc concrete work object definition to addparentId
- the parent definition under which to add the ad-hoc concrete work object definitiondescription
- transient meta information regarding the reason to add the ad-hoc concrete work object definitionEntity.getId()
,
Entity.getExternalId()
void deployWorkObjectDefinitions(List<org.springframework.core.io.Resource> resources, AnyWorkObjectProviderId workObjectProviderId)
resources
- the resources to deploy, typically concrete work object definitionsworkObjectProviderId
- the provider responsible to execute the deploymentCopyright © 2010 - 2018 edorasware ag. All Rights Reserved.