blob: 58ac0a918aafe63b8c6929b504be84671bba518a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
package org.openecomp.core.zusammen.plugin.dao.types;
import com.amdocs.zusammen.datatypes.item.Action;
import java.util.Collections;
import java.util.Date;
import java.util.Set;
public class StageEntity<E> {
private E entity;
private Date publishTime;
private Action action = Action.IGNORE;
private boolean conflicted;
private Set<E> conflictDependents = Collections.emptySet();
// used by sync on stage creation
public StageEntity(E entity, Date publishTime) {
this.entity = entity;
this.publishTime = publishTime;
}
public StageEntity(E entity, Date publishTime, Action action, boolean conflicted) {
this.entity = entity;
this.publishTime = publishTime;
this.action = action;
this.conflicted = conflicted;
}
public E getEntity() {
return entity;
}
public Date getPublishTime() {
return publishTime;
}
public Action getAction() {
return action;
}
public void setAction(Action action) {
this.action = action;
}
public boolean isConflicted() {
return conflicted;
}
public void setConflicted(boolean conflicted) {
this.conflicted = conflicted;
}
public Set<E> getConflictDependents() {
return conflictDependents;
}
public void setConflictDependents(Set<E> conflictDependents) {
this.conflictDependents = conflictDependents;
}
}
|