Examples of DuplicateUserGroupException


Examples of com.brienwheeler.svc.usergroups.DuplicateUserGroupException

  {
    groupName = ValidationUtils.assertNotEmpty(groupName, "groupName cannot be empty");
    groupType = ValidationUtils.assertNotEmpty(groupType, "groupType cannot be empty");

    if (findByNameAndType(groupName, groupType) != null)
      throw new DuplicateUserGroupException("group already exists: " + groupName + "/" + groupType);
   
    UserGroup userGroup = new UserGroup(groupName, groupType);
    return userGroupDao.save(userGroup);
  }
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.