|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.broadleafcommerce.cms.page.service.type.PageRuleType
public class PageRuleType
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
| 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 |
|---|
public static final PageRuleType REQUEST
public static final PageRuleType TIME
public static final PageRuleType PRODUCT
public static final PageRuleType CUSTOMER
| Constructor Detail |
|---|
public PageRuleType()
public PageRuleType(String type,
String friendlyType)
type - friendlyType - | Method Detail |
|---|
public static PageRuleType getInstance(String type)
PageRuleType
type -
public void setType(String type)
type - public String getType()
getType in interface BroadleafEnumerationTypepublic String getFriendlyType()
getFriendlyType in interface BroadleafEnumerationTypepublic int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||