Examples of findUser()


Examples of org.jboss.seam.wiki.core.dao.UserDAO.findUser()

                newNode.setParent(getInstance());
                newNode.setAreaNumber(getInstance().getAreaNumber());
                UserDAO userDAO = (UserDAO)Component.getInstance(UserDAO.class);
                newNode.setCreatedBy(userDAO.findUser(n.getCreatedBy().getId()));
                if (n.getLastModifiedBy() != null) {
                    newNode.setLastModifiedBy(userDAO.findUser(n.getLastModifiedBy().getId()));
                }
                restrictedEntityManager.persist(newNode);
            }
        }
        log.debug("completed executing of paste batch");
View Full Code Here

Examples of org.lealone.engine.Database.findUser()

                user.setUserPasswordHash(userPasswordHash);
            }
            break;
        case CommandInterface.ALTER_USER_RENAME:
            session.getUser().checkAdmin();
            if (db.findUser(newName) != null || newName.equals(user.getName())) {
                throw DbException.get(ErrorCode.USER_ALREADY_EXISTS_1, newName);
            }
            db.renameDatabaseObject(session, user, newName);
            break;
        case CommandInterface.ALTER_USER_ADMIN:
View Full Code Here

Examples of org.lealone.engine.Database.findUser()

        session.commit(true);
        Database db = session.getDatabase();
        if (db.findRole(userName) != null) {
            throw DbException.get(ErrorCode.ROLE_ALREADY_EXISTS_1, userName);
        }
        if (db.findUser(userName) != null) {
            if (ifNotExists) {
                return 0;
            }
            throw DbException.get(ErrorCode.USER_ALREADY_EXISTS_1, userName);
        }
View Full Code Here

Examples of org.lealone.engine.Database.findUser()

    public int update() {
        session.getUser().checkAdmin();
        session.commit(true);
        Database db = session.getDatabase();
        User user = db.findUser(userName);
        if (user == null) {
            if (!ifExists) {
                throw DbException.get(ErrorCode.USER_NOT_FOUND_1, userName);
            }
        } else {
View Full Code Here

Examples of org.lealone.engine.Database.findUser()

    public int update() {
        session.getUser().checkAdmin();
        session.commit(true);
        Database db = session.getDatabase();
        if (db.findUser(roleName) != null) {
            throw DbException.get(ErrorCode.USER_ALREADY_EXISTS_1, roleName);
        }
        if (db.findRole(roleName) != null) {
            if (ifNotExists) {
                return 0;
View Full Code Here

Examples of org.lealone.engine.Database.findUser()

        roleNames.add(roleName);
    }

    public void setGranteeName(String granteeName) {
        Database db = session.getDatabase();
        grantee = db.findUser(granteeName);
        if (grantee == null) {
            grantee = db.findRole(granteeName);
            if (grantee == null) {
                throw DbException.get(ErrorCode.USER_OR_ROLE_NOT_FOUND_1, granteeName);
            }
View Full Code Here

Examples of org.platformlayer.auth.UserDatabase.findUser()

    UserDatabase userRepository = getContext().getUserRepository();

    // if (username == null) {
    // return userRepository.listAllProjectNames(null);
    // } else {
    UserEntity user = (UserEntity) userRepository.findUser(username.getKey());
    if (user == null) {
      throw new IllegalArgumentException("User not found");
    }
    return userRepository.listProjectsByUserId(user.id);
    // }
View Full Code Here

Examples of org.springframework.integration.samples.enricher.service.UserService.findUser()

      User user = new User("foo", null, null);

      if ("1".equals(input)) {

        final User fullUser = service.findUser(user);
        printUserInformation(fullUser);

      } else if ("2".equals(input)) {

        final User fullUser = service.findUserByUsername(user);
View Full Code Here

Examples of se.gu.fire.data.UserManager.findUser()

        em.getTransaction().begin();
        userMan.create(user1);
        em.getTransaction().commit();

        // Lets find per email
        FireUser user = userMan.findUser(johnEmail);
        assertNotNull(user);
       
        List<FireUser> users = userMan.findUsersByFirstName(user1.getFname());
        assertTrue(users.contains(user1));
       
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.