Package com.brienwheeler.svc.usergroups

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

Related Classes of com.brienwheeler.svc.usergroups.DuplicateUserGroupException

Copyright © 2018 www.massapicom. 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.