Class StructuredContentRuleImpl
java.lang.Object
org.broadleafcommerce.cms.structure.domain.StructuredContentRuleImpl
- All Implemented Interfaces:
Serializable,StructuredContentRule,org.broadleafcommerce.common.copy.MultiTenantCloneable<StructuredContentRule>,org.broadleafcommerce.common.extensibility.jpa.copy.ProfileEntity,org.broadleafcommerce.common.rule.SimpleRule
@Entity
public class StructuredContentRuleImpl
extends Object
implements StructuredContentRule, org.broadleafcommerce.common.extensibility.jpa.copy.ProfileEntity
- Author:
- jfischer
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionBuilds a copy of this content rule.<G extends StructuredContentRule>
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
-
StructuredContentRuleImpl
public StructuredContentRuleImpl()
-
-
Method Details
-
getId
Description copied from interface:StructuredContentRuleGets the primary key.- Specified by:
getIdin interfaceStructuredContentRule- Returns:
- the primary key
-
setId
Description copied from interface:StructuredContentRuleSets the primary key.- Specified by:
setIdin interfaceStructuredContentRule- Parameters:
id- the new 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:StructuredContentRuleBuilds a copy of this content rule. Used by the content management system when an item is edited.- Specified by:
cloneEntityin interfaceStructuredContentRule- Returns:
- a copy of this rule
-
createOrRetrieveCopyInstance
public <G extends StructuredContentRule> org.broadleafcommerce.common.copy.CreateResponse<G> createOrRetrieveCopyInstance(org.broadleafcommerce.common.copy.MultiTenantCopyContext context) throws CloneNotSupportedException - Specified by:
createOrRetrieveCopyInstancein interfaceorg.broadleafcommerce.common.copy.MultiTenantCloneable<StructuredContentRule>- Throws:
CloneNotSupportedException
-