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 allFieldDatafor a givenContentItemreadAllByContentItemContextIds(@NonNull Collection<String> itemIds, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Find allFieldDatafor a list of givenContentItemreadAllByContextIds(@NonNull Collection<String> ids, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Find allFieldDataby their context ids.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, 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
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 
- 
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:FieldDataServiceFind allFieldDataby their context ids.- Specified by:
 readAllByContextIdsin 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:FieldDataServiceFind allFieldDatafor a givenContentItem- Specified by:
 readAllByContentItemContextIdin 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:FieldDataServiceFind allFieldDatafor a list of givenContentItem- Specified by:
 readAllByContentItemContextIdsin 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:FieldDataServiceReturns the name of the repository domain corresponding to the projection domain.- Specified by:
 getRepositoryDomainin interfaceFieldDataService<P extends FieldData>- Returns:
 - The name of the repository domain corresponding to the projection domain.
 
 - 
getRepository
 
 -