Examples of deleteAccount()


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

            UserDatabase udb = UserDatabaseManager.getInstance().getUserDatabase(currentUser.getRealm());
            for (int i = 0; accounts != null && i < accounts.length; i++) {
                User user = udb.getAccount(accounts[i]);
                if(udb.supportsAccountCreation()) {
                  try {
                        udb.deleteAccount(user);
                        CoreServlet.getServlet().fireCoreEvent(new CoreEvent(this, CoreEventConstants.USER_REMOVED, null, null, CoreEvent.STATE_SUCCESSFUL)
                            .addAttribute(CoreAttributeConstants.EVENT_ATTR_PRINCIPAL_ID, user.getPrincipalName())
                            .addAttribute(CoreAttributeConstants.EVENT_ATTR_FULL_NAME, user.getFullname()));
                  } catch (Exception e) {
                      CoreServlet.getServlet().fireCoreEvent(new CoreEvent(this, CoreEventConstants.USER_REMOVED, null, null, e)
View Full Code Here

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

                                element.invalidate();
                            }
                        }
                        // Revoke all polices from the user
                        PolicyDatabaseFactory.getInstance().revokeAllPoliciesFromPrincipal(user);
                        udb.deleteAccount(user);
                        CoreServlet.getServlet().fireCoreEvent(
                            new CoreEvent(this, CoreEventConstants.USER_REMOVED, null, null, CoreEvent.STATE_SUCCESSFUL)
                                .addAttribute(CoreAttributeConstants.EVENT_ATTR_PRINCIPAL_ID, user.getPrincipalName())
                                .addAttribute(CoreAttributeConstants.EVENT_ATTR_FULL_NAME, user.getFullname()));
                    } catch (Exception e) {
View Full Code Here

Examples of com.moneychanger.core.OpenTransactionAccount.deleteAccount()

        // pass serverID and nymID here
        OpenTransactionAccount openTransaction = new OpenTransactionAccount(serverID, nymID);
        try {
            if (userSelection == 0) {
                setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
                boolean status = openTransaction.deleteAccount((String) jTable_AccountTable.getModel().getValueAt(jTable_AccountTable.getSelectedRow(), 3));
                if (status) {
                    JOptionPane.showMessageDialog(this, "Account deleted successfully", "Account deletion", JOptionPane.INFORMATION_MESSAGE);

                    loadAccount(assetID, serverID, nymID);
                    clearDetailPage();
View Full Code Here

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

                null,
                "");

        if ((masterpassword != null) && (masterpassword.length() > 0)) {
            Account ac = new Account(accountNameField.getText(),masterpassword);
            ac.deleteAccount();
            JOptionPane.showMessageDialog(this, "Compte " + accountNameField.getText() + " supprimé.\n Les changements seront effectifs au prochain redémarrage du logiciel.");
            this.dispose();
        }
    }//GEN-LAST:event_deleteButtonActionPerformed
View Full Code Here

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

        q.constrain(GDataAccount.class);
        q.descend("name").constrain(account.getName());
        ObjectSet set = q.execute();
        assertEquals(1, set.size());

        storage.deleteAccount(account.getName());
        container.close();
        container = getContainer();
        q = container.query();
        q.constrain(GDataAccount.class);
        q.descend("name").constrain(account.getName());
View Full Code Here

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

        q.constrain(GDataAccount.class);
        q.descend("name").constrain(account.getName());
        set = q.execute();
        assertEquals(0, set.size());
        try {
            storage.deleteAccount("notstored");
            fail("account not stored");
        } catch (Exception e) {
            //
        }
        try {
View Full Code Here

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

            fail("account not stored");
        } catch (Exception e) {
            //
        }
        try {
            storage.deleteAccount(null);
            fail("name is null");
        } catch (Exception e) {
            //
        }
        container.close();
View Full Code Here

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

       
        try {
            executeWithBroker(new BrokerOperation<Void>() {
                @Override
                public Void withBroker(final DBBroker broker) throws EXistException, URISyntaxException, PermissionDeniedException {
                    manager.deleteAccount(name);
                    return null;
                }
            });
        } catch (final URISyntaxException use) {
            throw new EXistException(use.getMessage(), use);
View Full Code Here

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

                if(currentUser.getName().equals(username)) {
                    throw new XPathException("You cannot remove yourself i.e. the currently logged in user.");
                }

                securityManager.deleteAccount(username);

            } else {

                final String password = args[1].getStringValue();
View Full Code Here

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

                public Void withBroker(DBBroker broker) throws XMLDBException, LockException, PermissionDeniedException, IOException, EXistException, TriggerException, SyntaxException {
                    final SecurityManager sm = broker.getBrokerPool().getSecurityManager();
                    if(!sm.hasAdminPrivileges(user))
                      {throw new XMLDBException(ErrorCodes.PERMISSION_DENIED, "you are not allowed to remove users");}
         
                    sm.deleteAccount(u);
                   
                    return null;
                }
            });
        } catch(final Exception e) {
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.