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

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

public class OfferDeliveryType
extends java.lang.Object
implements java.io.Serializable, BroadleafEnumerationType

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(java.lang.String type, java.lang.String friendlyType)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getFriendlyType()
           
static OfferDeliveryType getInstance(java.lang.String type)
           
 java.lang.String getType()
           
 int hashCode()
           
 void setType(java.lang.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

MANUAL

public static final OfferDeliveryType MANUAL

CODE

public static final OfferDeliveryType CODE
Constructor Detail

OfferDeliveryType

public OfferDeliveryType()

OfferDeliveryType

public OfferDeliveryType(java.lang.String type,
                         java.lang.String friendlyType)
Method Detail

getInstance

public static OfferDeliveryType getInstance(java.lang.String type)

setType

public void setType(java.lang.String type)

getType

public java.lang.String getType()
Specified by:
getType in interface BroadleafEnumerationType

getFriendlyType

public java.lang.String getFriendlyType()
Specified by:
getFriendlyType in interface BroadleafEnumerationType

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


Copyright © 2012. All Rights Reserved.