Examples of updateUser()


Examples of org.apache.shale.usecases.logic.LogonLogic.updateUser()

        // Persist the changes made during this dialog
        if (state.isCreating()) {
            logic.insertUser(user);
        } else {
            logic.updateUser(user);
        }

        // Log in a new user if already confirmed
        // Otherwise, send the confirmation email
        if (state.isCreating()) {
View Full Code Here

Examples of org.atomojo.app.auth.AuthService.updateUser()

                     }
                     // If the e-mail was missing, remove it
                     if (emailE==null) {
                        newEmail = null;
                     }
                     auth.updateUser(cred,alias,newName,newEmail);
                  }
                  if (password!=null) {
                     if (!auth.setPassword(cred,alias,password)) {
                        getResponse().setStatus(Status.CLIENT_ERROR_NOT_FOUND);
                        return null;
View Full Code Here

Examples of org.codehaus.plexus.redback.users.UserManager.updateUser()

        securitySystem.getPolicy().setEnabled( false );
        userManager.addUser( user );
        securitySystem.getPolicy().setEnabled( true );

        user.setPassword( password );
        userManager.updateUser( user );

        return user;
    }

    @Test
View Full Code Here

Examples of org.codehaus.plexus.redback.users.UserManager.updateUser()

        securitySystem.getPolicy().setEnabled( false );
        userManager.addUser( user );
        securitySystem.getPolicy().setEnabled( true );
       
        user.setPassword( password );       
        userManager.updateUser( user );
       
        return user;
    }
   
    public void testIsAuthorizedUserExistsButNotAuthorized()
View Full Code Here

Examples of org.codehaus.plexus.redback.users.UserManager.updateUser()

        securitySystem.getPolicy().setEnabled( false );
        userManager.addUser( user );
        securitySystem.getPolicy().setEnabled( true );

        user.setPassword( password );
        userManager.updateUser( user );

        return user;
    }

    @Test
View Full Code Here

Examples of org.codehaus.plexus.security.user.UserManager.updateUser()

        user.setEmail( "superuser@somedomain.com" );
        user.setPassword( "superpass" );
        user.setFullName( "Super User" );

        um.updateUser( user );

        // find updated user
        user = um.findUser( "root" );
        assertNotNull( user );
        assertEquals( "superuser@somedomain.com", user.getEmail() );
View Full Code Here

Examples of org.eclipse.orion.server.core.metastore.IMetaStore.updateUser()

        String diskUsage = getFolderSize(userRoot);
        UserInfo userInfo = metaStore.readUser(userId);
        // try to store the disk usage timestamp and value in the user profile
        userInfo.setProperty(UserConstants2.DISK_USAGE, diskUsage);
        userInfo.setProperty(UserConstants2.DISK_USAGE_TIMESTAMP, new Long(System.currentTimeMillis()).toString());
        metaStore.updateUser(userInfo);
      }
      if (logger.isInfoEnabled()) {
        logger.info("Orion disk usage user data updated"); //$NON-NLS-1$
      }
View Full Code Here

Examples of org.exolab.jms.persistence.PersistenceAdapter.updateUser()

        if (_userCache.get(user.getUsername()) != null) {
            try {
                _database.begin();
                Connection connection = _database.getConnection();
                adapter.updateUser(connection, user);
                _database.commit();
                addToUserCache(user);
                success = true;
            } catch (Exception exception) {
                _log.error("Failed to update user", exception);
View Full Code Here

Examples of org.geoserver.security.GeoServerUserGroupStore.updateUser()

       
       
        // Test disabled user
        ugStore =  ugService.createStore();
        sa.setEnabled(false);
        ugStore.updateUser(sa);
        ugStore.store();
       
        assertNull(provider.authenticate(token));
       
        // test invalid user
View Full Code Here

Examples of org.glassfish.security.common.FileRealmHelper.updateUser()

                //Authenticate the old password
                String[] groups = helper.authenticate(programOpts.getUser(), password.toCharArray());
                if (groups == null) {
                    throw new CommandException(strings.get("InvalidCredentials", programOpts.getUser()));
                }
                helper.updateUser(programOpts.getUser(), programOpts.getUser(), newpassword.toCharArray(), null);
                helper.persist();
                return SUCCESS;

            } else {
                //Cannot change password locally for non file realms
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.