Package com.bytedesk.core.feature
Class FeatureService
java.lang.Object
com.bytedesk.core.feature.FeatureService
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate FeatureRepository
private com.fasterxml.jackson.databind.ObjectMapper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetFeatureConfig
(String code) getFeaturesByModule
(String moduleName) boolean
isFeatureEnabled
(String code) registerFeature
(String code, String name, String moduleName) void
updateFeatureConfig
(String code, Map<String, Object> config) void
updateFeatureStatus
(String code, boolean enabled)
-
Field Details
-
featureRepository
-
objectMapper
@Autowired private com.fasterxml.jackson.databind.ObjectMapper objectMapper
-
-
Constructor Details
-
FeatureService
public FeatureService()
-
-
Method Details
-
registerFeature
-
updateFeatureStatus
-
getEnabledFeatures
-
getFeaturesByModule
-
isFeatureEnabled
-
getFeatureConfig
-
updateFeatureConfig
-
getModuleFeatureStats
-