Package org.atomojo.auth.service.db

Examples of org.atomojo.auth.service.db.RealmUser.changeAlias()


                (alias==null && !user.getAlias().equals(user.getUser().getAlias())) ){
               // rename or unset
               try {
                  if (alias!=null && alias.equals(user.getUser().getAlias())) {
                     // unset
                     if (!user.changeAlias(null)) {
                        getResponse().setStatus(Status.CLIENT_ERROR_CONFLICT);
                        return new StringRepresentation("The alias '"+alias+"' is not available.");
                     }
                  } else {
                     if (!user.changeAlias(alias)) {
View Full Code Here


                     if (!user.changeAlias(null)) {
                        getResponse().setStatus(Status.CLIENT_ERROR_CONFLICT);
                        return new StringRepresentation("The alias '"+alias+"' is not available.");
                     }
                  } else {
                     if (!user.changeAlias(alias)) {
                        getResponse().setStatus(Status.CLIENT_ERROR_CONFLICT);
                        return new StringRepresentation("The alias '"+alias+"' is not available.");
                     }
                  }
               } catch (SQLException ex) {
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.