Examples of Account


Examples of com.sun.ebank.ejb.account.Account

        AccountNotFoundException, IllegalAccountTypeException,
        InsufficientFundsException, RemoteException {

        Debug.print("TxControllerBean withdraw");

        Account account = checkAccountArgs(amount, description, accountId);

        String type = account.getType();
        if (DomainUtil.isCreditAccount(type))
            throw new IllegalAccountTypeException(type);

        double newBalance = account.getBalance() - amount;

        if (newBalance < 0.0)
            throw new InsufficientFundsException();

        executeTx(-1 * amount, description, accountId, newBalance, account);
View Full Code Here

Examples of com.sun.jna.platform.win32.Advapi32Util.Account

   
        for(Account group : Advapi32Util.getCurrentUserGroups()) {
            System.out.println(" " + group.fqn + " [" + group.sidString + "]");
        }
   
        Account accountByName = Advapi32Util.getAccountByName(currentUserName);
        System.out.println("AccountByName: " + currentUserName);
        System.out.println(" Fqn: " + accountByName.fqn);
        System.out.println(" Domain: " + accountByName.domain);
        System.out.println(" Sid: " + accountByName.sidString);
       
        Account accountBySid = Advapi32Util.getAccountBySid(new PSID(accountByName.sid));
        System.out.println("AccountBySid: " + accountByName.sidString);
        System.out.println(" Fqn: " + accountBySid.fqn);
        System.out.println(" Name: " + accountBySid.name);
        System.out.println(" Domain: " + accountBySid.domain);
    }
View Full Code Here

Examples of com.testdomain.Account

  }

  // PROPERTY AVAILABLE

  public void testIsPropertyAvailableTrue() throws SQLException {
    List list = sqlMap.queryForList("dynamicIsPropertyAvailable", new Account());
    assertAccount1((Account) list.get(0));
    assertEquals(1, list.size());
  }
View Full Code Here

Examples of com.tll.model.Account

  @Override
  public void doPersistDependentEntities() {
    final Currency currency = createAndPersist(Currency.class, true);

    Account account = create(Asp.class, true);
    account.setCurrency(currency);
    account.setParent(null);
    account = persist(account);
    pkAccount = account.getId();
    pkCurrency = currency.getId();

    Customer customer = create(Customer.class, true);
    customer.setParent(null);
    customer.setCurrency(currency);
View Full Code Here

Examples of com.tll.model.test.Account

    modules.add(new TestPersistenceUnitModelModule());
  }

  private Account getTestEntity() {
    final EntityBeanFactory ebf = injector.getInstance(EntityBeanFactory.class);
    final Account account = ebf.getEntityCopy(Account.class, true);
    final Account parent = ebf.getEntityCopy(Account.class, true);
    final AccountAddress aa1 = ebf.getEntityCopy(AccountAddress.class, true);
    final AccountAddress aa2 = ebf.getEntityCopy(AccountAddress.class, true);

    account.setParent(parent);
    account.addAccountAddress(aa1);
View Full Code Here

Examples of com.tmm.enterprise.microblog.security.Account

    return getEntityManager().find(ToDo.class, id);
  }
 
  @Transactional
  public List<ToDo> loadToDos(String userName){
    Account acc = accountService.loadAccountByUserName(userName);
    Person currentUser = acc.getUserProfile();
   
    if (currentUser!=null){
      return currentUser.getTodoItems();
    }
   
View Full Code Here

Examples of com.twilio.sdk.resource.instance.Account

    httpclient.getParams().setParameter("http.protocol.version", HttpVersion.HTTP_1_1);
    httpclient.getParams().setParameter("http.socket.timeout", new Integer(READ_TIMEOUT));
    httpclient.getParams().setParameter("http.connection.timeout", new Integer(CONNECTION_TIMEOUT));
    httpclient.getParams().setParameter("http.protocol.content-charset", "UTF-8");

    authAccount = new Account(this);
    authAccount.setSid(this.accountSid);
    authAccount.setAuthToken(this.authToken);

  }
View Full Code Here

Examples of com.wesabe.api.accounts.entities.Account

    private Interval interval = new Interval(date(2009, 1, 2), date(2009, 4, 1));
    private ImmutableMap<Interval,MonetarySummaryWithSplits> summaries;

    @Before
    public void setup() {
      final Account account = new Account("Checking", USD);

      final Txaction txaction = new Txaction(account, decimal("-30.00"), date(2009, 2, 13));
      txaction.setStatus(TxactionStatus.DELETED);

      final IntervalSummarizer summarizer = new IntervalSummarizer(new CurrencyExchangeRateMap());
View Full Code Here

Examples of corba.common.Account

        } catch (Exception ex) {
            //Ignore
        }

        org.omg.CORBA.Object obj = poa_.create_reference_with_id(oid, AccountHelper.id());
        Account account = AccountHelper.narrow(obj);

        accountList.put(accountName, account);
        return account;
    }
View Full Code Here

Examples of cxf.common.Account

        Bank port = service.getBankCORBAPort();

        // Test the method Bank.createAccount()
        System.out.println("Creating account called \"Account1\"");
        W3CEndpointReference epr1 = port.createAccount("Account1");
        Account account1 = getAccountFromEPR(epr1);
        System.out.println("Depositing 100.00 into account \'Account1\"");
        account1.deposit(100.00f);
        System.out.println("Current balance of account \"Account1\" is " + account1.getBalance());
        System.out.println();

        /* Re-enable when we have a utility to manipulate the meta data stored
           within the EPR.
        // Test the method Bank.createEprAccount()
        System.out.println("Creating account called \"Account2\"");
        W3CEndpointReference epr2 = port.createEprAccount("Account2");
        Account account2 = getAccountFromEPR(epr2);
        System.out.println("Depositing 5.00 into account \'Account2\"");
        account2.deposit(5.00f);
        System.out.println("Current balance of account \"Account2\" is " + account2.getBalance());
        System.out.println();
        */

        // create two more accounts to use with the getAccount calls
        Account acc3 = getAccountFromEPR(port.createAccount("Account3"));
        acc3.deposit(200.00f);
        Account acc4 = getAccountFromEPR(port.createAccount("Account4"));
        acc4.deposit(400.00f);
       
        // Test the method Bank.getAccount()
        System.out.println("Retrieving account called \"Account3\"");
        W3CEndpointReference epr3 = port.getAccount("Account3");
        Account account3 = getAccountFromEPR(epr3);
        System.out.println("Current balance for \"Account3\" is " + account3.getBalance());
        System.out.println("Depositing 10.00 into account \"Account3\"");
        account3.deposit(10.00f);
        System.out.println("New balance for account \"Account3\" is " + account3.getBalance());
        System.out.println();

        /* Re-enable when we have a utility to manipulate the meta data stored
           within the EPR.
        // Test the method Bank.getEprAccount()
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.