dashboard
repositories
activity
search
login
common
/
securis
summary
reflog
commits
tree
compare
forks
blame
|
history
|
raw
|
HEAD
#2021 fix - Corrected license form validations
rsanchez
2014-10-20
44ec40e27b3039096c6202bcc19bae9561943818
[common/securis.git]
/
securis
/
src
/
main
/
java
/
net
/
curisit
/
securis
/
db
/
PackStatus.java
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
package net.curisit.securis.db;
import org.codehaus.jackson.annotate.JsonCreator;
import org.codehaus.jackson.annotate.JsonValue;
public enum PackStatus {
PENDING("PE"), ACTIVE("AC"), ON_HOLD("OH"), EXPIRED("EX"), CANCELLED("CA");
private final String code;
PackStatus(String code ) {
this.code = code;
}
public String getCode() {
return code;
}
@JsonCreator
public static PackStatus valueFromCode(String code) {
for (PackStatus ps : PackStatus.values()) {
if (ps.code.equals(code)) {
return ps;
}
}
return null;
}
@JsonValue
public String getName() {
return this.code;
}
}