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

Protected Member Functions

void executePlugin ()
 
- Protected Member Functions inherited from org.turro.plugin.command.TimelinePlugin
void addToResult (Object data)
 
abstract void executePlugin (Context context) throws Exception
 

Additional Inherited Members

- Public Member Functions inherited from org.turro.plugin.command.TimelinePlugin
String getName ()
 
boolean stopPropagating ()
 
void execute ()
 
String getName ()
 
boolean stopsPropagating ()
 
void setParams (Object params)
 
Object execute (Context context)
 
- Public Member Functions inherited from org.turro.action.DefaultPlugin
void setContext (Map< String, Object > params, Map< String, Object > results)
 
Object getParam (String key)
 
boolean itsMe (String name)
 
Object addResult (String key, Object value)
 
- Static Public Member Functions inherited from org.turro.plugin.command.TimelinePlugin
static String getTimelineFor (IContact contact)
 
static String generateXML (Collection result)
 
static String getTimelineFor (Application app, IContact contact)
 
static String generateXML (Application app, Collection< TimelineEvent > result)
 
- Protected Attributes inherited from org.turro.plugin.command.TimelinePlugin
IContact contact
 
Collection< TimelineEventresult
 
- Protected Attributes inherited from org.turro.action.DefaultPlugin
Map< String, Object > params
 
Map< String, Object > results
 

Detailed Description

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

Definition at line 33 of file IssueTimeline.java.

Member Function Documentation

◆ executePlugin()

void org.turro.dossier.command.IssueTimeline.executePlugin ( )
protected

Reimplemented from org.turro.plugin.command.TimelinePlugin.

Definition at line 36 of file IssueTimeline.java.

36  {
37  List<IssueWrapper> wis = new IssueResults().getIssueList();
38  for(IssueWrapper iw : wis) {
39  TimelineEvent tle = new TimelineEvent();
40  tle.setStart(iw.getIssue().getStartDate() == null ?
41  iw.getIssue().getIssueDate() : iw.getIssue().getStartDate());
42  if(iw.getIssue().getSolvedDate() != null) {
43  tle.setEnd(iw.getIssue().getSolvedDate());
44  tle.setDuration(true);
45  } else {
46  tle.setEnd(iw.getIssue().getModification());
47  }
48  tle.setImage("/_zul/images/issue.png");
49  tle.setLink(null);
50  tle.setTitle(iw.getIssue().getFullDescription());
51  tle.setInside(null);
52  addResult("issue" + iw.getId(), tle);
53  }
54  }
Object addResult(String key, Object value)
Here is the call graph for this function:

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