public class ModelReferenceUtils extends Object
Constructor and Description |
---|
ModelReferenceUtils(com.edorasware.gear.core.generic.GenericWorkObjectService genericWorkObjectService) |
Modifier and Type | Method and Description |
---|---|
com.edorasware.commons.core.entity.WorkObject<?,?,?> |
findWorkObjectForAmbiguousId(String modelReference,
com.edorasware.commons.core.service.entity.SearchScope searchScope,
Set<com.edorasware.commons.core.query.QueryHint> hints)
Finds the model corresponding to the given model ID value, supporting legacy
model references as well as the default global ID.
|
com.edorasware.commons.core.entity.WorkObject<?,?,?> |
getWorkObjectForAmbiguousId(String modelReference,
com.edorasware.commons.core.service.entity.SearchScope searchScope)
Gets the model corresponding to the given model ID value, supporting legacy
model references as well as the default global ID.
|
com.edorasware.commons.core.entity.WorkObject<?,?,?> |
getWorkObjectForAmbiguousId(String modelReference,
com.edorasware.commons.core.service.entity.SearchScope searchScope,
Set<com.edorasware.commons.core.query.QueryHint> hints)
Gets the model corresponding to the given model ID value, supporting legacy
model references as well as the default global ID.
|
@Autowired public ModelReferenceUtils(com.edorasware.gear.core.generic.GenericWorkObjectService genericWorkObjectService)
public com.edorasware.commons.core.entity.WorkObject<?,?,?> getWorkObjectForAmbiguousId(String modelReference, com.edorasware.commons.core.service.entity.SearchScope searchScope)
modelReference
- the model reference valuesearchScope
- the search scopecom.edorasware.commons.core.entity.EntityNotFoundException
- if the model could not be foundpublic com.edorasware.commons.core.entity.WorkObject<?,?,?> getWorkObjectForAmbiguousId(String modelReference, com.edorasware.commons.core.service.entity.SearchScope searchScope, Set<com.edorasware.commons.core.query.QueryHint> hints)
modelReference
- the model reference valuesearchScope
- the search scopehints
- the hints to use to get the work objectcom.edorasware.commons.core.entity.EntityNotFoundException
- if the model could not be foundpublic com.edorasware.commons.core.entity.WorkObject<?,?,?> findWorkObjectForAmbiguousId(String modelReference, com.edorasware.commons.core.service.entity.SearchScope searchScope, Set<com.edorasware.commons.core.query.QueryHint> hints)
modelReference
- the model reference valuesearchScope
- the search scopehints
- the hints to use to get the work objectnull
if the model could not be foundCopyright © 2010 - 2017 edorasware ag. All Rights Reserved.