Tabnine Logo
Account.getName
Code IndexAdd Tabnine to your IDE (free)

How to use
getName
method
in
org.killbill.billing.account.api.Account

Best Java code snippets using org.killbill.billing.account.api.Account.getName (Showing top 20 results out of 315)

origin: killbill/killbill

@Override
public Pagination<Account> searchAccounts(final String searchKey, final Long offset, final Long limit, final TenantContext tenantContext) {
  final List<Account> results = new LinkedList<Account>();
  for (final Account account : accounts) {
    if ((account.getName() != null && account.getName().contains(searchKey)) ||
      (account.getEmail() != null && account.getEmail().contains(searchKey)) ||
      (account.getExternalKey() != null && account.getExternalKey().contains(searchKey)) ||
      (account.getCompanyName() != null && account.getCompanyName().contains(searchKey))) {
      results.add(account);
    }
  }
  return DefaultPagination.<Account>build(offset, limit, accounts.size(), results);
}
origin: killbill/killbill

@Test(groups = "fast", description = "Test if Account constructor can accept null values")
public void testConstructorAcceptsNullValues() throws Exception {
  final AccountData accountData = getNullAccountData();
  final Account account = new DefaultAccount(UUID.randomUUID(), accountData);
  Assert.assertNull(account.getExternalKey());
  Assert.assertNull(account.getEmail());
  Assert.assertNull(account.getName());
  Assert.assertNull(account.getFirstNameLength());
  Assert.assertNull(account.getCurrency());
  Assert.assertEquals(account.getBillCycleDayLocal(), (Integer) 0);
  Assert.assertNull(account.getPaymentMethodId());
  Assert.assertNull(account.getTimeZone());
  Assert.assertNull(account.getLocale());
  Assert.assertNull(account.getAddress1());
  Assert.assertNull(account.getAddress2());
  Assert.assertNull(account.getCompanyName());
  Assert.assertNull(account.getCity());
  Assert.assertNull(account.getStateOrProvince());
  Assert.assertNull(account.getCountry());
  Assert.assertNull(account.getPostalCode());
  Assert.assertNull(account.getPhone());
  Assert.assertNull(account.isMigrated());
}
origin: killbill/killbill

private void checkAccountEquals(final Account finalAccount, final Account delegateAccount) {
  Assert.assertEquals(finalAccount.getExternalKey(), delegateAccount.getExternalKey());
  Assert.assertEquals(finalAccount.getEmail(), delegateAccount.getEmail());
  Assert.assertEquals(finalAccount.getName(), delegateAccount.getName());
  Assert.assertEquals(finalAccount.getFirstNameLength(), delegateAccount.getFirstNameLength());
  Assert.assertEquals(finalAccount.getCurrency(), delegateAccount.getCurrency());
  Assert.assertEquals(finalAccount.getBillCycleDayLocal(), delegateAccount.getBillCycleDayLocal());
  Assert.assertEquals(finalAccount.getPaymentMethodId(), delegateAccount.getPaymentMethodId());
  Assert.assertEquals(finalAccount.getTimeZone(), delegateAccount.getTimeZone());
  Assert.assertEquals(finalAccount.getLocale(), delegateAccount.getLocale());
  Assert.assertEquals(finalAccount.getAddress1(), delegateAccount.getAddress1());
  Assert.assertEquals(finalAccount.getAddress2(), delegateAccount.getAddress2());
  Assert.assertEquals(finalAccount.getCompanyName(), delegateAccount.getCompanyName());
  Assert.assertEquals(finalAccount.getCity(), delegateAccount.getCity());
  Assert.assertEquals(finalAccount.getStateOrProvince(), delegateAccount.getStateOrProvince());
  Assert.assertEquals(finalAccount.getCountry(), delegateAccount.getCountry());
  Assert.assertEquals(finalAccount.getPostalCode(), delegateAccount.getPostalCode());
  Assert.assertEquals(finalAccount.getPhone(), delegateAccount.getPhone());
  Assert.assertEquals(finalAccount.getNotes(), delegateAccount.getNotes());
  Assert.assertEquals(finalAccount.isMigrated(), delegateAccount.isMigrated());
}
origin: killbill/killbill

Assert.assertEquals(updatedAccount2.getName(), accountUpdates2.getName());
Assert.assertEquals(updatedAccount2.getFirstNameLength(), updatedAccount2.getFirstNameLength());
Assert.assertEquals(updatedAccount2.getExternalKey(), updatedAccount1.getExternalKey());
origin: killbill/killbill

Assert.assertEquals(retrievedAccount.getName(), account.getName());
Assert.assertEquals(retrievedAccount.getFirstNameLength(), account.getFirstNameLength());
Assert.assertEquals(retrievedAccount.getEmail(), account.getEmail());
origin: killbill/killbill

