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 allThemeField
s for a givenThemeFieldGroup
idreadAllByFieldGroupContextIds
(@NonNull Collection<String> groupIds, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Find allThemeField
s for a list ofThemeFieldGroup
idsreadByNameAndFieldGroupId
(String name, String fieldGroupId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Reads theThemeField
with the given name in the givenThemeFieldGroup
.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 allThemeField
s for a givenThemeFieldGroup
id- Specified by:
readAllByFieldGroupContextId
in 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:ThemeFieldService
Find allThemeField
s for a list ofThemeFieldGroup
ids- Specified by:
readAllByFieldGroupContextIds
in 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:ThemeFieldService
Reads theThemeField
with the given name in the givenThemeFieldGroup
.- Specified by:
readByNameAndFieldGroupId
in 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
name
orOptional.empty()
.
-
getRepositoryDomain
Description copied from interface:ThemeFieldService
Returns the name of the repository domain corresponding to the projection domain.- Specified by:
getRepositoryDomain
in interfaceThemeFieldService<P extends ThemeField>
- Returns:
- The name of the repository domain corresponding to the projection domain.
-
getRepository
- Overrides:
getRepository
in classcom.broadleafcommerce.data.tracking.core.service.BaseCrudEntityService<P extends ThemeField>
-