Examples of Account


Examples of com.gcrm.domain.Account

            document.setFileName(this.uploadFileName);
            attachment.setContent(input);
        }

        if ("Account".equals(this.getRelationKey())) {
            Account account = accountService.getEntityById(Account.class,
                    Integer.valueOf(this.getRelationValue()));
            Set<Account> accounts = document.getAccounts();
            if (accounts == null) {
                accounts = new HashSet<Account>();
            }
View Full Code Here

Examples of com.gmail.mirelatrue.xpbank.Account

        return api.getMsg("currencyName");
    }

    @Override
    public boolean hasAccount (String playerName) {
        Account account = api.getAccount(playerName);

        if (account != null) {
            return true;
        }
View Full Code Here

Examples of com.google.api.ads.adwords.awreporting.kratubackend.data.Account

   */
  @Test
  public void testRun() {
    Date date1 = DateUtil.parseDateTime("20140601").toDate();

    Account account = new Account();
    account.setCurrencyCode("EUR");
    account.setDateTimeZone("Europe/Paris");
    account.setExternalCustomerId(777L);
    account.setName("Account1");

    Kratu kratu1 = new Kratu(123L, account, date1);
   
    assertEquals(kratu1.getTopAccountId(), new Long(123));
    assertEquals(kratu1.getExternalCustomerId(), new Long(777));
View Full Code Here

Examples of com.google.apps.easyconnect.easyrp.client.basic.data.Account

   * @param request the request object
   * @return whether the email is registered
   */
  public String checkEmailRegistered(GitRequest request) {
    Preconditions.checkArgument(!Strings.isNullOrEmpty(request.getIdentifier()));
    Account account = Context.getAccountService().getAccountByEmail(request.getIdentifier());
    request.setAccountInDB(account);
    String ret = (account == null) ? "unregistered" : "registered";
    log.info("[checkEmailRegistered] result: " + ret);
    return ret;
  }
View Full Code Here

Examples of com.google.gerrit.reviewdb.client.Account

    init();
    format();
    if (shouldSendMessage()) {
      if (fromId != null) {
        final Account fromUser = args.accountCache.get(fromId).getAccount();

        if (fromUser.getGeneralPreferences().isCopySelfOnEmails()) {
          // If we are impersonating a user, make sure they receive a CC of
          // this message so they can always review and audit what we sent
          // on their behalf to others.
          //
          add(RecipientType.CC, fromId);

        } else if (rcptTo.remove(fromId)) {
          // If they don't want a copy, but we queued one up anyway,
          // drop them from the recipient lists.
          //
          final String fromEmail = fromUser.getPreferredEmail();
          for (Iterator<Address> i = smtpRcptTo.iterator(); i.hasNext();) {
            if (i.next().email.equals(fromEmail)) {
              i.remove();
            }
          }
View Full Code Here

Examples of com.googlecode.memwords.domain.Account

        try {
            tx.begin();
            Card card = new Card();
            card.setInitializationVector(cryptoEngine.generateInitializationVector());
            updateCard(card, cardDetails, encryptionKey, true);
            Account account = em.find(Account.class, userId);
            account.addCard(card);
            em.persist(card);
            tx.commit();
            return card;
        }
        finally {
View Full Code Here

Examples of com.greatmancode.craftconomy3.account.Account

  @Override
  public EconomyResponse bankHas(String name, double amount) {

    if (Common.getInstance().getAccountManager().exist(Account.BANK_PREFIX + name)) {
      Account account = Common.getInstance().getAccountManager().getAccount(Account.BANK_PREFIX + name);
      if (account.hasEnough(amount, Common.getInstance().getServerCaller().getDefaultWorld(), Common.getInstance().getCurrencyManager().getDefaultCurrency().getName())) {
        return new EconomyResponse(0, bankBalance(Account.BANK_PREFIX + name).balance, ResponseType.SUCCESS, "");
      } else {
        return new EconomyResponse(0, bankBalance(Account.BANK_PREFIX + name).balance, ResponseType.FAILURE, "The bank does not have enough money!");
      }
    }
View Full Code Here

Examples of com.gwesm.core.Account

    DAO dao = new CastorDAO();

    // Creation de l'arbre
    GWESM gwesm = new GWESM();

    Account account1 = new Account("Mon Compte");
    gwesm.addAccount(account1);

    // Verif création
    Assert.assertEquals(1, gwesm.getAccounts().size());
View Full Code Here

Examples of com.hamidh.azad92.flash.account.Account

  public void setPassword(String password) {
    this.password = password;
  }

  public Account createAccount() {
        return new Account(getEmail(), getPassword(), "ROLE_USER");
  }
View Full Code Here

Examples of com.iCo6.system.Account

                try {
                    try{
                        run.query(old, "SELECT * FROM " + table, new ResultSetHandler(){
                            public Object handle(ResultSet rs) throws SQLException {
                                Account current = null;
                                Boolean next = rs.next();

                                if(next)
                                    if(iConomy.Accounts.exists(rs.getString("username")))
                                        current = iConomy.Accounts.get(rs.getString("username"));
                                    else
                                        iConomy.Accounts.create(rs.getString("username"), rs.getDouble("balance"));

                                if(current != null)
                                    current.getHoldings().setBalance(rs.getDouble("balance"));

                                if(next)
                                    if(iConomy.Accounts.exists(rs.getString("username")))
                                        if(rs.getBoolean("hidden"))
                                            iConomy.Accounts.get(rs.getString("username")).setStatus(1);
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.