org.broadleafcommerce.cms.page.domain
Class PageRuleImpl

java.lang.Object
  extended by org.broadleafcommerce.cms.page.domain.PageRuleImpl
All Implemented Interfaces:
Serializable, PageRule

@Entity
public class PageRuleImpl
extends Object
implements PageRule

Author:
bpolster
See Also:
Serialized Form

Field Summary
protected  Long id
           
protected  String matchRule
           
 
Constructor Summary
PageRuleImpl()
           
 
Method Summary
 PageRule 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

PageRuleImpl

public PageRuleImpl()
Method Detail

getId

public Long getId()
Description copied from interface: PageRule
Gets the primary key.

Specified by:
getId in interface PageRule
Returns:
the primary key

setId

public void setId(Long id)
Description copied from interface: PageRule
Sets the primary key.

Specified by:
setId in interface PageRule
Parameters:
id - the new primary key

getMatchRule

public String getMatchRule()
Specified by:
getMatchRule in interface PageRule
Returns:
the rule as an MVEL string

setMatchRule

public void setMatchRule(String matchRule)
Description copied from interface: PageRule
Sets the match rule used to test this item.

Specified by:
setMatchRule in interface PageRule

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

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

cloneEntity

public PageRule cloneEntity()
Description copied from interface: PageRule
Builds a copy of this content rule. Used by the content management system when an item is edited.

Specified by:
cloneEntity in interface PageRule
Returns:
a copy of this rule


Copyright © 2013. All Rights Reserved.