org.broadleafcommerce.cms.page.service.type
Class PageRuleType

java.lang.Object
  extended by org.broadleafcommerce.cms.page.service.type.PageRuleType
All Implemented Interfaces:
Serializable, BroadleafEnumerationType

public class PageRuleType
extends Object
implements Serializable, BroadleafEnumerationType

An extendible enumeration of offer rule types.
REQUEST - indicates a rule based on the incoming http request.
TIME - indicates a rule based on time
PRODUCT - indicates a rule based on product CUSTOMER - indicates a rule based on org.broadleafcommerce.profile.core.domain

See Also:
Serialized Form

Field Summary
static PageRuleType CUSTOMER
           
static PageRuleType PRODUCT
           
static PageRuleType REQUEST
           
static PageRuleType TIME
           
 
Constructor Summary
PageRuleType()
           
PageRuleType(String type, String friendlyType)
          Initialize the type and friendlyType
 
Method Summary
 boolean equals(Object obj)
           
 String getFriendlyType()
          Gets the name of the type
static PageRuleType getInstance(String type)
          Allows translation from the passed in String to a PageRuleType
 String getType()
          Gets the type
 int hashCode()
           
 void setType(String type)
          Sets the type
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

REQUEST

public static final PageRuleType REQUEST

TIME

public static final PageRuleType TIME

PRODUCT

public static final PageRuleType PRODUCT

CUSTOMER

public static final PageRuleType CUSTOMER
Constructor Detail

PageRuleType

public PageRuleType()

PageRuleType

public PageRuleType(String type,
                    String friendlyType)
Initialize the type and friendlyType

Parameters:
type -
friendlyType -
Method Detail

getInstance

public static PageRuleType getInstance(String type)
Allows translation from the passed in String to a PageRuleType

Parameters:
type -
Returns:
The matching rule type

setType

public void setType(String type)
Sets the type

Parameters:
type -

getType

public String getType()
Gets the type

Specified by:
getType in interface BroadleafEnumerationType
Returns:

getFriendlyType

public String getFriendlyType()
Gets the name of the type

Specified by:
getFriendlyType in interface BroadleafEnumerationType
Returns:

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

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


Copyright © 2013. All Rights Reserved.