Class PageRuleImpl
java.lang.Object
org.broadleafcommerce.cms.page.domain.PageRuleImpl
- All Implemented Interfaces:
Serializable,PageRule,org.broadleafcommerce.common.copy.MultiTenantCloneable<PageRule>,org.broadleafcommerce.common.extensibility.jpa.copy.ProfileEntity,org.broadleafcommerce.common.rule.SimpleRule
@Entity
public class PageRuleImpl
extends Object
implements PageRule, org.broadleafcommerce.common.extensibility.jpa.copy.ProfileEntity
- Author:
- bpolster
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionBuilds a copy of this content rule.<G extends PageRule>
org.broadleafcommerce.common.copy.CreateResponse<G>createOrRetrieveCopyInstance(org.broadleafcommerce.common.copy.MultiTenantCopyContext context) booleangetId()Gets the primary key.inthashCode()voidSets the primary key.voidsetMatchRule(String matchRule)
-
Field Details
-
id
-
matchRule
-
-
Constructor Details
-
PageRuleImpl
public PageRuleImpl()
-
-
Method Details
-
getId
Description copied from interface:PageRuleGets the primary key. -
setId
Description copied from interface:PageRuleSets the primary key. -
getMatchRule
- Specified by:
getMatchRulein interfaceorg.broadleafcommerce.common.rule.SimpleRule
-
setMatchRule
- Specified by:
setMatchRulein interfaceorg.broadleafcommerce.common.rule.SimpleRule
-
hashCode
public int hashCode() -
equals
-
cloneEntity
Description copied from interface:PageRuleBuilds a copy of this content rule. Used by the content management system when an item is edited.- Specified by:
cloneEntityin interfacePageRule- Returns:
- a copy of this rule
-
createOrRetrieveCopyInstance
public <G extends PageRule> org.broadleafcommerce.common.copy.CreateResponse<G> createOrRetrieveCopyInstance(org.broadleafcommerce.common.copy.MultiTenantCopyContext context) throws CloneNotSupportedException - Specified by:
createOrRetrieveCopyInstancein interfaceorg.broadleafcommerce.common.copy.MultiTenantCloneable<PageRule>- Throws:
CloneNotSupportedException
-