org.broadleafcommerce.cms.structure.domain
Class StructuredContentRuleImpl

java.lang.Object
  extended by 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

Field Summary
protected  Long id
           
protected  String matchRule
           
 
Constructor Summary
StructuredContentRuleImpl()
           
 
Method Summary
 StructuredContentRule cloneEntity()
          Builds a copy of this content rule.
 boolean equals(Object obj)
           
 Long getId()
          Gets the primary key.
 String getMatchRule()
           
 int hashCode()
           
 void setId(Long id)
          Sets the primary key.
 void setMatchRule(String matchRule)
          Sets the match rule used to test this item.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

id

protected Long id

matchRule

protected String matchRule
Constructor Detail

StructuredContentRuleImpl

public StructuredContentRuleImpl()
Method Detail

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.