Search in sources :

Example 1 with GroupDescApiBean

use of org.ff4j.services.domain.GroupDescApiBean in project ff4j by ff4j.

the class FeatureStoreServices method getAllGroups.

public Collection<GroupDescApiBean> getAllGroups() {
    Map<String, GroupDescApiBean> groups = new HashMap<String, GroupDescApiBean>();
    Map<String, Feature> featureMap = ff4j.getFeatureStore().readAll();
    if (!CollectionUtils.isEmpty(featureMap)) {
        for (Feature feature : featureMap.values()) {
            initGroupMap(groups, feature.getUid(), feature.getGroup());
        }
    }
    return groups.values();
}
Also used : Feature(org.ff4j.core.Feature) GroupDescApiBean(org.ff4j.services.domain.GroupDescApiBean)

Aggregations

Feature (org.ff4j.core.Feature)1 GroupDescApiBean (org.ff4j.services.domain.GroupDescApiBean)1