public interface AnyWorkObjectDefinitionService extends EntityService<AnyWorkObjectDefinition>
The service to access the concrete work object definition management functionality.
Modifier and Type | Method and Description |
---|---|
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.
|
long |
countWorkObjectDefinitions(Query query)
Counts the concrete work object definitions that match the given query.
|
long |
countWorkObjectDefinitions(Query query,
SearchScope searchScope)
Counts the concrete work object definitions that match the given query in given scope.
|
void |
deployWorkObjectDefinitions(List<org.springframework.core.io.Resource> resources,
String workObjectProviderId)
Deploys the given resources describing concrete work object definitions as one deployment unit.
|
String |
findParentId(AnyWorkObjectDefinition definition)
Returns the parent work object.
|
String |
findParentIdByType(AnyWorkObjectDefinition definition,
String requiredType)
Returns the closest parent work object of the given type for a given work object.
|
String |
findTopMostParentIdByType(AnyWorkObjectDefinition definition,
String requiredType,
boolean includeSelf)
Returns the top-most parent work object of the given type for a given work object.
|
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 |
findWorkObjectDefinition(Query query)
Finds the concrete work object definition that matches the given query.
|
AnyWorkObjectDefinition |
findWorkObjectDefinition(Query query,
SearchScope searchScope)
Finds the concrete work object definition that matches the given query in given scope.
|
AnyWorkObjectDefinition |
findWorkObjectDefinitionByExternalId(String externalId)
Finds the concrete work object definition with the given external id.
|
AnyWorkObjectDefinition |
findWorkObjectDefinitionByExternalId(String externalId,
SearchScope searchScope)
Finds the concrete work object definition with the given external id in the given scope.
|
AnyWorkObjectDefinition |
findWorkObjectDefinitionById(String id)
Finds the concrete work object definition with the given definition id.
|
AnyWorkObjectDefinition |
findWorkObjectDefinitionById(String id,
SearchScope searchScope)
Finds the concrete work object definition with the given concrete work object definition id in the 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.
|
List<AnyWorkObjectDefinition> |
findWorkObjectDefinitions(Query query)
Finds the concrete work object definitions that match the given query.
|
List<AnyWorkObjectDefinition> |
findWorkObjectDefinitions(Query query,
SearchScope searchScope)
Finds the concrete work object definitions that match the given query in given scope.
|
String |
getRootId(AnyWorkObjectDefinition definition)
Returns the root work object ID for a given work object.
|
AnyWorkObjectDefinition |
getWorkObjectDefinitionById(String id)
Finds the work object definition with the given work object definition id.
|
AnyWorkObjectDefinition |
getWorkObjectDefinitionById(String id,
SearchScope searchScope)
Finds the work object definition with the given work object definition id in the given scope.
|
countEntities, countEntities, countEntities, countEntities, create, create, findEntities, findEntities, findEntities, findEntities, findEntity, findEntity, findEntity, findEntity, findEntityByExternalId, findEntityByExternalId, findEntityByGlobalId, findEntityByGlobalId, findEntityById, findEntityById, findIdByExternalId, findIdByExternalId, getEntityByGlobalId, getEntityByGlobalId, getEntityById, getEntityById
AnyWorkObjectDefinition getWorkObjectDefinitionById(String id)
Finds the work object definition with the given work object definition id. If no work object definition matches the given id, an exception is thrown.
id
- the id of the work object definition to findEntityNotFoundException
- if work object definition cannot be foundAnyWorkObjectDefinition getWorkObjectDefinitionById(String id, SearchScope searchScope)
Finds the work object definition with the given work object definition id in the given scope. If no work object definition matches the given id, an exception is thrown.
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(String id)
Finds the concrete work object definition with the given definition id. If no concrete work object definition matches the given id, null is returned.
id
- the id of the concrete work object definition to findAnyWorkObjectDefinition findWorkObjectDefinitionById(String id, SearchScope searchScope)
Finds the concrete work object definition with the given concrete work object definition id in the given scope. If no concrete work object definition matches the given id, null is returned.
id
- the id of the concrete work object definition to findsearchScope
- the scope in which to search for the concrete work object definitionAnyWorkObjectDefinition findWorkObjectDefinitionByExternalId(String externalId)
Finds the concrete work object definition with the given external id. If no concrete work object definition matches the given external id, null is returned.
externalId
- the external id of the concrete work object definition to findAnyWorkObjectDefinition findWorkObjectDefinitionByExternalId(String externalId, SearchScope searchScope)
Finds the concrete work object definition with the given external id in the given scope. If no concrete work object definition matches the given external id, null is returned.
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)
Finds the concrete work object definition that matches the query with the given predicate. If no concrete work object definition matches the query with the given predicate, null is returned. If more than one concrete work object definition matches the query with the predicate, an exception is thrown. <p> 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)
Finds the concrete work object definition that matches the query with the given predicate in given scope. If no concrete work object definition matches the query with the given predicate in given scope, null is returned. If more than one concrete work object definition matches the query with the predicate in given scope, an exception is thrown. <p> 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)
Finds the concrete work object definitions that match the query with the given predicate. If no concrete work object definition matches the query with the given predicate, an empty list is returned. <p> 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)
Finds the concrete work object definitions that match the query with the given predicate in given scope. If no concrete work object definition matches the query with the given predicate in given scope, an empty list is returned. <p> 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)
Counts the concrete work objects that match the query with the given predicate.
anyWorkObjectDefinitionPredicate
- the predicate to apply when executing the querylong countWorkObjectDefinitions(Predicate anyWorkObjectDefinitionPredicate, SearchScope searchScope)
Counts the concrete work objects that match the query with the given predicate in given scope.
anyWorkObjectDefinitionPredicate
- the predicate to apply when executing the querysearchScope
- the scope in which to count number of concrete work object definitionsAnyWorkObjectDefinition findWorkObjectDefinition(Query query)
Finds the concrete work object definition that matches the given query. If no concrete work object definition matches the given query, null is returned. If more than one concrete work object definition matches the query, an exception is thrown.
query
- the query to executeAnyWorkObjectDefinition findWorkObjectDefinition(Query query, SearchScope searchScope)
Finds the concrete work object definition that matches the given query in given scope. If no concrete work object definition matches the given query in given scope, null is returned. If more than one concrete work object definition matches the query, an exception is thrown.
query
- the query to executesearchScope
- the scope in which to search for the concrete work object definitionList<AnyWorkObjectDefinition> findWorkObjectDefinitions(Query query)
Finds the concrete work object definitions that match the given query. If no concrete work object definition matches the given query, an empty list is returned.
query
- the query to executeList<AnyWorkObjectDefinition> findWorkObjectDefinitions(Query query, SearchScope searchScope)
Finds the concrete work object definitions that match the given query in given scope. If no concrete work object definition matches the given query in given scope, an empty list is returned.
query
- the query to executesearchScope
- the scope in which to search for the concrete work object definitionslong countWorkObjectDefinitions(Query query)
Counts the concrete work object definitions that match the given query.
query
- the query to executelong countWorkObjectDefinitions(Query query, SearchScope searchScope)
Counts the concrete work object definitions that match the given query in given scope.
query
- the query to executesearchScope
- the scope in which to count number of concrete work object definitionsvoid deployWorkObjectDefinitions(List<org.springframework.core.io.Resource> resources, String workObjectProviderId)
Deploys the given resources describing concrete work object definitions as one deployment unit.
resources
- the resources to deploy, typically concrete work object definitionsworkObjectProviderId
- the provider responsible to execute the deploymentString findParentId(AnyWorkObjectDefinition definition)
Returns the parent work object.
null
if the work object has no parentString findParentIdByType(AnyWorkObjectDefinition definition, String requiredType)
Returns the closest parent work object of the given type for a given work object.
definition
- the work object definitionrequiredType
- the required work object typenull
if there was no matchString findTopMostParentIdByType(AnyWorkObjectDefinition definition, String requiredType, boolean includeSelf)
Returns the top-most parent work object of the given type for a given work object.
definition
- the work object definitionrequiredType
- the required work object typeincludeSelf
- true
if the starting work object should be included in the searchnull
if there was no matchString getRootId(AnyWorkObjectDefinition definition)
Returns the root work object ID for a given work object.
definition
- the work object definitionCopyright © 2010 - 2019 edorasware ag. All Rights Reserved.