Interface ThemeFieldService<P extends ThemeField>

All Superinterfaces:
com.broadleafcommerce.data.tracking.core.service.CrudEntityService<P>, com.broadleafcommerce.data.tracking.core.service.RsqlCrudEntityService<P>
All Known Implementing Classes:
DefaultThemeFieldService

public interface ThemeFieldService<P extends ThemeField> extends com.broadleafcommerce.data.tracking.core.service.RsqlCrudEntityService<P>
ThemeField business domain specific version of CrudEntityService.
Author:
Jon Fleschler (jfleschler)
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the name of the repository domain corresponding to the projection domain.
    readAllByFieldGroupContextId(String fieldGroupId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    Find all ThemeFields for a given ThemeFieldGroup id
    readAllByFieldGroupContextIds(Collection<String> fieldGroupIds, 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 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
  • Method Details

    • readAllByFieldGroupContextId

      List<P> readAllByFieldGroupContextId(@NonNull String fieldGroupId, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Find all ThemeFields for a given ThemeFieldGroup id
      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

      List<P> readAllByFieldGroupContextIds(@NonNull Collection<String> fieldGroupIds, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Find all ThemeFields for a list of ThemeFieldGroup ids
      Parameters:
      fieldGroupIds - 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

      Optional<P> readByNameAndFieldGroupId(String name, String fieldGroupId, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Reads the ThemeField with the given name in the given ThemeFieldGroup.
      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

      @NonNull String getRepositoryDomain()
      Returns the name of the repository domain corresponding to the projection domain.
      Returns:
      The name of the repository domain corresponding to the projection domain.