Class DefaultContentFieldService<P extends ContentField>
java.lang.Object
com.broadleafcommerce.data.tracking.core.service.BaseCrudEntityService<P>
com.broadleafcommerce.data.tracking.core.service.BaseRsqlCrudEntityService<P>
com.broadleafcommerce.content.service.DefaultContentFieldService<P>
- All Implemented Interfaces:
ContentFieldService<P>
,com.broadleafcommerce.data.tracking.core.service.CrudEntityService<P>
,com.broadleafcommerce.data.tracking.core.service.RsqlCrudEntityService<P>
public class DefaultContentFieldService<P extends ContentField>
extends com.broadleafcommerce.data.tracking.core.service.BaseRsqlCrudEntityService<P>
implements ContentFieldService<P>
- Author:
- Julia Lopez-Pozas (jlopezpozas)
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultContentFieldService
(ContentFieldRepository<com.broadleafcommerce.data.tracking.core.Trackable> repository, com.broadleafcommerce.data.tracking.core.service.RsqlCrudEntityHelper helper) -
Method Summary
Modifier and TypeMethodDescriptionprotected ContentFieldRepository<com.broadleafcommerce.data.tracking.core.Trackable>
Returns the name of the repository domain corresponding to the projection domain.readAllByContentModelContextId
(@NonNull String contentModelId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Find allContentField
for a givenContentModel
readAllByContentModelContextIds
(@NonNull Collection<String> contentModelIds, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Find allContentField
for a list of givenContentModel
readAllByContextIds
(@NonNull Collection<String> ids, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Find allContentField
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
-
Constructor Details
-
DefaultContentFieldService
public DefaultContentFieldService(ContentFieldRepository<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:ContentFieldService
Find allContentField
by their context ids.- Specified by:
readAllByContextIds
in interfaceContentFieldService<P extends ContentField>
- Parameters:
ids
- the list of ids to findcontextInfo
- context information surrounding sandboxing and multitenant state- Returns:
- the list of content fields for the provided ids
-
readAllByContentModelContextId
public List<P> readAllByContentModelContextId(@NonNull @NonNull String contentModelId, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Description copied from interface:ContentFieldService
Find allContentField
for a givenContentModel
- Specified by:
readAllByContentModelContextId
in interfaceContentFieldService<P extends ContentField>
- Parameters:
contentModelId
- the id of the content model to findcontextInfo
- context information surrounding sandboxing and multitenant state- Returns:
- the list of content fields for the requested content model
-
readAllByContentModelContextIds
public List<P> readAllByContentModelContextIds(@NonNull @NonNull Collection<String> contentModelIds, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Description copied from interface:ContentFieldService
Find allContentField
for a list of givenContentModel
- Specified by:
readAllByContentModelContextIds
in interfaceContentFieldService<P extends ContentField>
- Parameters:
contentModelIds
- the list of content model ids to findcontextInfo
- context information surrounding sandboxing and multitenant state- Returns:
- the list of content fields for the requested content models
-
create
public P create(@NonNull P contentField, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) - Specified by:
create
in interfacecom.broadleafcommerce.data.tracking.core.service.CrudEntityService<P extends ContentField>
- Overrides:
create
in classcom.broadleafcommerce.data.tracking.core.service.BaseCrudEntityService<P extends ContentField>
-
getRepositoryDomain
Description copied from interface:ContentFieldService
Returns the name of the repository domain corresponding to the projection domain.- Specified by:
getRepositoryDomain
in interfaceContentFieldService<P extends ContentField>
- Returns:
- The name of the repository domain corresponding to the projection domain.
-
getRepository
protected ContentFieldRepository<com.broadleafcommerce.data.tracking.core.Trackable> getRepository()- Overrides:
getRepository
in classcom.broadleafcommerce.data.tracking.core.service.BaseCrudEntityService<P extends ContentField>
-