1 |
|
package org.europa.together.business; |
2 |
|
|
3 |
|
import java.io.IOException; |
4 |
|
import java.net.ConnectException; |
5 |
|
import java.util.Map; |
6 |
|
import org.apiguardian.api.API; |
7 |
|
import static org.apiguardian.api.API.Status.STABLE; |
8 |
|
import org.europa.together.exceptions.MisconfigurationException; |
9 |
|
import org.ff4j.FF4j; |
10 |
|
import org.ff4j.core.Feature; |
11 |
|
import org.springframework.stereotype.Component; |
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
16 |
|
|
17 |
|
@author |
18 |
|
@version |
19 |
|
@since |
20 |
|
|
21 |
|
@API(status = STABLE, since = "3.0", consumers = "FeatureFlagsFF4j") |
22 |
|
@Component |
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 0 |
Complexity Density: - |
|
23 |
|
public interface FeatureFlags { |
24 |
|
|
25 |
|
|
26 |
|
|
27 |
|
|
28 |
|
@API(status = STABLE, since = "3.0") |
29 |
|
String FEATURE_ID = "CM-13"; |
30 |
|
|
31 |
|
|
32 |
|
|
33 |
|
|
34 |
|
@API(status = STABLE, since = "3.0") |
35 |
|
String CONFIG_SET = "features"; |
36 |
|
|
37 |
|
|
38 |
|
|
39 |
|
|
40 |
|
@API(status = STABLE, since = "3.0") |
41 |
|
String CONFIG_VERSION = "1.0"; |
42 |
|
|
43 |
|
|
44 |
|
|
45 |
|
|
46 |
|
|
47 |
|
|
48 |
|
|
49 |
|
|
50 |
|
@param |
51 |
|
@return |
52 |
|
@throws |
53 |
|
@throws |
54 |
|
@throws |
55 |
|
|
56 |
|
FF4j getFeatureStore(String propertyFile) |
57 |
|
throws IOException, ConnectException, MisconfigurationException; |
58 |
|
|
59 |
|
|
60 |
|
|
61 |
|
|
62 |
|
@param |
63 |
|
@return |
64 |
|
|
65 |
|
boolean check(String featureId); |
66 |
|
|
67 |
|
|
68 |
|
|
69 |
|
|
70 |
|
@param |
71 |
|
|
72 |
|
void activateFeature(String featureId); |
73 |
|
|
74 |
|
|
75 |
|
|
76 |
|
|
77 |
|
@param |
78 |
|
|
79 |
|
void deactivateFeature(String featureId); |
80 |
|
|
81 |
|
|
82 |
|
|
83 |
|
|
84 |
|
|
85 |
|
@param |
86 |
|
|
87 |
|
void addFeature(Feature feature); |
88 |
|
|
89 |
|
|
90 |
|
|
91 |
|
|
92 |
|
@param |
93 |
|
@return |
94 |
|
|
95 |
|
Feature getFeature(String featureId); |
96 |
|
|
97 |
|
|
98 |
|
|
99 |
|
|
100 |
|
@param |
101 |
|
|
102 |
|
void updateFeature(Feature feature); |
103 |
|
|
104 |
|
|
105 |
|
|
106 |
|
|
107 |
|
@param |
108 |
|
|
109 |
|
void removeFeature(String featureId); |
110 |
|
|
111 |
|
|
112 |
|
|
113 |
|
|
114 |
|
@return |
115 |
|
|
116 |
|
Map<String, Feature> listAllFeatures(); |
117 |
|
} |