|
|
|
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.torweg.pulse.util.entity.AbstractBasicEntity
org.torweg.pulse.component.shop.model.ShopSettings
@Entity public class ShopSettings
is an entity to store the basic settings of a shop.
| Constructor Summary | |
|---|---|
protected |
ShopSettings()
Deprecated. |
|
ShopSettings(Bundle b,
java.util.Locale l)
creates a new ShopSettings for the given Bundle and
Locale. |
| Method Summary | |
|---|---|
boolean |
addTaxGroup(TaxGroup group)
Adds a TaxGroup to the ShopSettings and sets the ShopSettings for the TaxGroup. |
org.jdom.Element |
deserializeToJDOM()
returns an Element representing the settings. |
Bundle |
getBundle()
returns the bundle. |
java.util.Currency |
getCurrency()
returns the currency. |
java.util.Locale |
getLocale()
returns the locale. |
static ShopSettings |
getSettings(Bundle bundle, ServiceRequest request)
Returns the ShopSettings for the current Bundle and
ServiceRequest. |
java.util.Set<TaxGroup> |
getTaxGroups()
returns the tax groups. |
boolean |
isNetBased()
Tells whether the shop is net based or gross based. |
boolean |
removeTaxGroup(TaxGroup group)
Removes a TaxGroup from the ShopSettings. |
void |
setBundle(Bundle b)
sets the bundle. |
void |
setCurrency(java.util.Currency c)
sets the currency. |
void |
setLocale(java.util.Locale l)
sets the locale. |
void |
setNetBased(boolean nb)
Sets the netBased flag of the shop. |
void |
setTaxGroups(java.util.Set<TaxGroup> tg)
sets the tax groups. |
net.sf.json.JSONObject |
toJSON()
Returns a JSON-representation of the ShopSettings. |
java.lang.String |
toString()
returns a string representation of the shop settings. |
| Methods inherited from class org.torweg.pulse.util.entity.AbstractBasicEntity |
|---|
compareTo, equals, getFullQualifiedClassNameJAXB, getId, hashCode |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
@Deprecated protected ShopSettings()
public ShopSettings(Bundle b,
java.util.Locale l)
ShopSettings for the given Bundle and
Locale.
b - the bundlel - the locale| Method Detail |
|---|
public final Bundle getBundle()
public final void setBundle(Bundle b)
b - the bundle to setpublic final java.util.Locale getLocale()
public final void setLocale(java.util.Locale l)
l - the locale to setpublic final java.util.Currency getCurrency()
public final void setCurrency(java.util.Currency c)
c - the currency to setpublic final boolean isNetBased()
true if the shop is net based, or false if the
shop is gross based.public final void setNetBased(boolean nb)
nb - the netBased flag to be set.public final java.util.Set<TaxGroup> getTaxGroups()
public final void setTaxGroups(java.util.Set<TaxGroup> tg)
tg - the tax groups to setpublic final boolean addTaxGroup(TaxGroup group)
TaxGroup to the ShopSettings and sets the ShopSettings for the TaxGroup.
group - the TaxGroup to add
true, if the tax group has been addedpublic final boolean removeTaxGroup(TaxGroup group)
TaxGroup from the ShopSettings.
group - the TaxGroup to add
true, if the tax group has been removedpublic java.lang.String toString()
toString in class java.lang.Objectpublic static final ShopSettings getSettings(Bundle bundle, ServiceRequest request)
ShopSettings for the current Bundle and
ServiceRequest.
bundle - the current Bundlerequest - the current ServiceRequest
ShopSettingspublic final org.jdom.Element deserializeToJDOM()
Element representing the settings.
deserializeToJDOM in interface JDOMableElement representing the settingspublic final net.sf.json.JSONObject toJSON()
ShopSettings.
ShopSettings
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||