LaunchResourceStatus.java
2.34 KB
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
/*
* Decompiled with CFR 0_118.
*/
package com.adobe.cq.launches.api;
import java.util.Calendar;
import java.util.Date;
public final class LaunchResourceStatus {
private final String resourcePath;
private final String title;
private final Calendar launchModificationDate;
private final Calendar productionModificationDate;
private final String launchUserId;
private final String productionUserId;
private final LaunchStatusType type;
public LaunchResourceStatus(LaunchStatusType type, String path, String title, Calendar launchLastModif, Calendar prodLastModif, String launchUserId, String productionUserId) {
this.type = type;
this.resourcePath = path;
this.title = title;
this.launchModificationDate = launchLastModif;
this.productionModificationDate = prodLastModif;
this.launchUserId = launchUserId;
this.productionUserId = productionUserId;
}
public LaunchStatusType getType() {
return this.type;
}
public String getResourcePath() {
return this.resourcePath;
}
public String getTitle() {
return this.title;
}
public Date getLaunchModificationDate() {
return this.launchModificationDate != null ? this.launchModificationDate.getTime() : null;
}
public Date getProductionModificationDate() {
return this.productionModificationDate != null ? this.productionModificationDate.getTime() : null;
}
public String getLaunchUserId() {
return this.launchUserId;
}
public String getProductionUserId() {
return this.productionUserId;
}
public final boolean equals(Object o) {
if (o instanceof LaunchResourceStatus) {
LaunchResourceStatus other = (LaunchResourceStatus)o;
return other.resourcePath.equals(this.resourcePath) && other.type == this.type;
}
return false;
}
public int hashCode() {
return this.resourcePath.hashCode() ^ this.type.hashCode();
}
public static enum LaunchStatusType {
CREATED,
UNCHANGED,
MODIFIED,
DELETED;
private LaunchStatusType() {
}
public String getValue() {
return this.name().toLowerCase();
}
public String toString() {
return this.getValue();
}
}
}