public interface FeatureStore
Feature(s)| Modifier and Type | Method and Description |
|---|---|
void |
addToGroup(String featureId,
String groupName)
Add target
Feature to target group. |
void |
create(Feature fp)
Create flipPoint in storage (with roles).
|
void |
delete(String fpId)
Remove fliPoint from store.
|
void |
disable(String fId)
Create Feature is does not exist and enable it.
|
void |
disableGroup(String groupName)
Disable all features contained in the following group.
|
void |
enable(String featureID)
Enable/UP/switch on a FlipPoint.
|
void |
enableGroup(String groupName)
Enable all features contained in the following group.
|
boolean |
exist(String featId)
Check if Feature Exist.
|
boolean |
existGroup(String groupName)
Check if current group exist or not.
|
String |
getCachedTargetStore() |
String |
getCacheProvider()
Return false.
|
void |
grantRoleOnFeature(String flipId,
String roleName)
Add a role to a flipPOINT.
|
boolean |
isCached()
Implementation of Store to get cache.
|
Feature |
read(String featureUid)
Create Feature is does not exist and enable it.
|
Map<String,Feature> |
readAll()
Access to all features to get information.
|
Set<String> |
readAllGroups()
Return a set of existing groups.
|
Map<String,Feature> |
readGroup(String groupName)
Read all features within target group.
|
void |
removeFromGroup(String featureId,
String groupName)
Remove target
Feature from group. |
void |
removeRoleFromFeature(String flipId,
String roleName)
Remove role to acess flip point
|
void |
update(Feature fp)
Update FlipPoint within store.
|
void enable(String featureID)
featureID - unique feature identifiervoid disable(String fId)
featureID - unique feature identifierboolean exist(String featId)
void create(Feature fp)
fp - create rolesFeature read(String featureUid)
featureID - unique feature identifierMap<String,Feature> readAll()
void delete(String fpId)
fp - flipPointvoid update(Feature fp)
fp - flipPoint new elementvoid grantRoleOnFeature(String flipId, String roleName)
roleName - void removeRoleFromFeature(String flipId, String roleName)
roleName - void enableGroup(String groupName)
groupName - target group namevoid disableGroup(String groupName)
groupName - target group nameboolean existGroup(String groupName)
groupName - target group nameMap<String,Feature> readGroup(String groupName)
groupName - target group namevoid addToGroup(String featureId, String groupName)
Feature to target group.featureId - target feature identifiergroupName - target groupNamevoid removeFromGroup(String featureId, String groupName)
Feature from group.featureId - target feature identifiergroupName - target groupNameSet<String> readAllGroups()
boolean isCached()
String getCacheProvider()
String getCachedTargetStore()
Copyright © 2013–2015 FF4J. All rights reserved.