19 package org.turro.erp.clone;
21 import java.util.ArrayList;
22 import java.util.Collection;
23 import java.util.Date;
24 import java.util.HashSet;
26 import org.turro.clone.ClonedEntity;
27 import org.turro.clone.ClonedEntitySet;
28 import org.turro.erp.entity.AptitudeDegree;
29 import org.turro.erp.entity.OwnedAptitude;
30 import org.turro.erp.entity.Predecessor;
31 import org.turro.erp.entity.RequiredUsage;
32 import org.turro.erp.entity.Task;
33 import org.turro.hierarchy.Hierarchical;
42 private String description;
45 private Date startDate;
47 private Date delivery;
48 private boolean milestone;
50 private long departmentId;
51 private Set<PredecessorClone> predecessors =
new HashSet<PredecessorClone>();
52 private Set<RequiredUsageClone> requiredUsages =
new HashSet<RequiredUsageClone>();
55 super(task.
getId(), task, entities);
66 if(requiredUsage.getId() > 0) {
73 if(predecessor.getId() > 0) {
82 this.orderReference = orderReference;
86 return requiredUsages;
94 requiredUsageClone.generateClone();
100 predecessorClone.generateClone();
101 Predecessor predecessor = predecessorClone.getClone();
124 requiredUsageClone.applyChanges();
127 predecessorClone.applyChanges();
134 requiredUsageClone.assignEntities();
137 predecessorClone.assignEntities();
145 ArrayList list =
new ArrayList();
146 list.add(requiredUsages);
147 list.add(predecessors);
153 return orderReference;
void setTask(TaskClone task)
void setTask(TaskClone task)
void applyData(Task entity)
Set< RequiredUsageClone > getRequiredUsages()
void applyChildren(Task entity)
TaskClone(Task task, ClonedEntitySet entities)
void setOrderReference(OrderReferenceClone orderReference)
void setEndDate(Date endDate)
Set< RequiredUsage > getRequiredUsages()
AptitudeDegree getAptitudeDegree()
Set< Predecessor > getPredecessors()
void setSupervised(OwnedAptitude supervised)
void setMilestone(boolean milestone)
void setDescription(String description)
void setDepartmentId(long departmentId)
void setDelivery(Date delivery)
void setAptitudeDegree(AptitudeDegree aptitudeDegree)
void setName(String name)
void setStartDate(Date startDate)
OwnedAptitude getSupervised()