Package org.fao.geonet.repository

Examples of org.fao.geonet.repository.UserGroupRepository.save()


            long count = userGroupRepo.count(where(hasGroupId(groupId)).and(hasUserId(userId)));

            if (count == 0) {
                UserGroup userGroup = new UserGroup();
                userGroup.getId().setGroupId(groupId).setUserId(userId);
                userGroupRepo.save(userGroup);
            }
        }

        return user;
    }
View Full Code Here


                    }
        }
      }
    }

        userGroupRepository.save(toAdd);

  }
}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.