Constructor and Description |
---|
AppHelper(com.edorasware.commons.core.any.AnyWorkObjectService anyWorkObjectService,
com.edorasware.commons.core.any.AnyWorkObjectDefinitionService anyWorkObjectDefinitionService) |
Modifier and Type | Method and Description |
---|---|
com.edorasware.commons.core.entity.WorkObjectId |
getAppId(com.edorasware.commons.core.entity.WorkObject<?,?,?> workObject)
Returns the id of the app work item which is the root work object of the given work object.
|
com.edorasware.commons.core.entity.WorkObjectId |
getAppWorkObjectId(com.edorasware.commons.core.entity.WorkObjectDefinitionId workObjectDefinitionId)
Returns the ID of the app work object corresponding to the given definition ID.
|
public AppHelper(com.edorasware.commons.core.any.AnyWorkObjectService anyWorkObjectService, com.edorasware.commons.core.any.AnyWorkObjectDefinitionService anyWorkObjectDefinitionService)
public com.edorasware.commons.core.entity.WorkObjectId getAppId(com.edorasware.commons.core.entity.WorkObject<?,?,?> workObject)
workObject
- the work object for which to get the app idIllegalArgumentException
- if the definition id of the given work object is not set or undefinedIllegalStateException
- if the definitions or the app work item are not foundpublic com.edorasware.commons.core.entity.WorkObjectId getAppWorkObjectId(com.edorasware.commons.core.entity.WorkObjectDefinitionId workObjectDefinitionId)
workObjectDefinitionId
- the work object definition IDCopyright © 2010 - 2017 edorasware ag. All Rights Reserved.