Examples of updateAccount()


Examples of com.adito.security.UserDatabase.updateAccount()

                /*
                 * The super exists so just update it
                 */
                if (isSuperUserCreationSupported(udb)) {
                    // (Probably) Already exists, just update
                    udb.updateAccount(user, email, user.getFullname(), user.getRoles());
                    l.add(new WizardActionStatus(WizardActionStatus.COMPLETED_OK, "installation.install.status.superUserUpdated"));
                }
            } catch (Exception unfe) {
                if (isSuperUserCreationSupported(udb)) {
                    udb.createAccount(superUser, superUserPassword, email, "Super User", new Role[] {});
View Full Code Here

Examples of com.adito.security.UserDatabase.updateAccount()

            }

            if (account.getEditing()) {
                user = udb.getAccount(account.getUsername());
                try {
                    udb.updateAccount(user, account.getEmail(), account.getFullname(), roles);
                    CoreEvent coreEvent = new CoreEvent(this, CoreEventConstants.USER_EDITED, user, info)
                        .addAttribute(CoreAttributeConstants.EVENT_ATTR_PRINCIPAL_ID, user.getPrincipalName())
                        .addAttribute(CoreAttributeConstants.EVENT_ATTR_FULL_NAME, user.getFullname())
                      .addAttribute(CoreAttributeConstants.EVENT_ATTR_ACCOUNT_EMAIL, user.getEmail());
View Full Code Here

Examples of com.adito.security.UserDatabase.updateAccount()

                // role is already assigned so make sure this don't happen again
                selectedUsers.remove(principalName);
            } else {
                Role[] updatedRoles = removeRole(role, user.getRoles());
                try {
                    userDatabase.updateAccount(user, user.getEmail(), user.getFullname(), updatedRoles);
                } catch (GroupsRequiredForUserException e) {
                    usersNotRemoved.add(principalName);
                }
            }
        }
View Full Code Here

Examples of com.adito.security.UserDatabase.updateAccount()

        }
       
        for (String principalName : selectedUsers) {
            User user = userDatabase.getAccount(principalName);
            Role[] updatedRoles = addRole(role, user.getRoles());
            userDatabase.updateAccount(user, user.getEmail(), user.getFullname(), updatedRoles);
        }
        return usersNotRemoved.toArray(new String[usersNotRemoved.size()]);
    }
   
    private Role[] addRole(Role role, Role[] userRoles) {
View Full Code Here

Examples of fr.valhalla.mailcheck.Account.updateAccount()

                 Checker c = new Checker(new Account(accountNameField.getText(),masterpassword),parent.getKernel());
                 parent.getContentPane().add(c.getCheckPanel());
                 c.start();
                 parent.pack();
            } else {
                ac.updateAccount(accountNameField.getText(),
                        loginField.getText(),
                        passwordField.getText(),
                        "imap",
                        hostField.getText(),
                        folderField.getText(),
View Full Code Here

Examples of org.apache.lucene.gdata.storage.Storage.updateAccount()

        account.setName("simon");
        account.setPassword("somepass");

        Storage storage = this.controller.getStorage();
        try {
            storage.updateAccount(account);
            fail("Account does not exist");
        } catch (Exception e) {
            //
        }
        try {
View Full Code Here

Examples of org.apache.lucene.gdata.storage.Storage.updateAccount()

            fail("Account does not exist");
        } catch (Exception e) {
            //
        }
        try {
            storage.updateAccount(null);
            fail("Account is null");
        } catch (Exception e) {
            //
        }
        storage.storeAccount(account);
View Full Code Here

Examples of org.apache.lucene.gdata.storage.Storage.updateAccount()

        assertEquals(account.getPassword(), ((GDataAccount) set.next())
                .getPassword());
        account = new GDataAccount();
        account.setName("simon");
        account.setPassword("newPass");
        storage.updateAccount(account);
        container.close();
        container = getContainer();
        q = container.query();
        q.constrain(GDataAccount.class);
        q.descend("name").constrain(account.getName());
View Full Code Here

Examples of org.exist.security.SecurityManager.updateAccount()

                @Override
                public Void withBroker(final DBBroker broker) throws EXistException, URISyntaxException, PermissionDeniedException {
                    final Account account = manager.getAccount(username);
                    final Group group = manager.getGroup(groupName);
                    account.setPrimaryGroup(group);
                    manager.updateAccount(account);
                    return null;
                }
            });
            return true;
        } catch (final URISyntaxException use) {
View Full Code Here

Examples of org.exist.security.SecurityManager.updateAccount()

                @Override
                public Void withBroker(final DBBroker broker) throws EXistException, PermissionDeniedException {
                    final SecurityManager sm = broker.getBrokerPool().getSecurityManager();
                    final Account account = sm.getAccount(accountName);
                    account.addGroup(groupName);
                    sm.updateAccount(account);
                   
                    return null;
                }
            });
        } catch (final URISyntaxException use) {
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.