- Author
- Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g
Definition at line 39 of file TaskClone.java.
◆ TaskClone()
org.turro.erp.clone.TaskClone.TaskClone |
( |
Task |
task, |
|
|
ClonedEntitySet |
entities |
|
) |
| |
Definition at line 54 of file TaskClone.java.
55 super(task.getId(), task, entities);
56 name = task.getName();
57 description = task.getDescription();
58 supervised = task.getSupervised();
59 aptitudeDegree = task.getAptitudeDegree();
60 startDate = task.getStartDate();
61 endDate = task.getEndDate();
62 delivery = task.getDelivery();
63 milestone = task.isMilestone();
64 departmentId = task.getDepartmentId();
65 for(RequiredUsage requiredUsage : task.getRequiredUsages()) {
66 if(requiredUsage.getId() > 0) {
67 RequiredUsageClone ru =
new RequiredUsageClone(requiredUsage, entities);
69 requiredUsages.add((RequiredUsageClone) entities.addClonedEntity(ru));
72 for(Predecessor predecessor : task.getPredecessors()) {
73 if(predecessor.getId() > 0) {
74 PredecessorClone pre =
new PredecessorClone(predecessor, entities);
76 predecessors.add((PredecessorClone) entities.addClonedEntity(pre));
◆ applyChildren()
void org.turro.erp.clone.TaskClone.applyChildren |
( |
Task |
entity | ) |
|
|
protected |
Definition at line 122 of file TaskClone.java.
123 for(RequiredUsageClone requiredUsageClone : requiredUsages) {
124 requiredUsageClone.applyChanges();
126 for(PredecessorClone predecessorClone : predecessors) {
127 predecessorClone.applyChanges();
◆ applyData()
void org.turro.erp.clone.TaskClone.applyData |
( |
Task |
entity | ) |
|
|
protected |
Definition at line 109 of file TaskClone.java.
110 entity.setName(name);
111 entity.setDescription(description);
112 entity.setSupervised(supervised);
113 entity.setAptitudeDegree(aptitudeDegree);
114 entity.setStartDate(startDate);
115 entity.setEndDate(endDate);
116 entity.setDelivery(delivery);
117 entity.setMilestone(milestone);
118 entity.setDepartmentId(departmentId);
◆ assignEntities()
void org.turro.erp.clone.TaskClone.assignEntities |
( |
| ) |
|
|
protected |
Definition at line 132 of file TaskClone.java.
133 for(RequiredUsageClone requiredUsageClone : requiredUsages) {
134 requiredUsageClone.assignEntities();
136 for(PredecessorClone predecessorClone : predecessors) {
137 predecessorClone.assignEntities();
◆ children()
Collection org.turro.erp.clone.TaskClone.children |
( |
| ) |
|
◆ createClone()
Task org.turro.erp.clone.TaskClone.createClone |
( |
| ) |
|
|
protected |
Definition at line 90 of file TaskClone.java.
91 Task task =
new Task();
93 for(RequiredUsageClone requiredUsageClone : requiredUsages) {
94 requiredUsageClone.generateClone();
95 RequiredUsage requiredUsage = requiredUsageClone.getClone();
96 requiredUsage.setTask(task);
97 task.getRequiredUsages().add(requiredUsage);
99 for(PredecessorClone predecessorClone : predecessors) {
100 predecessorClone.generateClone();
101 Predecessor predecessor = predecessorClone.getClone();
102 predecessor.setTask(task);
103 task.getPredecessors().add(predecessor);
void applyData(Task entity)
◆ getRequiredUsages()
◆ parent()
Object org.turro.erp.clone.TaskClone.parent |
( |
| ) |
|
◆ setOrderReference()
Definition at line 81 of file TaskClone.java.
82 this.orderReference = orderReference;
The documentation for this class was generated from the following file: