Liferay 6.1.2-ce-ga3

com.liferay.portlet.shopping.util
Class ShoppingPreferences

java.lang.Object
  extended by com.liferay.portlet.shopping.util.ShoppingPreferences

public class ShoppingPreferences
extends Object


Field Summary
static String CC_NONE
           
static String[] CC_TYPES
           
static String[] CURRENCY_IDS
           
static double[] INSURANCE_RANGE
           
static double[] SHIPPING_RANGE
           
 
Constructor Summary
protected ShoppingPreferences(long companyId, long groupId)
           
 
Method Summary
 String[][] getAlternativeShipping()
           
 String getAlternativeShippingName(int altShipping)
           
 String[] getCcTypes()
           
 String getCurrencyId()
           
 String getEmailFromAddress(long companyId)
           
 String getEmailFromName(long companyId)
           
 String getEmailOrderConfirmationBody()
           
 boolean getEmailOrderConfirmationEnabled()
           
 String getEmailOrderConfirmationSubject()
           
 String getEmailOrderShippingBody()
           
 boolean getEmailOrderShippingEnabled()
           
 String getEmailOrderShippingSubject()
           
static ShoppingPreferences getInstance(long companyId, long groupId)
           
 String[] getInsurance()
           
 String getInsuranceFormula()
           
 double getMinOrder()
           
 String getPayPalEmailAddress()
           
 String[] getShipping()
           
 String getShippingFormula()
           
 double getTaxRate()
           
 String getTaxState()
           
 void setAlternativeShipping(String[][] alternativeShipping)
           
 void setCcTypes(String[] ccTypes)
           
 void setCurrencyId(String currencyId)
           
 void setEmailFromAddress(String emailFromAddress)
           
 void setEmailFromName(String emailFromName)
           
 void setEmailOrderConfirmationBody(String emailOrderConfirmationBody)
           
 void setEmailOrderConfirmationEnabled(boolean emailOrderConfirmationEnabled)
           
 void setEmailOrderConfirmationSubject(String emailOrderConfirmationSubject)
           
 void setEmailOrderShippingBody(String emailOrderShippingBody)
           
 void setEmailOrderShippingEnabled(boolean emailOrderShippingEnabled)
           
 void setEmailOrderShippingSubject(String emailOrderShippingSubject)
           
 void setInsurance(String[] insurance)
           
 void setInsuranceFormula(String insuranceFormula)
           
 void setMinOrder(double minOrder)
           
 void setPayPalEmailAddress(String payPalEmailAddress)
           
 void setShipping(String[] shipping)
           
 void setShippingFormula(String shippingFormula)
           
 void setTaxRate(double taxRate)
           
 void setTaxState(String taxState)
           
 void store()
           
 boolean useAlternativeShipping()
           
 boolean usePayPal()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CC_NONE

public static final String CC_NONE
See Also:
Constant Field Values

CC_TYPES

public static final String[] CC_TYPES

CURRENCY_IDS

public static final String[] CURRENCY_IDS

INSURANCE_RANGE

public static final double[] INSURANCE_RANGE

SHIPPING_RANGE

public static final double[] SHIPPING_RANGE
Constructor Detail

ShoppingPreferences

protected ShoppingPreferences(long companyId,
                              long groupId)
                       throws SystemException
Throws:
SystemException
Method Detail

getInstance

public static ShoppingPreferences getInstance(long companyId,
                                              long groupId)
                                       throws SystemException
Throws:
SystemException

getAlternativeShipping

public String[][] getAlternativeShipping()

getAlternativeShippingName

public String getAlternativeShippingName(int altShipping)

getCcTypes

public String[] getCcTypes()

getCurrencyId

public String getCurrencyId()

getEmailFromAddress

public String getEmailFromAddress(long companyId)
                           throws SystemException
Throws:
SystemException

getEmailFromName

public String getEmailFromName(long companyId)
                        throws SystemException
Throws:
SystemException

getEmailOrderConfirmationBody

