public class WorkItemRelations extends Object
Class that describes the relations for a given work item.
Modifier and Type | Method and Description |
---|---|
static WorkItemRelations |
from(WorkObject selfWorkObject,
Collection<WorkObject> relatedWorkObjects,
Map<String,Optional<String>> 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,Optional<String>> |
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<String,WorkItem> |
getWorkItems()
The work items that are part of the relations.
|
String |
toString() |
public com.google.common.collect.ImmutableMap<String,WorkItem> getWorkItems()
The work items that are part of the relations.
public com.google.common.collect.ImmutableMap<String,Optional<String>> 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.
public static WorkItemRelations from(WorkObject selfWorkObject, Collection<WorkObject> relatedWorkObjects, Map<String,Optional<String>> relations)
Creates a new 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 - 2019 edorasware ag. All Rights Reserved.