java.lang.Object
com.broadleafcommerce.content.provider.jpa.domain.folder.JpaContentFolder
All Implemented Interfaces:
com.broadleafcommerce.common.messaging.notification.domain.NotificationStateAware, com.broadleafcommerce.data.tracking.core.CatalogTrackable<com.broadleafcommerce.data.tracking.jpa.filtering.domain.CatalogJpaTracking>, com.broadleafcommerce.data.tracking.core.mapping.BusinessTypeAware, com.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable, com.broadleafcommerce.data.tracking.core.Trackable, com.broadleafcommerce.data.tracking.core.TypedTrackable<com.broadleafcommerce.data.tracking.jpa.filtering.domain.CatalogJpaTracking>, Serializable

@Entity @TrackableExtension(CATALOG) public class JpaContentFolder extends Object implements Serializable, com.broadleafcommerce.data.tracking.core.CatalogTrackable<com.broadleafcommerce.data.tracking.jpa.filtering.domain.CatalogJpaTracking>, com.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable, com.broadleafcommerce.data.tracking.core.mapping.BusinessTypeAware
Persistent counter-part to ContentFolder for use with a JPA-supported datastore.
Author:
Jon Fleschler (jfleschler)
See Also:
  • Constructor Details

    • JpaContentFolder

      public JpaContentFolder()
  • Method Details

    • fromMe

      @NonNull public org.modelmapper.ModelMapper fromMe()
      Specified by:
      fromMe in interface com.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable
    • toMe

      @NonNull public org.modelmapper.ModelMapper toMe()
      Specified by:
      toMe in interface com.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable
    • getBusinessDomainType

      public Class<?> getBusinessDomainType()
      Specified by:
      getBusinessDomainType in interface com.broadleafcommerce.data.tracking.core.mapping.BusinessTypeAware
    • getDisplay

      public Optional<String> getDisplay()
      Specified by:
      getDisplay in interface com.broadleafcommerce.data.tracking.core.Trackable
    • get_id

      public String get_id()
    • getContextId

      public String getContextId()
      Specified by:
      getContextId in interface com.broadleafcommerce.data.tracking.core.Trackable
      See Also:
    • getName

      public String getName()
      Returns:
      the persisted counter-part of ContentFolder.getName()
    • getAttributes

      public Map<String,JpaAttribute> getAttributes()
      Returns:
      the persisted counter-part of ContentFolder.getAttributes()
    • getParentFolderContextId

      public String getParentFolderContextId()
      Returns:
      the persisted counter-part of ContentFolder.getParentFolderId()
    • getTracking

      public com.broadleafcommerce.data.tracking.jpa.filtering.domain.CatalogJpaTracking getTracking()
      Specified by:
      getTracking in interface com.broadleafcommerce.data.tracking.core.Trackable
      Returns:
      The Tracking information for this Content Item.
    • set_id

      public void set_id(String _id)
    • setContextId

      public void setContextId(String contextId)
      Specified by:
      setContextId in interface com.broadleafcommerce.data.tracking.core.Trackable
      See Also:
    • setName

      public void setName(String name)
      Parameters:
      name - the persisted counter-part of ContentFolder.getName()
    • setAttributes

      public void setAttributes(Map<String,JpaAttribute> attributes)
      Parameters:
      attributes - the persisted counter-part of ContentFolder.getAttributes()
    • setParentFolderContextId

      public void setParentFolderContextId(String parentFolderContextId)
      Parameters:
      parentFolderContextId - the persisted counter-part of ContentFolder.getParentFolderId()
    • setTracking

      public void setTracking(com.broadleafcommerce.data.tracking.jpa.filtering.domain.CatalogJpaTracking tracking)
      Specified by:
      setTracking in interface com.broadleafcommerce.data.tracking.core.TypedTrackable<com.broadleafcommerce.data.tracking.jpa.filtering.domain.CatalogJpaTracking>
      Parameters:
      tracking - the Tracking information for this Content Item.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object