pulse - the web application framework Get pulse at SourceForge.net. Fast, secure and Free Open Source software downloads Ohloh project report for pulse-java

org.torweg.pulse.component.util.model
Class Retailer

java.lang.Object
  extended by org.torweg.pulse.util.entity.AbstractBasicEntity
      extended by org.torweg.pulse.util.entity.AbstractNamedEntity
          extended by org.torweg.pulse.util.entity.AbstractNamableEntity
              extended by org.torweg.pulse.component.util.model.AbstractExtendedAddress
                  extended by org.torweg.pulse.component.util.model.Retailer
All Implemented Interfaces:
java.io.Serializable, JDOMable, INameable, INamed

@Entity
public class Retailer
extends AbstractExtendedAddress

Represents a Retailer as used by the utility-component "retailer".

Version:
$Revision: 1577 $
Author:
Christian Schatt, Daniel Dietz
See Also:
Serialized Form

Nested Class Summary
static class Retailer.Type
          Describes the different types of Retailers.
 
Constructor Summary
protected Retailer()
          Deprecated. 
  Retailer(java.lang.String c)
          The Constructor that sets the country of the Retailer.
 
Method Summary
 org.jdom.Element deserializeToJDOM()
          De-serialises the state of the Retailer as a JDOM Element.
 java.lang.String getCustomerNumber()
          Returns the customer number of the Retailer.
 VirtualFile getLogo()
          Returns the logo of the Retailer.
 java.util.BitSet getRetailStoreFilter()
          Returns the filter for the product groups available in the retail store of the Retailer.
 Retailer.Type getType()
          Returns the Retailer.Type of the Retailer.
 java.util.BitSet getWebShopFilter()
          Returns the filter for the product groups available in the web shop of the Retailer.
 void setCustomerNumber(java.lang.String cn)
          Sets the customer number of the Retailer.
 void setLogo(VirtualFile l)
          Sets the logo of the Retailer.
 void setRetailStoreFilter(java.util.BitSet f)
          Sets the filter for the product groups available in the retail store of the Retailer.
 void setType(Retailer.Type t)
          Sets the Retailer.Type of the Retailer.
 void setWebShopFilter(java.util.BitSet f)
          Sets the filter for the product groups available in the web shop of the Retailer.
 net.sf.json.JSONObject toJSON()
          Returns a JSON-representation of the Retailer.
 
Methods inherited from class org.torweg.pulse.component.util.model.AbstractExtendedAddress
getCity, getContactPerson, getCountry, getEmail, getFaxNumber, getMobilePhoneNumber, getPhoneNumber, getPostalCode, getState, getStreet, getUrl, setCity, setContactPerson, setCountry, setEmail, setFaxNumber, setMobilePhoneNumber, setPhoneNumber, setPostalCode, setState, setStreet, setUrl
 
Methods inherited from class org.torweg.pulse.util.entity.AbstractNamableEntity
setName
 
Methods inherited from class org.torweg.pulse.util.entity.AbstractNamedEntity
getName
 
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, toString, wait, wait, wait
 
Methods inherited from interface org.torweg.pulse.util.INameable
setName
 
Methods inherited from interface org.torweg.pulse.util.INamed
getName
 

Constructor Detail

Retailer

@Deprecated
protected Retailer()
Deprecated. 

Used for HibernateTM.


Retailer

public Retailer(java.lang.String c)
The Constructor that sets the country of the Retailer.

Parameters:
c - the country to be set
Method Detail

getCustomerNumber

public final java.lang.String getCustomerNumber()
Returns the customer number of the Retailer.

Returns:
the customer number of the Retailer

setCustomerNumber

public final void setCustomerNumber(java.lang.String cn)
Sets the customer number of the Retailer.

Parameters:
cn - the customer number to be set.

getType

public final Retailer.Type getType()
Returns the Retailer.Type of the Retailer.

Returns:
the Retailer.Type of the Retailer.

setType

public final void setType(Retailer.Type t)
Sets the Retailer.Type of the Retailer.

Parameters:
t - the Retailer.Type of the Retailer.

getLogo

public final VirtualFile getLogo()
Returns the logo of the Retailer.

Returns:
the logo of the Retailer

setLogo

public final void setLogo(VirtualFile l)
Sets the logo of the Retailer.

Parameters:
l - the logo to be set

getRetailStoreFilter

public final java.util.BitSet getRetailStoreFilter()
Returns the filter for the product groups available in the retail store of the Retailer.

Returns:
the filter for the product groups available in the retail store of the Retailer.

setRetailStoreFilter

public final void setRetailStoreFilter(java.util.BitSet f)
Sets the filter for the product groups available in the retail store of the Retailer.

Parameters:
f - the filter to be set

getWebShopFilter

public final java.util.BitSet getWebShopFilter()
Returns the filter for the product groups available in the web shop of the Retailer.

Returns:
the filter for the product groups available in the web shop of the Retailer.

setWebShopFilter

public final void setWebShopFilter(java.util.BitSet f)
Sets the filter for the product groups available in the web shop of the Retailer.

Parameters:
f - the filter to be set

deserializeToJDOM

public final org.jdom.Element deserializeToJDOM()
De-serialises the state of the Retailer as a JDOM Element.

Specified by:
deserializeToJDOM in interface JDOMable
Overrides:
deserializeToJDOM in class AbstractExtendedAddress
Returns:
the state of the Retailer as a JDOM Element.

toJSON

public final net.sf.json.JSONObject toJSON()
Returns a JSON-representation of the Retailer.

Overrides:
toJSON in class AbstractExtendedAddress
Returns:
a JSONObject