|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.broadleafcommerce.cms.structure.service.type.StructuredContentRuleType
public class StructuredContentRuleType
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 StructuredContentRuleType |
CUSTOMER
|
static StructuredContentRuleType |
PRODUCT
|
static StructuredContentRuleType |
REQUEST
|
static StructuredContentRuleType |
TIME
|
| Constructor Summary | |
|---|---|
StructuredContentRuleType()
|
|
StructuredContentRuleType(String type,
String friendlyType)
Initialize the type and friendlyType |
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
|
String |
getFriendlyType()
Gets the name of the type |
static StructuredContentRuleType |
getInstance(String type)
Allows translation from the passed in String to a StructuredContentRuleType |
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 StructuredContentRuleType REQUEST
public static final StructuredContentRuleType TIME
public static final StructuredContentRuleType PRODUCT
public static final StructuredContentRuleType CUSTOMER
| Constructor Detail |
|---|
public StructuredContentRuleType()
public StructuredContentRuleType(String type,
String friendlyType)
type - friendlyType - | Method Detail |
|---|
public static StructuredContentRuleType getInstance(String type)
StructuredContentRuleType
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 | |||||||||