Liferay 6.0.5

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()
           
 String getEmailFromName()
           
 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

SHIPPING_RANGE

public static final double[] SHIPPING_RANGE

INSURANCE_RANGE

public static final double[] INSURANCE_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

getPayPalEmailAddress

public String getPayPalEmailAddress()

setPayPalEmailAddress

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

usePayPal

public boolean usePayPal()

getCurrencyId

public String getCurrencyId()

setCurrencyId

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

getCcTypes

public String[] getCcTypes()

setCcTypes

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

getTaxState

public String getTaxState()

setTaxState

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

getTaxRate

public double getTaxRate()

setTaxRate

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

getShippingFormula

public String getShippingFormula()

setShippingFormula

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

getShipping

public String[] getShipping()

setShipping

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

getAlternativeShipping

public String[][] getAlternativeShipping()

setAlternativeShipping

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

useAlternativeShipping

public boolean useAlternativeShipping()

getAlternativeShippingName

public String getAlternativeShippingName(int altShipping)

getInsuranceFormula

public String getInsuranceFormula()

setInsuranceFormula

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

getInsurance

public String[] getInsurance()

setInsurance

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

getMinOrder

public double getMinOrder()

setMinOrder

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

getEmailFromAddress

public String getEmailFromAddress()

setEmailFromAddress

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

getEmailFromName

public String getEmailFromName()

setEmailFromName

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

getEmailOrderConfirmationEnabled

public boolean getEmailOrderConfirmationEnabled()

setEmailOrderConfirmationEnabled

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

getEmailOrderConfirmationBody

public String getEmailOrderConfirmationBody()

setEmailOrderConfirmationBody

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

getEmailOrderConfirmationSubject

public String getEmailOrderConfirmationSubject()

setEmailOrderConfirmationSubject

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

getEmailOrderShippingEnabled

public boolean getEmailOrderShippingEnabled()

setEmailOrderShippingEnabled

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

getEmailOrderShippingBody

public String getEmailOrderShippingBody()

setEmailOrderShippingBody

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

getEmailOrderShippingSubject

public String getEmailOrderShippingSubject()

setEmailOrderShippingSubject

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

store

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

Liferay 6.0.5