Class DefaultFieldDataService<P extends FieldData>
java.lang.Object
com.broadleafcommerce.data.tracking.core.service.BaseCrudEntityService<P>
com.broadleafcommerce.data.tracking.core.service.BaseRsqlCrudEntityService<P>
com.broadleafcommerce.content.service.DefaultFieldDataService<P>
- All Implemented Interfaces:
FieldDataService<P>
,com.broadleafcommerce.data.tracking.core.service.CrudEntityService<P>
,com.broadleafcommerce.data.tracking.core.service.RsqlCrudEntityService<P>
public class DefaultFieldDataService<P extends FieldData>
extends com.broadleafcommerce.data.tracking.core.service.BaseRsqlCrudEntityService<P>
implements FieldDataService<P>
- Author:
- Jon Fleschler (jfleschler)
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefaultFieldDataService
(FieldDataRepository<com.broadleafcommerce.data.tracking.core.Trackable> repository, com.broadleafcommerce.data.tracking.core.service.RsqlCrudEntityHelper helper) -
Method Summary
Modifier and TypeMethodDescriptionprotected FieldDataRepository<com.broadleafcommerce.data.tracking.core.Trackable>
Returns the name of the repository domain corresponding to the projection domain.readAllByContentItemContextId
(@NonNull String contentItemId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Find allFieldData
for a givenContentItem
readAllByContentItemContextIds
(@NonNull Collection<String> itemIds, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Find allFieldData
for a list of givenContentItem
readAllByContextIds
(@NonNull Collection<String> ids, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Find allFieldData
by their context ids.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, 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
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
-
Field Details
-
CACHE_BY_NAME
- See Also:
-
-
Constructor Details
-
DefaultFieldDataService
public DefaultFieldDataService(FieldDataRepository<com.broadleafcommerce.data.tracking.core.Trackable> repository, com.broadleafcommerce.data.tracking.core.service.RsqlCrudEntityHelper helper)
-
-
Method Details
-
readAllByContextIds
public List<P> readAllByContextIds(@NonNull @NonNull Collection<String> ids, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Description copied from interface:FieldDataService
Find allFieldData
by their context ids.- Specified by:
readAllByContextIds
in interfaceFieldDataService<P extends FieldData>
- Parameters:
ids
- the list of ids to findcontextInfo
- context information surrounding sandboxing and multitenant state- Returns:
- the list of fiield data for the provided ids
-
readAllByContentItemContextId
public List<P> readAllByContentItemContextId(@NonNull @NonNull String contentItemId, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Description copied from interface:FieldDataService
Find allFieldData
for a givenContentItem
- Specified by:
readAllByContentItemContextId
in interfaceFieldDataService<P extends FieldData>
- Parameters:
contentItemId
- the id of the content item to findcontextInfo
- context information surrounding sandboxing and multitenant state- Returns:
- the list of field data for the requested content item
-
readAllByContentItemContextIds
public List<P> readAllByContentItemContextIds(@NonNull @NonNull Collection<String> itemIds, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Description copied from interface:FieldDataService
Find allFieldData
for a list of givenContentItem
- Specified by:
readAllByContentItemContextIds
in interfaceFieldDataService<P extends FieldData>
- Parameters:
itemIds
- the list of content item ids to findcontextInfo
- context information surrounding sandboxing and multitenant state- Returns:
- the list of field data for the requested content items
-
create
-
getRepositoryDomain
Description copied from interface:FieldDataService
Returns the name of the repository domain corresponding to the projection domain.- Specified by:
getRepositoryDomain
in interfaceFieldDataService<P extends FieldData>
- Returns:
- The name of the repository domain corresponding to the projection domain.
-
getRepository
-