Examples of addAccount()


Examples of name.abuchen.portfolio.model.Client.addAccount()

    {
        Client client = new Client();

        Account account = new Account();
        account.setName("test");
        client.addAccount(account);

        Portfolio portfolio = new Portfolio();
        portfolio.setName("test");
        portfolio.setReferenceAccount(account);
        client.addPortfolio(portfolio);
View Full Code Here

Examples of name.abuchen.portfolio.model.Client.addAccount()

    {
        Client pseudoClient = new Client();

        Account pseudoAccount = new Account();
        pseudoAccount.setName(""); //$NON-NLS-1$
        pseudoClient.addAccount(pseudoAccount);

        Portfolio pseudoPortfolio = new Portfolio();
        pseudoPortfolio.setReferenceAccount(pseudoAccount);
        pseudoClient.addPortfolio(pseudoPortfolio);
View Full Code Here

Examples of net.octal.supinbank.entity.Person.addAccount()

                HashFunction hf = Hashing.sha1();
                HashCode hc = hf.newHasher()
                    .putString(password)
                    .hash();
                customer.setPassword(hc.toString());
                customer.addAccount(account);
                customerService.processCustomer(customer, password);
                response.sendRedirect(getServletContext().getContextPath() +
                            String.format("/auth/admin/customer?id=%d", customer.getId()));
            } catch (GenerationException ex) {
View Full Code Here

Examples of net.octal.supinbank.entity.Person.addAccount()

        {
            try {
                final Long id = Long.parseLong(customerId);
                final Person customer = customerDao.findCustomerById(id);
                if (customer != null) {
                    customer.addAccount(account);
                    accountDao.addAccount(account);
                    response.sendRedirect(getServletContext().getContextPath() +
                            String.format("/auth/admin/customer?id=%d", id));
                }
                else
View Full Code Here

Examples of org.apache.shiro.realm.SimpleAccountRealm.addAccount()

      loginService = new DefaultLoginService();
      remoteInvocationExecutor = new DefaultRemoteInvocationExecutor();
    } else {
      monitoringService = CopperMonitorServiceSecurityProxy.secure(copperMonitoringService);
      final SimpleAccountRealm realm = new SimpleAccountRealm();
      realm.addAccount("user1", "pass1");     
      loginService = new SecureLoginService(realm);
      remoteInvocationExecutor = new SecureRemoteInvocationExecutor();
    }   
    SpringRemotingServer springRemotingServer = new SpringRemotingServer(monitoringService, port, host, loginService);
    springRemotingServer.setRemoteInvocationExecutor(remoteInvocationExecutor);
View Full Code Here

Examples of org.apache.shiro.realm.SimpleAccountRealm.addAccount()

      public void executeLogCreatingAction() {
        FutureTask<Void> futureTask = new FutureTask<Void>(new Runnable() {
          @Override
          public void run() {
            final SimpleAccountRealm realm = new SimpleAccountRealm();
            realm.addAccount("user1", "pass1");
            springRemotingServer = new SpringRemotingServer(CopperMonitorServiceSecurityProxy.secure(Mockito.mock(CopperMonitoringService.class))  ,8087,"localhost", new SecureLoginService(realm));
            springRemotingServer.start();
          }
        },null);
       
View Full Code Here

Examples of org.apache.shiro.realm.SimpleAccountRealm.addAccount()

  @Before
  public void bindSubjectToThread() {
    // setup a simple realm for authc
    SimpleAccountRealm simpleAccountRealm = new SimpleAccountRealm();
    simpleAccountRealm.addAccount("anonymous", "anonymous");
    DefaultSecurityManager securityManager = new DefaultSecurityManager();
    securityManager.setRealm(simpleAccountRealm);

    SecurityUtils.setSecurityManager(securityManager);
View Full Code Here

Examples of org.apache.shiro.realm.SimpleAccountRealm.addAccount()

    }

    private SimpleAccountRealm buildSAR() {
        SimpleAccountRealm sar = new SimpleAccountRealm();
        //              USER        PASS        ROLES ...
        sar.addAccount( "admin",    "admin",    "admin");
        sar.addAccount( "user",     "user",     "user","guest");
        return sar;
    }

}
View Full Code Here

Examples of org.apache.shiro.realm.SimpleAccountRealm.addAccount()

    private SimpleAccountRealm buildSAR() {
        SimpleAccountRealm sar = new SimpleAccountRealm();
        //              USER        PASS        ROLES ...
        sar.addAccount( "admin",    "admin",    "admin");
        sar.addAccount( "user",     "user",     "user","guest");
        return sar;
    }

}
View Full Code Here

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

       
        try {
            executeWithBroker(new BrokerOperation<Void>() {
                @Override
                public Void withBroker(final DBBroker broker) throws EXistException, URISyntaxException, PermissionDeniedException {
                    manager.addAccount(u);
                    return null;
                }
            });
        } catch(final URISyntaxException use) {
            throw new EXistException(use.getMessage(), 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.