java.lang.Object
com.broadleafcommerce.asset.provider.jpa.domain.JpaFolder
All Implemented Interfaces:
com.broadleafcommerce.common.messaging.notification.domain.NotificationStateAware, com.broadleafcommerce.data.tracking.core.ApplicationTrackable<com.broadleafcommerce.data.tracking.jpa.filtering.domain.ApplicationJpaTracking>, 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.ApplicationJpaTracking>, Serializable

@Entity @TrackableExtension(APPLICATION) public class JpaFolder extends Object implements Serializable, com.broadleafcommerce.data.tracking.core.ApplicationTrackable<com.broadleafcommerce.data.tracking.jpa.filtering.domain.ApplicationJpaTracking>, com.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable, com.broadleafcommerce.data.tracking.core.mapping.BusinessTypeAware
Persistent counter-part to Folder for use with a JPA-supported datastore.
Author:
Samarth Dhruva (samarthd)
See Also:
  • Constructor Details

    • JpaFolder

      public JpaFolder()
  • 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
    • getContextId

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

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

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

      public Instant getLastUpdatedDate()
      Returns:
      the persisted counter-part of Folder.getLastUpdatedDate()
    • getAuthor

      public String getAuthor()
      Returns:
      the persisted counter-part of Folder.getAuthor()
    • getParentFolderContextId

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

      public com.broadleafcommerce.data.tracking.jpa.filtering.domain.ApplicationJpaTracking getTracking()
      Specified by:
      getTracking in interface com.broadleafcommerce.data.tracking.core.Trackable
      Returns:
      the ApplicationJpaTracking information for this
    • setContextId

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

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

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

      public void setLastUpdatedDate(Instant lastUpdatedDate)
      Parameters:
      lastUpdatedDate - the persisted counter-part of Folder.getLastUpdatedDate()
    • setAuthor

      public void setAuthor(String author)
      Parameters:
      author - the persisted counter-part of Folder.getAuthor()
    • setParentFolderContextId

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

      public void setTracking(com.broadleafcommerce.data.tracking.jpa.filtering.domain.ApplicationJpaTracking tracking)
      Specified by:
      setTracking in interface com.broadleafcommerce.data.tracking.core.TypedTrackable<com.broadleafcommerce.data.tracking.jpa.filtering.domain.ApplicationJpaTracking>
      Parameters:
      tracking - the ApplicationJpaTracking information for this
    • 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