Package org.atomojo.auth.service.db

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


               return new StringRepresentation("The alias '"+alias+"' is not a valid alias.");
            }
            if (alias!=null && !alias.equals(user.getAlias())) {
               // rename
               try {
                  if (!user.changeAlias(alias)) {
                     getResponse().setStatus(Status.CLIENT_ERROR_CONFLICT);
                     return new StringRepresentation("The alias '"+alias+"' is not available.");
                  }
               } catch (SQLException ex) {
                  getContext().getLogger().log(Level.SEVERE,"Database error during while changing alias: "+ex.getMessage(),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.