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();
}
Aggregations