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 Details

    • id

      protected Long id
    • matchRule

      protected String matchRule
  • Constructor Details

    • PageRuleImpl

      public PageRuleImpl()
  • Method Details

    • 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 org.broadleafcommerce.common.rule.SimpleRule
    • setMatchRule

      public void setMatchRule(String matchRule)
      Specified by:
      setMatchRule in interface org.broadleafcommerce.common.rule.SimpleRule
    • 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
    • createOrRetrieveCopyInstance

      public <G extends PageRule> org.broadleafcommerce.common.copy.CreateResponse<G> createOrRetrieveCopyInstance(org.broadleafcommerce.common.copy.MultiTenantCopyContext context) throws CloneNotSupportedException
      Specified by:
      createOrRetrieveCopyInstance in interface org.broadleafcommerce.common.copy.MultiTenantCloneable<PageRule>
      Throws:
      CloneNotSupportedException