BrightSide Workbench Full Report + Source Code
org.turro.dossier.entity.IssueStatus Enum Reference

Public Member Functions

boolean isFinished ()
 
boolean isSeen ()
 
boolean isStandBy ()
 
boolean isWorking ()
 
String color (IssueResolution resolution)
 
String label (IssueResolution resolution)
 

Static Public Member Functions

static List< IssueStatusselectBy (Boolean seen, Boolean working, Boolean standBy, Boolean finished)
 

Public Attributes

 STATUS_NEW =(false, false, true, false)
 
 STATUS_INCOMPLETE =(true, false, true, false)
 
 STATUS_STARTED =(true, true, false, false)
 
 STATUS_REOPENED =(true, true, false, false)
 
 STATUS_REUNION =(true, false, true, false)
 
 STATUS_FROZEN =(true, false, true, false)
 
 STATUS_RESOLVED =(true, false, false, true)
 
 STATUS_VERIFIED =(true, false, false, true)
 
 STATUS_CLOSED =(true, false, false, true)
 
final boolean working
 
final boolean standBy
 
final boolean finished
 

Detailed Description

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

Definition at line 29 of file IssueStatus.java.

Member Function Documentation

◆ color()

String org.turro.dossier.entity.IssueStatus.color ( IssueResolution  resolution)

Definition at line 66 of file IssueStatus.java.

66  {
67  return switch (this) {
68  case STATUS_NEW -> "olive";
69  case STATUS_INCOMPLETE -> "orange";
70  case STATUS_STARTED -> "yellow";
71  case STATUS_REOPENED -> "yellow";
72  case STATUS_REUNION -> "brown";
73  case STATUS_FROZEN -> "grey";
74  case STATUS_RESOLVED, STATUS_VERIFIED, STATUS_CLOSED -> switch(resolution) {
75  case RESOLUTION_NONE -> "olive";
76  case RESOLUTION_FIXED -> "green";
77  case RESOLUTION_WORKSFORME -> "yellow";
78  case RESOLUTION_DUPLICATED, RESOLUTION_MOVED -> "teal";
79  case RESOLUTION_WONTFIX, RESOLUTION_INVALID -> "red";
80  default -> "";
81  };
82  default -> "";
83  };
84  }

◆ isFinished()

boolean org.turro.dossier.entity.IssueStatus.isFinished ( )

Definition at line 50 of file IssueStatus.java.

50  {
51  return finished;
52  }
Here is the caller graph for this function:

◆ isSeen()

boolean org.turro.dossier.entity.IssueStatus.isSeen ( )

Definition at line 54 of file IssueStatus.java.

54  {
55  return seen;
56  }
Here is the caller graph for this function:

◆ isStandBy()

boolean org.turro.dossier.entity.IssueStatus.isStandBy ( )

Definition at line 58 of file IssueStatus.java.

58  {
59  return standBy;
60  }
Here is the caller graph for this function:

◆ isWorking()

boolean org.turro.dossier.entity.IssueStatus.isWorking ( )

Definition at line 62 of file IssueStatus.java.

62  {
63  return working;
64  }
Here is the caller graph for this function:

◆ label()

String org.turro.dossier.entity.IssueStatus.label ( IssueResolution  resolution)

Definition at line 86 of file IssueStatus.java.

86  {
87  return I_.byKey(this.toString()) + (!this.isFinished() ? "" :
88  (" - " + I_.byKey(resolution.toString())));
89  }
Here is the call graph for this function:

◆ selectBy()

static List<IssueStatus> org.turro.dossier.entity.IssueStatus.selectBy ( Boolean  seen,
Boolean  working,
Boolean  standBy,
Boolean  finished 
)
static

Definition at line 93 of file IssueStatus.java.

93  {
94  List<IssueStatus> list= new ArrayList<>();
95  for(IssueStatus status : IssueStatus.values()) {
96  if((seen == null || Objects.equals(status.isSeen(), seen)) &&
97  (working == null || Objects.equals(status.isWorking(), working)) &&
98  (standBy == null || Objects.equals(status.isStandBy(), standBy)) &&
99  (finished == null || Objects.equals(status.isFinished(), finished))) {
100  list.add(status);
101  }
102  }
103  return list;
104  }
Here is the caller graph for this function:

Member Data Documentation

◆ finished

final boolean org.turro.dossier.entity.IssueStatus.finished

Definition at line 41 of file IssueStatus.java.

◆ standBy

final boolean org.turro.dossier.entity.IssueStatus.standBy

Definition at line 41 of file IssueStatus.java.

◆ STATUS_CLOSED

org.turro.dossier.entity.IssueStatus.STATUS_CLOSED =(true, false, false, true)

Definition at line 39 of file IssueStatus.java.

◆ STATUS_FROZEN

org.turro.dossier.entity.IssueStatus.STATUS_FROZEN =(true, false, true, false)

Definition at line 36 of file IssueStatus.java.

◆ STATUS_INCOMPLETE

org.turro.dossier.entity.IssueStatus.STATUS_INCOMPLETE =(true, false, true, false)

Definition at line 32 of file IssueStatus.java.

◆ STATUS_NEW

org.turro.dossier.entity.IssueStatus.STATUS_NEW =(false, false, true, false)

Definition at line 31 of file IssueStatus.java.

◆ STATUS_REOPENED

org.turro.dossier.entity.IssueStatus.STATUS_REOPENED =(true, true, false, false)

Definition at line 34 of file IssueStatus.java.

◆ STATUS_RESOLVED

org.turro.dossier.entity.IssueStatus.STATUS_RESOLVED =(true, false, false, true)

Definition at line 37 of file IssueStatus.java.

◆ STATUS_REUNION

org.turro.dossier.entity.IssueStatus.STATUS_REUNION =(true, false, true, false)

Definition at line 35 of file IssueStatus.java.

◆ STATUS_STARTED

org.turro.dossier.entity.IssueStatus.STATUS_STARTED =(true, true, false, false)

Definition at line 33 of file IssueStatus.java.

◆ STATUS_VERIFIED

org.turro.dossier.entity.IssueStatus.STATUS_VERIFIED =(true, false, false, true)

Definition at line 38 of file IssueStatus.java.

◆ working

final boolean org.turro.dossier.entity.IssueStatus.working

Definition at line 41 of file IssueStatus.java.


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