|
||||||||||
| 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(java.lang.String type,
java.lang.String friendlyType)
Initialize the type and friendlyType |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
|
java.lang.String |
getFriendlyType()
Gets the name of the type |
static StructuredContentRuleType |
getInstance(java.lang.String type)
Allows translation from the passed in String to a StructuredContentRuleType |
java.lang.String |
getType()
Gets the type |
int |
hashCode()
|
void |
setType(java.lang.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(java.lang.String type,
java.lang.String friendlyType)
type - friendlyType - | Method Detail |
|---|
public static StructuredContentRuleType getInstance(java.lang.String type)
StructuredContentRuleType
type -
public void setType(java.lang.String type)
type - public java.lang.String getType()
getType in interface BroadleafEnumerationTypepublic java.lang.String getFriendlyType()
getFriendlyType in interface BroadleafEnumerationTypepublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||