BrightSide Workbench Full Report + Source Code
org.turro.dossier.task.Subtask Class Reference

Public Member Functions

 Subtask (Issue main, IssuePredecessorType type)
 
IssuePredecessor save (Dao dao, Issue task)
 

Detailed Description

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

Definition at line 32 of file Subtask.java.

Constructor & Destructor Documentation

◆ Subtask()

org.turro.dossier.task.Subtask.Subtask ( Issue  main,
IssuePredecessorType  type 
)

Definition at line 37 of file Subtask.java.

37  {
38  this.main = main;
39  this.type = type;
40  }

Member Function Documentation

◆ save()

IssuePredecessor org.turro.dossier.task.Subtask.save ( Dao  dao,
Issue  task 
)

Definition at line 42 of file Subtask.java.

42  {
43  IssuePredecessor predecessor = new IssuePredecessor();
44  predecessor.setSource(task);
45  predecessor.setTarget(main);
46  predecessor.setType(type);
47  predecessor.setCreation(new Date());
48  if(checkRelation(predecessor)) {
49  return dao.saveObject(predecessor);
50  } else {
51  Toasts.message("Invalid relation").show();
52  return null;
53  }
54  }
Here is the call graph for this function:
Here is the caller graph for this function:

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