public class AmbiguousIdHelper extends Object
GlobalId
, WorkObjectId
) Id manipulation.Constructor and Description |
---|
AmbiguousIdHelper(com.edorasware.gear.core.generic.GenericWorkObjectService genericWorkObjectService) |
Modifier and Type | Method and Description |
---|---|
com.edorasware.commons.core.entity.WorkObject<?,?,?> |
findWorkObjectForAmbiguousId(String ambiguousId,
com.edorasware.commons.core.service.entity.SearchScope searchScope)
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.GlobalId |
getGlobalIdByAmbiguousId(String ambiguousId)
Get GlobalId from ambiguousId
|
com.google.common.base.Optional<com.edorasware.commons.core.entity.GlobalId> |
getGlobalIdOptional(String ambiguousId) |
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.WorkObjectId |
getWorkObjectIdByAmbiguousId(String ambiguousId)
Get workObjectId from ambiguousId
|
com.edorasware.commons.core.entity.WorkObject<?,?,?> |
getWorkObjectWithSystemModelVariableByAmbiguousId(String ambiguousId)
Find workobject by ambiguous Id with only CloudVariables.SYSTEM_MODEL variable set
|
public AmbiguousIdHelper(com.edorasware.gear.core.generic.GenericWorkObjectService genericWorkObjectService)
public com.google.common.base.Optional<com.edorasware.commons.core.entity.GlobalId> getGlobalIdOptional(String ambiguousId)
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<?,?,?> findWorkObjectForAmbiguousId(String ambiguousId, com.edorasware.commons.core.service.entity.SearchScope searchScope)
ambiguousId
- the model reference valuesearchScope
- the search scopenull
if the model could not be foundpublic com.edorasware.commons.core.entity.WorkObject<?,?,?> getWorkObjectWithSystemModelVariableByAmbiguousId(String ambiguousId)
ambiguousId
- ambiguous Id of the workobject to retrievecom.edorasware.one.util.OneException
- with IMPORT_FAILED message in the case when workobject was not found.public com.edorasware.commons.core.entity.WorkObjectId getWorkObjectIdByAmbiguousId(String ambiguousId)
ambiguousId
- ambiguous id which is used as a parentWorkObjectId
based on the ambiguousIdpublic com.edorasware.commons.core.entity.GlobalId getGlobalIdByAmbiguousId(String ambiguousId)
ambiguousId
- ambiguous id which is used as a parentGlobalId
based on the ambiguousIdCopyright © 2010 - 2017 edorasware ag. All Rights Reserved.