Class DefaultContentFieldService<P extends ContentField>

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

public class DefaultContentFieldService<P extends ContentField> extends com.broadleafcommerce.data.tracking.core.service.BaseRsqlCrudEntityService<P> implements ContentFieldService<P>
Author:
Julia Lopez-Pozas (jlopezpozas)
  • Constructor Summary

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

    Modifier and Type
    Method
    Description
    create(P contentField, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
     
    protected ContentFieldRepository<com.broadleafcommerce.data.tracking.core.Trackable>
     
    Returns the name of the repository domain corresponding to the projection domain.
    readAllByContentModelContextId(@NonNull String contentModelId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    Find all ContentField for a given ContentModel
    readAllByContentModelContextIds(@NonNull Collection<String> contentModelIds, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    Find all ContentField for a list of given ContentModel
    readAllByContextIds(@NonNull Collection<String> ids, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    Find all ContentField 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
  • Constructor Details

    • DefaultContentFieldService

      public DefaultContentFieldService(ContentFieldRepository<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: ContentFieldService
      Find all ContentField by their context ids.
      Specified by:
      readAllByContextIds in interface ContentFieldService<P extends ContentField>
      Parameters:
      ids - the list of ids to find
      contextInfo - context information surrounding sandboxing and multitenant state
      Returns:
      the list of content fields for the provided ids
    • readAllByContentModelContextId

      public List<P> readAllByContentModelContextId(@NonNull @NonNull String contentModelId, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Description copied from interface: ContentFieldService
      Find all ContentField for a given ContentModel
      Specified by:
      readAllByContentModelContextId in interface ContentFieldService<P extends ContentField>
      Parameters:
      contentModelId - the id of the content model to find
      contextInfo - context information surrounding sandboxing and multitenant state
      Returns:
      the list of content fields for the requested content model
    • readAllByContentModelContextIds

      public List<P> readAllByContentModelContextIds(@NonNull @NonNull Collection<String> contentModelIds, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Description copied from interface: ContentFieldService
      Find all ContentField for a list of given ContentModel
      Specified by:
      readAllByContentModelContextIds in interface ContentFieldService<P extends ContentField>
      Parameters:
      contentModelIds - the list of content model ids to find
      contextInfo - context information surrounding sandboxing and multitenant state
      Returns:
      the list of content fields for the requested content models
    • create

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

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

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