BrightSide Workbench Full Report + Source Code
org.turro.dossier.entity.IssuePredecessor Class Reference
Inheritance diagram for org.turro.dossier.entity.IssuePredecessor:
Collaboration diagram for org.turro.dossier.entity.IssuePredecessor:

Public Member Functions

Long getId ()
 
void setId (Long id)
 
Date getCreation ()
 
void setCreation (Date creation)
 
Issue getSource ()
 
void setSource (Issue source)
 
Issue getTarget ()
 
void setTarget (Issue target)
 
IssuePredecessorType getType ()
 
void setType (IssuePredecessorType type)
 
String getFullDescription ()
 
Issue getCounterFor (Issue issue)
 
String getDescriptionFor (Issue issue)
 

Detailed Description

Author
Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g

Definition at line 37 of file IssuePredecessor.java.

Member Function Documentation

◆ getCounterFor()

Issue org.turro.dossier.entity.IssuePredecessor.getCounterFor ( Issue  issue)

Definition at line 101 of file IssuePredecessor.java.

101  {
102  if(Objects.equals(source.getId(), issue.getId())) {
103  return target;
104  } else if(Objects.equals(target.getId(), issue.getId())) {
105  return source;
106  }
107  return null;
108  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getCreation()

Date org.turro.dossier.entity.IssuePredecessor.getCreation ( )

Definition at line 63 of file IssuePredecessor.java.

63  {
64  return creation;
65  }
Here is the caller graph for this function:

◆ getDescriptionFor()

String org.turro.dossier.entity.IssuePredecessor.getDescriptionFor ( Issue  issue)

Definition at line 110 of file IssuePredecessor.java.

110  {
111  if(Objects.equals(source.getId(), issue.getId())) {
112  if(type.equals(IssuePredecessorType.START_WHEN_ENDS)) {
113  return "starts when this issue is resolved";
114  } else if(type.equals(IssuePredecessorType.START_WHEN_STARTS)) {
115  return "and this issue start together";
116  }
117  } else if(Objects.equals(target.getId(), issue.getId())) {
118  if(type.equals(IssuePredecessorType.START_WHEN_ENDS)) {
119  return "must be resolved to start this issue";
120  } else if(type.equals(IssuePredecessorType.START_WHEN_STARTS)) {
121  return "and this issue start together";
122  }
123  }
124  return null;
125  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getFullDescription()

String org.turro.dossier.entity.IssuePredecessor.getFullDescription ( )

Definition at line 95 of file IssuePredecessor.java.

95  {
96  return "#" + target.getId() + " " + target.getDescription() + " " +
97  I_.byKey(type.toString()) +
98  " #" + source.getId() + " " + source.getDescription();
99  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getId()

Long org.turro.dossier.entity.IssuePredecessor.getId ( )

Definition at line 55 of file IssuePredecessor.java.

55  {
56  return id;
57  }

◆ getSource()

Issue org.turro.dossier.entity.IssuePredecessor.getSource ( )

Definition at line 71 of file IssuePredecessor.java.

71  {
72  return source;
73  }

◆ getTarget()

Issue org.turro.dossier.entity.IssuePredecessor.getTarget ( )

Definition at line 79 of file IssuePredecessor.java.

79  {
80  return target;
81  }

◆ getType()

IssuePredecessorType org.turro.dossier.entity.IssuePredecessor.getType ( )

Definition at line 87 of file IssuePredecessor.java.

87  {
88  return type;
89  }

◆ setCreation()

void org.turro.dossier.entity.IssuePredecessor.setCreation ( Date  creation)

Definition at line 67 of file IssuePredecessor.java.

67  {
68  this.creation = creation;
69  }
Here is the caller graph for this function:

◆ setId()

void org.turro.dossier.entity.IssuePredecessor.setId ( Long  id)

Definition at line 59 of file IssuePredecessor.java.

59  {
60  this.id = id;
61  }

◆ setSource()

void org.turro.dossier.entity.IssuePredecessor.setSource ( Issue  source)

Definition at line 75 of file IssuePredecessor.java.

75  {
76  this.source = source;
77  }
Here is the caller graph for this function:

◆ setTarget()

void org.turro.dossier.entity.IssuePredecessor.setTarget ( Issue  target)

Definition at line 83 of file IssuePredecessor.java.

83  {
84  this.target = target;
85  }
Here is the caller graph for this function:

◆ setType()

void org.turro.dossier.entity.IssuePredecessor.setType ( IssuePredecessorType  type)

Definition at line 91 of file IssuePredecessor.java.

91  {
92  this.type = type;
93  }
Here is the caller graph for this function:

The documentation for this class was generated from the following file: