Example #1
0
 public GroupEntity createGroup(String name, GroupType groupType) {
   GroupEntity group = new GroupEntity();
   group.setName(name);
   group.setSyncValue("sync_" + name);
   group.setDeleted(0);
   group.setRestricted(1);
   group.setType(groupType);
   return group;
 }
Example #2
0
 public GroupEntity createGroupInUserstore(
     String name, GroupType groupType, String userstoreName) {
   GroupEntity group = new GroupEntity();
   group.setKey(new GroupKey(Integer.toString(mockKeyService.generateNextKeySafe("TGROUP"))));
   group.setName(name);
   group.setSyncValue("sync_" + name);
   group.setDeleted(0);
   group.setRestricted(1);
   group.setType(groupType);
   group.setUserStore(fixture.findUserStoreByName(userstoreName));
   return group;
 }