Interface FieldDataService<P extends FieldData>
- All Superinterfaces:
com.broadleafcommerce.data.tracking.core.service.CrudEntityService<P>
,com.broadleafcommerce.data.tracking.core.service.RsqlCrudEntityService<P>
- All Known Implementing Classes:
DefaultFieldDataService
public interface FieldDataService<P extends FieldData>
extends com.broadleafcommerce.data.tracking.core.service.RsqlCrudEntityService<P>
This service is responsible for handling all CRUD operations on
FieldData
.- Author:
- Jon Fleschler (jfleschler)
-
Method Summary
Modifier and TypeMethodDescriptionReturns the name of the repository domain corresponding to the projection domain.readAllByContentItemContextId
(String contentItemId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Find allFieldData
for a givenContentItem
readAllByContentItemContextIds
(Collection<String> itemIds, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Find allFieldData
for a list of givenContentItem
readAllByContextIds
(Collection<String> ids, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Find allFieldData
by their context ids.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
-
readAllByContextIds
List<P> readAllByContextIds(@NonNull Collection<String> ids, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Find allFieldData
by their context ids.- 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
List<P> readAllByContentItemContextId(@NonNull String contentItemId, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Find allFieldData
for a givenContentItem
- 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
List<P> readAllByContentItemContextIds(@NonNull Collection<String> itemIds, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Find allFieldData
for a list of givenContentItem
- 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
-
getRepositoryDomain
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.
-