Class DefaultFieldDataService<P extends FieldData>

java.lang.Object
com.broadleafcommerce.data.tracking.core.service.BaseCrudEntityService<P>
com.broadleafcommerce.data.tracking.core.service.BaseRsqlCrudEntityService<P>
com.broadleafcommerce.content.service.DefaultFieldDataService<P>
All Implemented Interfaces:
FieldDataService<P>, com.broadleafcommerce.data.tracking.core.service.CrudEntityService<P>, com.broadleafcommerce.data.tracking.core.service.RsqlCrudEntityService<P>

public class DefaultFieldDataService<P extends FieldData> extends com.broadleafcommerce.data.tracking.core.service.BaseRsqlCrudEntityService<P> implements FieldDataService<P>
Author:
Jon Fleschler (jfleschler)
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    DefaultFieldDataService(FieldDataRepository<com.broadleafcommerce.data.tracking.core.Trackable> repository, com.broadleafcommerce.data.tracking.core.service.RsqlCrudEntityHelper helper)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    create(P fieldData, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
     
    protected FieldDataRepository<com.broadleafcommerce.data.tracking.core.Trackable>
     
    Returns the name of the repository domain corresponding to the projection domain.
    readAllByContentItemContextId(@NonNull String contentItemId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    Find all FieldData for a given ContentItem
    readAllByContentItemContextIds(@NonNull Collection<String> itemIds, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    Find all FieldData for a list of given ContentItem
    readAllByContextIds(@NonNull Collection<String> ids, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    Find all FieldData by their context ids.

    Methods inherited from class com.broadleafcommerce.data.tracking.core.service.BaseRsqlCrudEntityService

    getRsqlHelper, readAll, readAll, readAll, readAll

    Methods inherited from class com.broadleafcommerce.data.tracking.core.service.BaseCrudEntityService

    convertFromPersistentDomain, convertToPersistentDomain, createAll, createAllAllowingPartialSuccess, delete, getHelper, getSortPositionStrategy, readAll, readAll, readAll, readAllByContextId, readByContextId, replace, replaceAll, replaceAllAllowingPartialSuccess, setSortPositionStrategy, update, updateAll, updateAllAllowingPartialSuccess, updateSort

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.broadleafcommerce.data.tracking.core.service.CrudEntityService

    createAll, createAllAllowingPartialSuccess, delete, readAll, readAll, readAll, readAllByContextId, readByContextId, replace, replaceAll, replaceAllAllowingPartialSuccess, update, updateAll, updateAllAllowingPartialSuccess, updateSort

    Methods inherited from interface com.broadleafcommerce.data.tracking.core.service.RsqlCrudEntityService

    readAll, readAll, readAll, readAll
  • Field Details

  • Constructor Details

    • DefaultFieldDataService

      public DefaultFieldDataService(FieldDataRepository<com.broadleafcommerce.data.tracking.core.Trackable> repository, com.broadleafcommerce.data.tracking.core.service.RsqlCrudEntityHelper helper)
  • Method Details

    • readAllByContextIds

      public List<P> readAllByContextIds(@NonNull @NonNull Collection<String> ids, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Description copied from interface: FieldDataService
      Find all FieldData by their context ids.
      Specified by:
      readAllByContextIds in interface FieldDataService<P extends FieldData>
      Parameters:
      ids - the list of ids to find
      contextInfo - context information surrounding sandboxing and multitenant state
      Returns:
      the list of fiield data for the provided ids
    • readAllByContentItemContextId

      public List<P> readAllByContentItemContextId(@NonNull @NonNull String contentItemId, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Description copied from interface: FieldDataService
      Find all FieldData for a given ContentItem
      Specified by:
      readAllByContentItemContextId in interface FieldDataService<P extends FieldData>
      Parameters:
      contentItemId - the id of the content item to find
      contextInfo - context information surrounding sandboxing and multitenant state
      Returns:
      the list of field data for the requested content item
    • readAllByContentItemContextIds

      public List<P> readAllByContentItemContextIds(@NonNull @NonNull Collection<String> itemIds, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Description copied from interface: FieldDataService
      Find all FieldData for a list of given ContentItem
      Specified by:
      readAllByContentItemContextIds in interface FieldDataService<P extends FieldData>
      Parameters:
      itemIds - the list of content item ids to find
      contextInfo - context information surrounding sandboxing and multitenant state
      Returns:
      the list of field data for the requested content items
    • create

      public P create(@NonNull P fieldData, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Specified by:
      create in interface com.broadleafcommerce.data.tracking.core.service.CrudEntityService<P extends FieldData>
      Overrides:
      create in class com.broadleafcommerce.data.tracking.core.service.BaseCrudEntityService<P extends FieldData>
    • getRepositoryDomain

      public String getRepositoryDomain()
      Description copied from interface: FieldDataService
      Returns the name of the repository domain corresponding to the projection domain.
      Specified by:
      getRepositoryDomain in interface FieldDataService<P extends FieldData>
      Returns:
      The name of the repository domain corresponding to the projection domain.
    • getRepository

      protected FieldDataRepository<com.broadleafcommerce.data.tracking.core.Trackable> getRepository()
      Overrides:
      getRepository in class com.broadleafcommerce.data.tracking.core.service.BaseCrudEntityService<P extends FieldData>