org.broadleafcommerce.cms.structure.service.type
Class StructuredContentRuleType

java.lang.Object
  extended by org.broadleafcommerce.cms.structure.service.type.StructuredContentRuleType
All Implemented Interfaces:
Serializable, BroadleafEnumerationType

public class StructuredContentRuleType
extends Object
implements Serializable, BroadleafEnumerationType

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

See Also:
Serialized Form

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

REQUEST

public static final StructuredContentRuleType REQUEST

TIME

public static final StructuredContentRuleType TIME

PRODUCT

public static final StructuredContentRuleType PRODUCT

CUSTOMER

public static final StructuredContentRuleType CUSTOMER
Constructor Detail

StructuredContentRuleType

public StructuredContentRuleType()

StructuredContentRuleType

public StructuredContentRuleType(String type,
                                 String friendlyType)
Initialize the type and friendlyType

Parameters:
type -
friendlyType -
Method Detail

getInstance

public static StructuredContentRuleType getInstance(String type)
Allows translation from the passed in String to a StructuredContentRuleType

Parameters:
type -
Returns:
The matching rule type

setType

public void setType(String type)
Sets the type

Parameters:
type -

getType

public String getType()
Gets the type

Specified by:
getType in interface BroadleafEnumerationType
Returns:

getFriendlyType

public String getFriendlyType()
Gets the name of the type

Specified by:
getFriendlyType in interface BroadleafEnumerationType
Returns:

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2012. All Rights Reserved.