public class FeatureStoreAuditProxy extends Object implements FeatureStore
| Constructor and Description |
|---|
FeatureStoreAuditProxy(FF4j pFF4j,
FeatureStore pTarget)
Only constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addToGroup(String uid,
String groupName)
Add target
Feature to target group. |
void |
clear()
Empty features set.
|
void |
create(Feature fp)
Create flipPoint in storage (with roles).
|
void |
createSchema()
Initialize the target database schema by creating expected structures.
|
void |
delete(String uid)
Remove fliPoint from store.
|
void |
disable(String uid)
Create Feature is does not exist and enable it.
|
void |
disableGroup(String groupName)
Disable all features contained in the following group.
|
void |
enable(String uid)
Enable/UP/switch on a FlipPoint.
|
void |
enableGroup(String groupName)
Enable all features contained in the following group.
|
boolean |
exist(String uid)
Check if Feature Exist.
|
boolean |
existGroup(String groupName)
Check if current group exist or not.
|
FeatureStore |
getTarget()
Getter accessor for attribute 'target'.
|
void |
grantRoleOnFeature(String uid,
String roleName)
Add a role to a flipPOINT.
|
void |
importFeatures(Collection<Feature> features)
Import features.
|
Feature |
read(String uid)
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 uid,
String groupName)
Remove target
Feature from group. |
void |
removeRoleFromFeature(String uid,
String roleName)
Remove role to acess flip point
|
void |
update(Feature fp)
Update FlipPoint within store.
|
public FeatureStoreAuditProxy(FF4j pFF4j, FeatureStore pTarget)
pTarget - public void createSchema()
createSchema in interface FeatureStorepublic void enable(String uid)
enable in interface FeatureStoreuid - unique feature identifierpublic void disable(String uid)
disable in interface FeatureStorepublic void create(Feature fp)
create in interface FeatureStorefp - create rolespublic void delete(String uid)
delete in interface FeatureStorepublic void update(Feature fp)
update in interface FeatureStorefp - flipPoint new elementpublic void grantRoleOnFeature(String uid, String roleName)
grantRoleOnFeature in interface FeatureStorepublic void removeRoleFromFeature(String uid, String roleName)
removeRoleFromFeature in interface FeatureStorepublic void enableGroup(String groupName)
enableGroup in interface FeatureStoregroupName - target group namepublic void disableGroup(String groupName)
disableGroup in interface FeatureStoregroupName - target group namepublic void addToGroup(String uid, String groupName)
Feature to target group.addToGroup in interface FeatureStoreuid - target feature identifiergroupName - target groupNamepublic void removeFromGroup(String uid, String groupName)
Feature from group.removeFromGroup in interface FeatureStoreuid - target feature identifiergroupName - target groupNamepublic void clear()
clear in interface FeatureStorepublic boolean exist(String uid)
exist in interface FeatureStorepublic Feature read(String uid)
read in interface FeatureStorepublic Map<String,Feature> readAll()
readAll in interface FeatureStorepublic boolean existGroup(String groupName)
existGroup in interface FeatureStoregroupName - target group namepublic Map<String,Feature> readGroup(String groupName)
readGroup in interface FeatureStoregroupName - target group namepublic Set<String> readAllGroups()
readAllGroups in interface FeatureStorepublic void importFeatures(Collection<Feature> features)
importFeatures in interface FeatureStorefeatures - list of features.spublic FeatureStore getTarget()
Copyright © 2013–2017 FF4J. All rights reserved.