Example #1
0
 @Override
 public List<String> findGroupNamesByUser(CallingContext context, String username) {
   List<String> result = Lists.newArrayList();
   FindGroupsByUserFilter filter = new FindGroupsByUserFilter(username);
   List<RaptureEntitlementGroup> groups = RaptureEntitlementGroupStorage.filterAll(filter);
   for (RaptureEntitlementGroup group : groups) {
     result.add(group.getName());
   }
   return result;
 }
Example #2
0
 @Override
 public boolean shouldInclude(RaptureEntitlementGroup obj) {
   return obj.getUsers().contains(username);
 }