org.broadleafcommerce.cms.structure.domain
Class StructuredContentRuleImpl
java.lang.Object
org.broadleafcommerce.cms.structure.domain.StructuredContentRuleImpl
- All Implemented Interfaces:
- Serializable, StructuredContentRule
@Entity
public class StructuredContentRuleImpl
- extends Object
- implements StructuredContentRule
- Author:
- jfischer
- See Also:
- Serialized Form
id
protected Long id
matchRule
protected String matchRule
StructuredContentRuleImpl
public StructuredContentRuleImpl()
getId
public Long getId()
- Description copied from interface:
StructuredContentRule
- Gets the primary key.
- Specified by:
getId in interface StructuredContentRule
- Returns:
- the primary key
setId
public void setId(Long id)
- Description copied from interface:
StructuredContentRule
- Sets the primary key.
- Specified by:
setId in interface StructuredContentRule
- Parameters:
id - the new primary key
getMatchRule
public String getMatchRule()
- Specified by:
getMatchRule in interface StructuredContentRule
- Returns:
- the rule as an MVEL string
setMatchRule
public void setMatchRule(String matchRule)
- Description copied from interface:
StructuredContentRule
- Sets the match rule used to test this item.
- Specified by:
setMatchRule in interface StructuredContentRule
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals in class Object
cloneEntity
public StructuredContentRule cloneEntity()
- Description copied from interface:
StructuredContentRule
- Builds a copy of this content rule. Used by the content management system when an
item is edited.
- Specified by:
cloneEntity in interface StructuredContentRule
- Returns:
- a copy of this rule
Copyright © 2011. All Rights Reserved.