org.broadleafcommerce.core.offer.service.type
Class OfferDeliveryType

java.lang.Object
  extended by org.broadleafcommerce.core.offer.service.type.OfferDeliveryType
All Implemented Interfaces:
Serializable, Comparable<OfferDeliveryType>, BroadleafEnumerationType

public class OfferDeliveryType
extends Object
implements Serializable, BroadleafEnumerationType, Comparable<OfferDeliveryType>

An extendible enumeration of delivery types. Enumeration of how the offer should be applied. AUTOMATIC - will be applied to everyone's order MANUAL - offer is manually assigned to a Customer by an administrator CODE - a offer code must be supplied in order to receive this offer

See Also:
Serialized Form

Field Summary
static OfferDeliveryType AUTOMATIC
           
static OfferDeliveryType CODE
           
static OfferDeliveryType MANUAL
           
 
Constructor Summary
OfferDeliveryType()
           
OfferDeliveryType(String type, String friendlyType, int order)
           
 
Method Summary
 int compareTo(OfferDeliveryType arg0)
           
 boolean equals(Object obj)
           
 String getFriendlyType()
           
static OfferDeliveryType getInstance(String type)
           
 int getOrder()
           
 String getType()
           
 int hashCode()
           
 void setOrder(int order)
           
 void setType(String type)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

AUTOMATIC

public static final OfferDeliveryType AUTOMATIC

CODE

public static final OfferDeliveryType CODE

MANUAL

public static final OfferDeliveryType MANUAL
Constructor Detail

OfferDeliveryType

public OfferDeliveryType()

OfferDeliveryType

public OfferDeliveryType(String type,
                         String friendlyType,
                         int order)
Method Detail

getInstance

public static OfferDeliveryType getInstance(String type)

setType

public void setType(String type)

getType

public String getType()
Specified by:
getType in interface BroadleafEnumerationType

getFriendlyType

public String getFriendlyType()
Specified by:
getFriendlyType in interface BroadleafEnumerationType

getOrder

public int getOrder()

setOrder

public void setOrder(int order)

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

compareTo

public int compareTo(OfferDeliveryType arg0)
Specified by:
compareTo in interface Comparable<OfferDeliveryType>


Copyright © 2013. All Rights Reserved.