1
|
package eu.dnetlib.functionality.modular.ui.repositories.objects;
|
2
|
|
3
|
public class RepoMetaWfEntry implements Comparable<RepoMetaWfEntry> {
|
4
|
|
5
|
private String id;
|
6
|
private String name;
|
7
|
private String status;
|
8
|
private String destroyWorkflow;
|
9
|
private int progress;
|
10
|
|
11
|
public RepoMetaWfEntry(final String id, final String name, final String status, final String destroyWorkflow, final int progress) {
|
12
|
this.id = id;
|
13
|
this.name = name;
|
14
|
this.status = status;
|
15
|
this.destroyWorkflow = destroyWorkflow;
|
16
|
this.progress = progress;
|
17
|
}
|
18
|
|
19
|
@Override
|
20
|
public int compareTo(final RepoMetaWfEntry o) {
|
21
|
return getName().compareTo(o.getName());
|
22
|
}
|
23
|
|
24
|
public String getId() {
|
25
|
return id;
|
26
|
}
|
27
|
|
28
|
public String getName() {
|
29
|
return name;
|
30
|
}
|
31
|
|
32
|
public String getStatus() {
|
33
|
return status;
|
34
|
}
|
35
|
|
36
|
public String getDestroyWorkflow() {
|
37
|
return destroyWorkflow;
|
38
|
}
|
39
|
|
40
|
public int getProgress() {
|
41
|
return progress;
|
42
|
}
|
43
|
|
44
|
}
|