Examples of changeAlias()


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

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

                     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

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.