1 package com.trendmicro.grid.acl.metadata;
2
3 import java.util.Arrays;
4 import java.util.Collections;
5 import java.util.List;
6
7
8
9
10
11
12
13 public enum WellKnownProfileNames {
14
15
16
17 BASIC("basic.profile-level%d"),
18
19
20
21
22 REQUEST("request.profile-level%d"),
23
24
25
26
27 PROCESSING("processing.profile-level%d"),;
28
29
30
31
32 public static final List<Integer> KNOWN_LEVELS = Collections.unmodifiableList(Arrays.asList(0));
33
34 final String fqnPattern;
35
36 private WellKnownProfileNames(String fqnPattern) {
37 this.fqnPattern = fqnPattern;
38 }
39
40
41
42
43
44
45
46 public String getFQN(int level) {
47 return String.format(fqnPattern, level);
48 }
49 }