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 TypeMethodDescriptionReturns the name of the repository domain corresponding to the projection domain.readAllByFieldGroupContextId(String fieldGroupId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Find allThemeFields for a givenThemeFieldGroupidreadAllByFieldGroupContextIds(Collection<String> fieldGroupIds, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Find allThemeFields for a list ofThemeFieldGroupidsreadByNameAndFieldGroupId(String name, String fieldGroupId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Reads theThemeFieldwith the given name in the givenThemeFieldGroup.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, updateSortMethods 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 allThemeFields for a givenThemeFieldGroupid- Parameters:
fieldGroupId- the id of the field group to searchcontextInfo- 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 allThemeFields for a list ofThemeFieldGroupids- Parameters:
fieldGroupIds- the ids of the field groups to searchcontextInfo- 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 theThemeFieldwith the given name in the givenThemeFieldGroup.- Parameters:
name- The name of a group to retrievefieldGroupId- The group that the field belongs toocontextInfo- context information surrounding sandboxing and multitenant state- Returns:
- The field matching
nameorOptional.empty().
-
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.
-