Class StructuredContentRuleType
java.lang.Object
org.broadleafcommerce.cms.structure.service.type.StructuredContentRuleType
- All Implemented Interfaces:
Serializable,org.broadleafcommerce.common.BroadleafEnumerationType
public class StructuredContentRuleType
extends Object
implements Serializable, org.broadleafcommerce.common.BroadleafEnumerationType
An extendible enumeration of offer rule types.
REQUEST - indicates a rule based on the incoming http request.
TIME - indicates a rule based on
PRODUCT - indicates a rule based on
REQUEST - indicates a rule based on the incoming http request.
TIME - indicates a rule based on
timePRODUCT - indicates a rule based on
product
CUSTOMER - indicates a rule based on org.broadleafcommerce.profile.core.domain- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StructuredContentRuleTypestatic final StructuredContentRuleTypestatic final StructuredContentRuleTypestatic final StructuredContentRuleType -
Constructor Summary
ConstructorsConstructorDescriptionStructuredContentRuleType(String type, String friendlyType) Initialize the type and friendlyType -
Method Summary
Modifier and TypeMethodDescriptionbooleanGets the name of the typestatic StructuredContentRuleTypegetInstance(String type) Allows translation from the passed in String to aStructuredContentRuleTypegetType()Gets the typeinthashCode()voidSets the type
-
Field Details
-
REQUEST
-
TIME
-
PRODUCT
-
CUSTOMER
-
-
Constructor Details
-
StructuredContentRuleType
public StructuredContentRuleType() -
StructuredContentRuleType
Initialize the type and friendlyType- Type Parameters:
code- typecode- friendlyType
-
-
Method Details
-
getInstance
Allows translation from the passed in String to aStructuredContentRuleType- Parameters:
type-- Returns:
- The matching rule type
-
getType
Gets the type- Specified by:
getTypein interfaceorg.broadleafcommerce.common.BroadleafEnumerationType- Returns:
-
setType
Sets the type- Parameters:
type-
-
getFriendlyType
Gets the name of the type- Specified by:
getFriendlyTypein interfaceorg.broadleafcommerce.common.BroadleafEnumerationType- Returns:
-
hashCode
public int hashCode() -
equals
-