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

Public Member Functions

 DossierCounter (String allowedCategories, List< String > types, List< String > status, boolean restricted)
 
 DossierCounter (String allowedCategories, String types[], String status[], boolean restricted)
 
Long getPhaseCount (int phase)
 
Long getDossierCount (String category)
 

Detailed Description

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

Definition at line 37 of file DossierCounter.java.

Constructor & Destructor Documentation

◆ DossierCounter() [1/2]

org.turro.dossier.dossier.DossierCounter.DossierCounter ( String  allowedCategories,
List< String >  types,
List< String >  status,
boolean  restricted 
)

Definition at line 45 of file DossierCounter.java.

45  {
46  this.allowedCategories = allowedCategories;
47  this.types = types != null ? types.toArray(new String[0]): new String[0];
48  this.status = status != null ? status.toArray(new String[0]): new String[0];
49  this.restricted = restricted;
50  }

◆ DossierCounter() [2/2]

org.turro.dossier.dossier.DossierCounter.DossierCounter ( String  allowedCategories,
String  types[],
String  status[],
boolean  restricted 
)

Definition at line 52 of file DossierCounter.java.

52  {
53  this.allowedCategories = allowedCategories;
54  this.types = types;
55  this.status = status;
56  this.restricted = restricted;
57  }

Member Function Documentation

◆ getDossierCount()

Long org.turro.dossier.dossier.DossierCounter.getDossierCount ( String  category)

Definition at line 68 of file DossierCounter.java.

68  {
69  Long value = dossiers.get(category);
70  if(value == null) {
71  value = dossierCount(category);
72  dossiers.put(category, value);
73  }
74  return value;
75  }

◆ getPhaseCount()

Long org.turro.dossier.dossier.DossierCounter.getPhaseCount ( int  phase)

Definition at line 59 of file DossierCounter.java.

59  {
60  Long value = phases.get(phase);
61  if(value == null) {
62  value = phaseCount(phase);
63  phases.put(phase, value);
64  }
65  return value;
66  }

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