Class PageRuleType
java.lang.Object
org.broadleafcommerce.cms.page.service.type.PageRuleType
- All Implemented Interfaces:
Serializable,org.broadleafcommerce.common.BroadleafEnumerationType
public class PageRuleType
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 PageRuleTypestatic final PageRuleTypestatic final PageRuleTypestatic final PageRuleType -
Constructor Summary
ConstructorsConstructorDescriptionPageRuleType(String type, String friendlyType) Initialize the type and friendlyType -
Method Summary
Modifier and TypeMethodDescriptionbooleanGets the name of the typestatic PageRuleTypegetInstance(String type) Allows translation from the passed in String to aPageRuleTypegetType()Gets the typeinthashCode()voidSets the type
-
Field Details
-
REQUEST
-
TIME
-
PRODUCT
-
CUSTOMER
-
-
Constructor Details
-
PageRuleType
public PageRuleType() -
PageRuleType
Initialize the type and friendlyType- Type Parameters:
code- typecode- friendlyType
-
-
Method Details
-
getInstance
Allows translation from the passed in String to aPageRuleType- 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
-