accountData.setName(name != null ? name : currentAccount.getName());
final Integer firstNameLength = this.firstNameLength != null ? this.firstNameLength : currentAccount.getFirstNameLength();
if (firstNameLength != null) {
origin: stackoverflow.com

 @RequestMapping(value="/availability", method=RequestMethod.GET)
public @ResponseBody AvailabilityStatus getAvailability(@RequestParam String name) {
  for (Account a : accounts.values()) {
    if (a.getName().equals(name)) {
      return AvailabilityStatus.notAvailable(name);
    }
  }
  return AvailabilityStatus.available();
}
origin: stackoverflow.com

 class Account implements Comparable<Account> {
  [...]

  @Override
  public int compareTo(Account another) {
    return name.compareTo(another.getName());
  }
}
origin: stackoverflow.com

for (int index = 0; index < dataStore.size(); index++) {
   Account datum = (Account)dataStore.get(index);
   if (str.equals(datum.getName())) {
     name = datum.getName();
     textArea.setText("Found Account for " + name);
   }
   else
     textArea.setText("No Accounts found!");
 }
origin: stackoverflow.com

 boolean found = false;
for (int index = 0; index < dataStore.size(); index++) {
    Account datum = (Account)dataStore.get(index);

    if (str.equals(datum.getName())) {
      name = datum.getName();
      textArea.setText("Found Account for " + name);
      found = true;
    }
  }
 if(!found){

   textArea.setText("No Accounts found!");
 }
origin: stackoverflow.com

 for( Account account : accountList ) {
  String name = account.getName();
  // .. do whatever you need to for each account...
}
origin: stackoverflow.com

 return FluentIterable.from(allAccounts).transform(new Function<Account,String>(){
  public String apply(Account account){return account.getName();}
}).toImmutableList()
origin: stackoverflow.com

 AccountSync accountsync;
while (entitiesItr.hasNext()) {
  accountsync = new AccountSync();
  Account account = (Account) entitiesItr.next();
  accountsync.setAccountName(account.getName());
  accountsList.add(accountsync);
  System.out.println("1st-name->"+account.getName());
}
origin: stackoverflow.com

 public class AccountRenderer extends DefaultListCellRenderer {

private static final long serialVersionUID = 1L;

@Override
public Component getListCellRendererComponent(JList list, Object value,
    int index, boolean isSelected, boolean cellHasFocus) {
  JLabel renderer = (JLabel) super.getListCellRendererComponent(list, value, index, isSelected, cellHasFocus);
  if (value != null) {
    Account entry = (Account) value;
    renderer.setText(entry.getName());
  }
  return renderer;
}
origin: stackoverflow.com

 void choose(String name) {
  Account found = null;
  for (Account acc : accounts) {
   if (acc.getName().equals(name)) {
     found = acc;
   }
  }
  if (found) {
   selected = found;
  }
  else {
   System.out.println(name + " not found in list.");
}
origin: stackoverflow.com

 Query query=  session.createQuery("from Account where name=?");

Account user=(Account)query.setString(0,user.getName()).uniqueResult();
if(user!=null){
  //Do whatever you want to do
}else{
 //Insert user
}
origin: stackoverflow.com

Facebook facebook = new FacebookFactory().getInstance();
 facebook.setOAuthAppId(Constants.FACEBOOK_APP_ID, Constants.FACEBOOK_APP_SECRET);
 facebook.setOAuthAccessToken(new AccessToken(longToken));
 try {
   String pageToken = null;
   for (Account a : facebook.getAccounts()) {
     if (a.getName().toLowerCase().contains("nameOfPage")) {
       pageToken = a.getAccessToken();
     }
   }
origin: stackoverflow.com

 public int UpdateAcc(Account acc) {

  SQLiteDatabase db = this.getWritableDatabase();
  ContentValues cv = new ContentValues();
  cv.put(colName, acc.getName());
  cv.put(colScore, acc.getScore());
  return db.update(myTable, cv, colID + "=?", new String[]{params});

}
origin: stackoverflow.com

 public class AccountTest {

 public static void main(String[] args) {
  Account account1 = new Account("Jane Green", 50.00);
  Account account2 = new Account("John Blue", -7.53);

  displayAccount(account1);
  ...
 }

 public static void displayAccount(Account accountToDisplay) {
  System.out.printf("%s balance: $%.2f%n",
   accountToDisplay.getName(), accountToDisplay.getBalance());
}
origin: org.kill-bill.billing/killbill-util

@Override
public Pagination<Account> searchAccounts(final String searchKey, final Long offset, final Long limit, final TenantContext tenantContext) {
  final List<Account> results = new LinkedList<Account>();
  for (final Account account : accounts) {
    if ((account.getName() != null && account.getName().contains(searchKey)) ||
      (account.getEmail() != null && account.getEmail().contains(searchKey)) ||
      (account.getExternalKey() != null && account.getExternalKey().contains(searchKey)) ||
      (account.getCompanyName() != null && account.getCompanyName().contains(searchKey))) {
      results.add(account);
    }
  }
  return DefaultPagination.<Account>build(offset, limit, accounts.size(), results);
}
org.killbill.billing.account.apiAccountgetName

Popular methods of Account

  • getId
  • getExternalKey
  • getTimeZone
  • getEmail
  • getCurrency
  • getFirstNameLength
  • getPhone
  • getReferenceTime
  • getBillCycleDayLocal
  • getLocale
  • getParentAccountId
  • getPaymentMethodId
  • getParentAccountId,
  • getPaymentMethodId,
  • isPaymentDelegatedToParent,
  • getAddress1,
  • getAddress2,
  • getCity,
  • getCompanyName,
  • getCountry,
  • getPostalCode

Popular in Java

  • Finding current android device location
  • addToBackStack (FragmentTransaction)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • setScale (BigDecimal)
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • FileWriter (java.io)
    A specialized Writer that writes to a file in the file system. All write requests made by calling me
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • Top Vim plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now