Class IndexFieldImpl

java.lang.Object
org.broadleafcommerce.core.search.domain.IndexFieldImpl
All Implemented Interfaces:
Serializable, org.broadleafcommerce.common.admin.domain.AdminMainEntity, org.broadleafcommerce.common.copy.MultiTenantCloneable<IndexField>, IndexField, IndexFieldAdminPresentation

@Entity public class IndexFieldImpl extends Object implements IndexField, Serializable, IndexFieldAdminPresentation, org.broadleafcommerce.common.admin.domain.AdminMainEntity
Author:
Chad Harchar (charchar)
See Also:
  • Field Details

  • Constructor Details

    • IndexFieldImpl

      public IndexFieldImpl()
  • Method Details

    • getId

      public Long getId()
      Description copied from interface: IndexField
      Gets the id for this search field
      Specified by:
      getId in interface IndexField
      Returns:
    • setId

      public void setId(Long id)
      Description copied from interface: IndexField
      Sets the id for this search field
      Specified by:
      setId in interface IndexField
    • getSearchable

      public Boolean getSearchable()
      Description copied from interface: IndexField
      Whether or not the user should see results for this field when typing in search terms in the omnibox, or if this is just a field stored in the index (like margin or sorts)
      Specified by:
      getSearchable in interface IndexField
    • setSearchable

      public void setSearchable(Boolean searchable)
      Specified by:
      setSearchable in interface IndexField
    • getField

      public Field getField()
      Description copied from interface: IndexField
      Gets the field for this search field
      Specified by:
      getField in interface IndexField
      Returns:
    • setField

      public void setField(Field field)
      Description copied from interface: IndexField
      Sets the field for this search field
      Specified by:
      setField in interface IndexField
    • getFieldTypes

      public List<IndexFieldType> getFieldTypes()
      Description copied from interface: IndexField
      Gets the searchable field types for this search field
      Specified by:
      getFieldTypes in interface IndexField
      Returns:
    • setFieldTypes

      public void setFieldTypes(List<IndexFieldType> fieldTypes)
      Description copied from interface: IndexField
      Sets the searchable field types for this search field
      Specified by:
      setFieldTypes in interface IndexField
    • createOrRetrieveCopyInstance

      public <G extends IndexField> 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<IndexField>
      Throws:
      CloneNotSupportedException
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object
    • getMainEntityName

      public String getMainEntityName()
      Specified by:
      getMainEntityName in interface org.broadleafcommerce.common.admin.domain.AdminMainEntity