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
ConstructorsConstructorDescriptionDefaultThemeFieldService(ThemeFieldRepository<com.broadleafcommerce.data.tracking.core.Trackable> repository, com.broadleafcommerce.data.tracking.core.service.RsqlCrudEntityHelper helper)  - 
Method Summary
Modifier and TypeMethodDescriptionprotected 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 allThemeFields for a givenThemeFieldGroupidreadAllByFieldGroupContextIds(@NonNull Collection<String> groupIds, 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 class com.broadleafcommerce.data.tracking.core.service.BaseRsqlCrudEntityService
getRsqlHelper, readAll, readAll, readAll, readAllMethods 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, updateSortMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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 
- 
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:ThemeFieldServiceFind allThemeFields for a givenThemeFieldGroupid- Specified by:
 readAllByFieldGroupContextIdin interfaceThemeFieldService<P extends ThemeField>- 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
public List<P> readAllByFieldGroupContextIds(@NonNull @NonNull Collection<String> groupIds, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Description copied from interface:ThemeFieldServiceFind allThemeFields for a list ofThemeFieldGroupids- Specified by:
 readAllByFieldGroupContextIdsin interfaceThemeFieldService<P extends ThemeField>- Parameters:
 groupIds- 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
public Optional<P> readByNameAndFieldGroupId(String name, String fieldGroupId, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Description copied from interface:ThemeFieldServiceReads theThemeFieldwith the given name in the givenThemeFieldGroup.- Specified by:
 readByNameAndFieldGroupIdin interfaceThemeFieldService<P extends ThemeField>- 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
Description copied from interface:ThemeFieldServiceReturns the name of the repository domain corresponding to the projection domain.- Specified by:
 getRepositoryDomainin interfaceThemeFieldService<P extends ThemeField>- Returns:
 - The name of the repository domain corresponding to the projection domain.
 
 - 
getRepository
- Overrides:
 getRepositoryin classcom.broadleafcommerce.data.tracking.core.service.BaseCrudEntityService<P extends ThemeField>
 
 -