public String getEmailOrderConfirmationBody()

getEmailOrderConfirmationEnabled

public boolean getEmailOrderConfirmationEnabled()

getEmailOrderConfirmationSubject

public String getEmailOrderConfirmationSubject()

getEmailOrderShippingBody

public String getEmailOrderShippingBody()

getEmailOrderShippingEnabled

public boolean getEmailOrderShippingEnabled()

getEmailOrderShippingSubject

public String getEmailOrderShippingSubject()

getInsurance

public String[] getInsurance()

getInsuranceFormula

public String getInsuranceFormula()

getMinOrder

public double getMinOrder()

getPayPalEmailAddress

public String getPayPalEmailAddress()

getShipping

public String[] getShipping()

getShippingFormula

public String getShippingFormula()

getTaxRate

public double getTaxRate()

getTaxState

public String getTaxState()

setAlternativeShipping

public void setAlternativeShipping(String[][] alternativeShipping)
                            throws ReadOnlyException
Throws:
ReadOnlyException

setCcTypes

public void setCcTypes(String[] ccTypes)
                throws ReadOnlyException
Throws:
ReadOnlyException

setCurrencyId

public void setCurrencyId(String currencyId)
                   throws ReadOnlyException
Throws:
ReadOnlyException

setEmailFromAddress

public void setEmailFromAddress(String emailFromAddress)
                         throws ReadOnlyException
Throws:
ReadOnlyException

setEmailFromName

public void setEmailFromName(String emailFromName)
                      throws ReadOnlyException
Throws:
ReadOnlyException

setEmailOrderConfirmationBody

public void setEmailOrderConfirmationBody(String emailOrderConfirmationBody)
                                   throws ReadOnlyException
Throws:
ReadOnlyException

setEmailOrderConfirmationEnabled

public void setEmailOrderConfirmationEnabled(boolean emailOrderConfirmationEnabled)
                                      throws ReadOnlyException
Throws:
ReadOnlyException

setEmailOrderConfirmationSubject

public void setEmailOrderConfirmationSubject(String emailOrderConfirmationSubject)
                                      throws ReadOnlyException
Throws:
ReadOnlyException

setEmailOrderShippingBody

public void setEmailOrderShippingBody(String emailOrderShippingBody)
                               throws ReadOnlyException
Throws:
ReadOnlyException

setEmailOrderShippingEnabled

public void setEmailOrderShippingEnabled(boolean emailOrderShippingEnabled)
                                  throws ReadOnlyException
Throws:
ReadOnlyException

setEmailOrderShippingSubject

public void setEmailOrderShippingSubject(String emailOrderShippingSubject)
                                  throws ReadOnlyException
Throws:
ReadOnlyException

setInsurance

public void setInsurance(String[] insurance)
                  throws ReadOnlyException
Throws:
ReadOnlyException

setInsuranceFormula

public void setInsuranceFormula(String insuranceFormula)
                         throws ReadOnlyException
Throws:
ReadOnlyException

setMinOrder

public void setMinOrder(double minOrder)
                 throws ReadOnlyException
Throws:
ReadOnlyException

setPayPalEmailAddress

public void setPayPalEmailAddress(String payPalEmailAddress)
                           throws ReadOnlyException
Throws:
ReadOnlyException

setShipping

public void setShipping(String[] shipping)
                 throws ReadOnlyException
Throws:
ReadOnlyException

setShippingFormula

public void setShippingFormula(String shippingFormula)
                        throws ReadOnlyException
Throws:
ReadOnlyException

setTaxRate

public void setTaxRate(double taxRate)
                throws ReadOnlyException
Throws:
ReadOnlyException

setTaxState

public void setTaxState(String taxState)
                 throws ReadOnlyException
Throws:
ReadOnlyException

store

public void store()
           throws IOException,
                  ValidatorException
Throws:
IOException
ValidatorException

useAlternativeShipping

public boolean useAlternativeShipping()

usePayPal

public boolean usePayPal()

Liferay 6.1.2-ce-ga3