dashboard
repositories
activity
search
login
common
/
securis
summary
reflog
commits
tree
compare
forks
blame
|
history
|
raw
|
HEAD
#2021 feature - Added changes on Pack management (in Beta)
rsanchez
2014-10-17
5805f0a08e69de728bd891d1c09ff32fc297977a
[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
package net.curisit.securis.db;
import org.codehaus.jackson.annotate.JsonCreator;
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;
}
}