Package com.baasbox.exception

Examples of com.baasbox.exception.RoleIsNotAssignableException


      JsonNode privateAttributes, JsonNode friendsAttributes,
      JsonNode appUsersAttributes) throws InvalidJsonException,Exception{
    try{
      ORole newORole=RoleDao.getRole(role);
      if (newORole==null) throw new InvalidParameterException(role + " is not a role");
      if (!RoleService.isAssignable(newORole)) throw new RoleIsNotAssignableException("Role " + role + " is not assignable");
      ORID newRole=newORole.getDocument().getIdentity();
      UserDao udao=UserDao.getInstance();
      ODocument profile=udao.getByUserName(username);
      if (profile==null) throw new InvalidParameterException(username + " is not a user");
      profile=updateProfile(profile, nonAppUserAttributes,
View Full Code Here

TOP

Related Classes of com.baasbox.exception.RoleIsNotAssignableException

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.