Class DefaultThemeFieldService<P extends ThemeField>

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

public class DefaultThemeFieldService<P extends ThemeField> extends com.broadleafcommerce.data.tracking.core.service.BaseRsqlCrudEntityService<P> implements ThemeFieldService<P>
  • Constructor Summary

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

    Modifier and Type
    Method
    Description
    protected ThemeFieldRepository<com.broadleafcommerce.data.tracking.core.Trackable>
     
    Returns the name of the repository domain corresponding to the projection domain.
    readAllByFieldGroupContextId(@NonNull String fieldGroupId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    Find all ThemeFields for a given ThemeFieldGroup id
    readAllByFieldGroupContextIds(@NonNull Collection<String> groupIds, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    Find all ThemeFields for a list of ThemeFieldGroup ids
    readByNameAndFieldGroupId(String name, String fieldGroupId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    Reads the ThemeField with the given name in the given ThemeFieldGroup.

    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, create, 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

    create, 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

    • DefaultThemeFieldService

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

    • readAllByFieldGroupContextId

      public List<P> readAllByFieldGroupContextId(@NonNull @NonNull String fieldGroupId, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Description copied from interface: ThemeFieldService
      Find all ThemeFields for a given ThemeFieldGroup id
      Specified by:
      readAllByFieldGroupContextId in interface ThemeFieldService<P extends ThemeField>
      Parameters:
      fieldGroupId - the id of the field group to search
      contextInfo - context information surrounding sandboxing and multitenant state
      Returns:
      all fields for the requested field group id
    • readAllByFieldGroupContextIds

      public List<P> readAllByFieldGroupContextIds(@NonNull @NonNull Collection<String> groupIds, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Description copied from interface: ThemeFieldService
      Find all ThemeFields for a list of ThemeFieldGroup ids
      Specified by:
      readAllByFieldGroupContextIds in interface ThemeFieldService<P extends ThemeField>
      Parameters:
      groupIds - the ids of the field groups to search
      contextInfo - context information surrounding sandboxing and multitenant state
      Returns:
      all fields for the requested field group ids
    • readByNameAndFieldGroupId

      public Optional<P> readByNameAndFieldGroupId(String name, String fieldGroupId, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Description copied from interface: ThemeFieldService
      Reads the ThemeField with the given name in the given ThemeFieldGroup.
      Specified by:
      readByNameAndFieldGroupId in interface ThemeFieldService<P extends ThemeField>
      Parameters:
      name - The name of a group to retrieve
      fieldGroupId - The group that the field belongs too
      contextInfo - context information surrounding sandboxing and multitenant state
      Returns:
      The field matching name or Optional.empty().
    • getRepositoryDomain

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

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