public final class WorkItemRelations extends Object
Modifier and Type | Method and Description |
---|---|
static WorkItemRelations |
from(com.edorasware.commons.core.entity.WorkObject<?,?,?> selfWorkObject,
Collection<com.edorasware.commons.core.entity.WorkObject<?,?,?>> relatedWorkObjects,
Map<String,com.google.common.base.Optional<com.edorasware.commons.core.entity.WorkObjectId>> relations)
Creates a new
WorkItemRelations from the given work object, its related work objects, and the relations between them. |
com.google.common.collect.ImmutableMap<String,com.google.common.base.Optional<com.edorasware.commons.core.entity.WorkObjectId>> |
getRelations()
The work item relations as a mapping of keywords that specify the types of relations to the ids of the work items that form a given relationship.
|
com.google.common.collect.ImmutableMap<com.edorasware.commons.core.entity.WorkObjectId,WorkItem> |
getWorkItems()
The work items that are part of the relations.
|
String |
toString() |
public com.google.common.collect.ImmutableMap<com.edorasware.commons.core.entity.WorkObjectId,WorkItem> getWorkItems()
public com.google.common.collect.ImmutableMap<String,com.google.common.base.Optional<com.edorasware.commons.core.entity.WorkObjectId>> getRelations()
public static WorkItemRelations from(com.edorasware.commons.core.entity.WorkObject<?,?,?> selfWorkObject, Collection<com.edorasware.commons.core.entity.WorkObject<?,?,?>> relatedWorkObjects, Map<String,com.google.common.base.Optional<com.edorasware.commons.core.entity.WorkObjectId>> relations)
WorkItemRelations
from the given work object, its related work objects, and the relations between them.selfWorkObject
- the work object for which the relations are describedrelatedWorkObjects
- the work objects with which the work object is relatedrelations
- the relations between the work object and the other work objectsCopyright © 2010 - 2017 edorasware ag. All Rights Reserved.