Examples of UserExistsException


Examples of ch.entwine.weblounge.common.security.UserExistsException

        if (SecurityUtils.userHasRole(shadowedUser, SYSTEMADMIN))
          throw new UserShadowedException("Site '" + site.getIdentifier() + "' account '" + user + "' is shadowing the system account");
        else if (SecurityUtils.userHasRole(shadowedUser, SITEADMIN))
          throw new UserShadowedException("Site '" + site.getIdentifier() + "' account '" + user + "' is shadowing the site account");
        else
          throw new UserExistsException("Site '" + site.getIdentifier() + "' account '" + user + "' already exists");
      }
    } else {
      logger.warn("Directory service not found, site '{}' user '{}' cannot be checked for user shadowing", site.getIdentifier(), user);
    }
   
View Full Code Here

Examples of com.pe.pgn.clubpgn.service.UserExistsException

        try {
            return userDao.saveUser(user);
        } catch (DataIntegrityViolationException e) {
            //e.printStackTrace();
            log.warn(e.getMessage());
            throw new UserExistsException("User '" + user.getUsername() + "' already exists!");
        } catch (JpaSystemException e) { // needed for JPA
            //e.printStackTrace();
            log.warn(e.getMessage());
            throw new UserExistsException("User '" + user.getUsername() + "' already exists!");
        }catch (Exception e) {
            log.warn(e.getMessage());
            throw new UserExistsException("User '" + user.getUsername() + "' present problems to save!");
        }
    }
View Full Code Here

Examples of com.vst.service.UserExistsException

            user.setUsername(user.getUsername().toLowerCase());
        }
        try {
            dao.saveUser(user);
        } catch (DataIntegrityViolationException e) {
            throw new UserExistsException("User '" + user.getUsername() + "' already exists!");
        }
    }
View Full Code Here

Examples of cu.ftpd.user.userbases.UserExistsException

    public Group getGroup(String name) throws NoSuchGroupException {
        throw new NoSuchGroupException("Anonymous userbases do not have groups: " + name);
    }
    public User gAddUser(String groupname, String username, String password, boolean checkSpace) throws NoSuchGroupException, UserExistsException {
        throw new UserExistsException("<cannot add users to an anonymous userbase>");
    }
View Full Code Here

Examples of org.apache.marmotta.platform.core.exception.UserExistsException

                    handleRepositoryException(ex);
                    return null;
                }

            } else
                throw new UserExistsException("User "+login+" already exists, cannot create!");
        } finally {
            lock.unlock();
        }
    }
View Full Code Here

Examples of org.apache.marmotta.platform.core.exception.UserExistsException

                    handleRepositoryException(ex);
                    return null;
                }

            } else
                throw new UserExistsException("User "+login+" already exists, cannot create!");
        } finally {
            lock.unlock();
        }
    }
View Full Code Here

Examples of org.apache.marmotta.platform.core.exception.UserExistsException

                    handleRepositoryException(ex);
                    return null;
                }

            } else
                throw new UserExistsException("User "+login+" already exists, cannot create!");
        } finally {
            lock.unlock();
        }
    }
View Full Code Here

Examples of org.apache.slide.projector.repository.UserExistsException

    }
   
    public URI createUser(String username, String password, Credentials credentials) throws UserExistsException, IOException {
      Value userExists = getResource(new URIValue(users+username), credentials);
      if ( userExists == NullValue.NULL || userExists != null ) {
            throw new UserExistsException(new ErrorMessage("userExists", new String[] { username }));
        } else {
          URI userUri = new URIValue(users+username);
          MkcolMethod mkcolMethod = new MkcolMethod(domain+userUri.toString());
          mkcolMethod.setDoAuthentication(true);
            HttpState httpState = new HttpState();
View Full Code Here

Examples of org.appfuse.service.UserExistsException

        try {
            return userDao.saveUser(user);
        } catch (final Exception e) {
            e.printStackTrace();
            log.warn(e.getMessage());
            throw new UserExistsException("User '" + user.getUsername() + "' already exists!");
        }
    }
View Full Code Here

Examples of org.itnaf.service.UserExistsException

            user.setUsername(user.getUsername().toLowerCase());
      }
        try {
            dao.saveUser(user);
        } catch (DataIntegrityViolationException e) {
            throw new UserExistsException("User '" + user.getUsername() + "' already exists!");
        }
    }
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.