Esempio n. 1
0
  public final List<PaymentType> availablePaymentTypes() {
    // List<PaymentType> listOfPaymentTypes = Arrays.asList(PaymentType.values());
    List<PaymentType> minimumPaymentTypes = new ArrayList<PaymentType>();

    List<PaymentType> avaiablePaymentTypes = new ArrayList<PaymentType>();
    minimumPaymentTypes.add(PaymentType.CASH);
    minimumPaymentTypes.add(PaymentType.CHECK);
    minimumPaymentTypes.add(PaymentType.RTGS);

    String str = webSiteInfo.getPaymentAvailableTypes();
    if (str == null || "".equals(str.trim())) {
      return minimumPaymentTypes;
    } else {
      String[] parts = str.split("[,]");
      for (String aPart : parts) {
        try {
          PaymentType pt = PaymentType.valueOf(aPart);
          avaiablePaymentTypes.add(pt);
        } catch (IllegalArgumentException e) {

        }
      }
      return avaiablePaymentTypes;
    }
  }
Esempio n. 2
0
 public boolean getIs26ASImportEnabled() {
   String strEriEnable26ASImport = webSiteInfo.getEriEnable26ASImport();
   if (strEriEnable26ASImport == null) {
     return false;
   } else {
     return Boolean.valueOf(strEriEnable26ASImport);
   }
 }
Esempio n. 3
0
  public Integer getTotalNumberOfLicensedUsers() {
    String strNumberOfLicensedUsers = webSiteInfo.getNumberOfLicensedUsers();
    if (strNumberOfLicensedUsers != null) {
      try {
        Integer numberOfLicensedUsers = Integer.parseInt(strNumberOfLicensedUsers);
        return numberOfLicensedUsers;
      } catch (Exception ex) {

      }
    }
    return 0;
  }
Esempio n. 4
0
  public Boolean getAllowSignup() {
    Boolean allowSignup = false;
    String strNumberOfLicensedUsers = webSiteInfo.getNumberOfLicensedUsers();
    if (strNumberOfLicensedUsers != null) {
      try {
        Integer numberOfLicensedUsers = Integer.parseInt(strNumberOfLicensedUsers);
        if (numberOfLicensedUsers != null && numberOfLicensedUsers > 0) {
          allowSignup = true;
        }
      } catch (Exception ex) {

      }
    }
    return allowSignup;
  }
Esempio n. 5
0
 public String getResellerPackage() {
   return webSiteInfo.getResellerPackage();
 }
Esempio n. 6
0
 public String getEndDate() {
   String endDate = webSiteInfo.getEndDate();
   return endDate;
 }
Esempio n. 7
0
 public String getStartDate() {
   String startDate = webSiteInfo.getStartDate();
   return startDate;
 }
Esempio n. 8
0
 public boolean getIsEriEnabled() {
   String strEriEnabled = webSiteInfo.getEriEnabled();
   return Boolean.valueOf(strEriEnabled);
 }