Subversion Repositories SmartDukaan

Rev

Rev 31546 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 31546 Rev 32795
Line 1... Line 1...
1
/**
1
/**
2
 * 
2
 * 
3
 */
3
 */
4
package com.spice.profitmandi.dao.enumuration.cs;
4
package com.spice.profitmandi.dao.enumuration.cs;
5
 
5
 
-
 
6
import com.jcraft.jsch.Logger;
-
 
7
import org.apache.logging.log4j.LogManager;
-
 
8
 
6
import java.util.Arrays;
9
import java.util.Arrays;
7
import java.util.List;
10
import java.util.List;
8
 
11
 
9
/**
12
/**
10
 * @author govind
13
 * @author govind
Line 16... Line 19...
16
	L3("l3"),
19
	L3("l3"),
17
	L4("l4"),
20
	L4("l4"),
18
	L5("l5"),
21
	L5("l5"),
19
	Final("final");
22
	Final("final");
20
 
23
 
-
 
24
	private static final org.apache.logging.log4j.Logger LOGGER = LogManager.getLogger(EscalationType.class);
-
 
25
 
21
	private final String value;
26
	private final String value;
22
 
27
 
23
	public static final List<EscalationType> escalations = Arrays.asList(EscalationType.L1, EscalationType.L2, EscalationType.L3, EscalationType.L4, EscalationType.L5, EscalationType.Final);
28
	public static final List<EscalationType> escalations = Arrays.asList(EscalationType.L1, EscalationType.L2, EscalationType.L3, EscalationType.L4, EscalationType.L5, EscalationType.Final);
24
 
29
 
25
	private EscalationType(String value) {
30
	private EscalationType(String value) {
Line 34... Line 39...
34
			return null;
39
			return null;
35
		}
40
		}
36
		return escalations.get(escalations.indexOf(this)+1);
41
		return escalations.get(escalations.indexOf(this)+1);
37
	}
42
	}
38
 
43
 
-
 
44
	public boolean isGreaterThanEqualTo(EscalationType escalationType) {
-
 
45
		LOGGER.info("{} >= {} ", escalations.indexOf(this), escalations.indexOf(escalationType));
-
 
46
		return escalations.indexOf(this) >= escalations.indexOf(escalationType);
-
 
47
	}
-
 
48
 
39
}
49
}