ItEr28S12ClasificacionTraballoItEr27S12: Add isDeleted property to CriterionSatisfaction entity.
This commit is contained in:
parent
5ffe3b53fd
commit
ac1eb27c06
2 changed files with 10 additions and 1 deletions
|
|
@ -100,6 +100,8 @@ public class CriterionSatisfaction extends BaseEntity {
|
|||
|
||||
private Resource resource;
|
||||
|
||||
private Boolean isDeleted = false;
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return ToStringBuilder.reflectionToString(this);
|
||||
|
|
@ -177,6 +179,14 @@ public class CriterionSatisfaction extends BaseEntity {
|
|||
startDate = date;
|
||||
}
|
||||
|
||||
public void setIsDeleted(boolean isDeleted) {
|
||||
this.isDeleted = isDeleted;
|
||||
}
|
||||
|
||||
public boolean isIsDeleted() {
|
||||
return isDeleted == null ? false : isDeleted;
|
||||
}
|
||||
|
||||
public boolean overlapsWith(Interval interval) {
|
||||
return getInterval().overlapsWith(interval);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -220,7 +220,6 @@ public class CriterionTreeModel implements ICriterionTreeModel{
|
|||
@Override
|
||||
public void move(CriterionDTO toBeMoved, CriterionDTO destination,int position) {
|
||||
if(isGreatInHierarchy(toBeMoved,destination)){
|
||||
System.out.println("******************************* RETURN ********************************");
|
||||
return;
|
||||
}
|
||||
if(criterionType.allowHierarchy()){
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue