Class DefaultContentItemService<P extends ContentItem>
java.lang.Object
com.broadleafcommerce.data.tracking.core.service.BaseCrudEntityService<P>
com.broadleafcommerce.data.tracking.core.service.BaseRsqlCrudEntityService<P>
com.broadleafcommerce.content.service.DefaultContentItemService<P>
- All Implemented Interfaces:
ContentItemService<P>
,com.broadleafcommerce.data.tracking.core.service.CrudEntityService<P>
,com.broadleafcommerce.data.tracking.core.service.RsqlCrudEntityService<P>
,EventListener
,org.springframework.context.ApplicationListener<ContentCacheInvalidationEvent>
public class DefaultContentItemService<P extends ContentItem>
extends com.broadleafcommerce.data.tracking.core.service.BaseRsqlCrudEntityService<P>
implements ContentItemService<P>, org.springframework.context.ApplicationListener<ContentCacheInvalidationEvent>
- Author:
- Jon Fleschler (jfleschler)
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefaultContentItemService
(ContentItemRepository<com.broadleafcommerce.data.tracking.core.Trackable> repository, com.broadleafcommerce.data.tracking.core.service.RsqlCrudEntityHelper helper, FieldDataService<FieldData> fieldDataService, com.broadleafcommerce.common.extension.TypeFactory typeFactory, com.broadleafcommerce.resource.security.utils.service.AuthenticationUtils authenticationUtils) -
Method Summary
Modifier and TypeMethodDescriptionprotected Author
Build the Content Items's author information based on the authenticated user.void
protected com.broadleafcommerce.resource.security.utils.service.AuthenticationUtils
protected com.broadleafcommerce.common.extension.cache.CacheStateManager
protected com.broadleafcommerce.common.extension.cache.key.ContextKeyGen
protected com.broadleafcommerce.common.extension.cache.key.ContextKeyGen
protected com.broadleafcommerce.common.extension.cache.key.ContextKeyGen
protected com.broadleafcommerce.common.extension.cache.key.ContextKeyGen
protected com.broadleafcommerce.common.extension.cache.key.ContextKeyGen
protected com.broadleafcommerce.common.extension.cache.key.ContextKeyGen
protected com.broadleafcommerce.common.extension.cache.key.ContextKeyGen
protected com.broadleafcommerce.common.extension.cache.key.ContextKeyGen
protected com.broadleafcommerce.common.extension.cache.key.ContextKeyGen
protected com.broadleafcommerce.common.extension.cache.key.ContextKeyGen
protected com.broadleafcommerce.common.extension.cache.key.ContextKeyGen
protected FieldDataService<FieldData>
protected ContentItemRepository<com.broadleafcommerce.data.tracking.core.Trackable>
Returns the name of the repository domain corresponding to the projection domain.protected com.broadleafcommerce.translation.service.TranslationEntityService<com.broadleafcommerce.translation.domain.Translation>
protected com.broadleafcommerce.common.extension.TypeFactory
void
readAll
(cz.jirutka.rsql.parser.ast.Node filters, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) readAllByIdIn
(@NonNull Collection<String> ids, cz.jirutka.rsql.parser.ast.Node filters, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) Reads allContentItems
matching the given ids.readAllByModelId
(@NonNull String modelId, cz.jirutka.rsql.parser.ast.Node filters, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Read all content for a specific model.org.springframework.data.domain.Page<P>
readAllByName
(String nameQuery, cz.jirutka.rsql.parser.ast.Node filters, org.springframework.data.domain.Pageable page, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) Read allContentItems
, optionally filtered by name.readAllByNameIn
(@NonNull Collection<String> names, cz.jirutka.rsql.parser.ast.Node filters, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) Reads allContentItems
matching the given names.org.springframework.data.domain.Page<P>
readAllByNameWithActiveFlag
(String activeFilter, String nameQuery, cz.jirutka.rsql.parser.ast.Node filters, org.springframework.data.domain.Pageable page, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) Read all content, filtered by active date ranges, optionally filtered by name.org.springframework.data.domain.Page<P>
readAllByQuery
(String query, cz.jirutka.rsql.parser.ast.Node filters, org.springframework.data.domain.Pageable page, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) Read all content based on the provided query.org.springframework.data.domain.Page<P>
readAllByUriIsNotBlank
(org.springframework.data.domain.Pageable page, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Read all non-nullContentItems
readAllContentItemTags
(com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Read all tags associated with content items.readByCombinedModelAndItemUri
(String uri, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Takes the givenuri
and returns the item where the combination ofits URI
and itsContentModel's URI
matches.readByModelIdAndUri
(String modelId, String uri, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) readByNameAndNotEmbedded
(String contentName, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Finds the non-embedded content item with the given name (should only be one result, as content names are unique in non-embedded items).org.springframework.data.domain.Page<P>
readPageByIdIn
(@NonNull Collection<String> ids, @NonNull org.springframework.data.domain.Pageable page, cz.jirutka.rsql.parser.ast.Node filters, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) Reads allContentItems
matching the given ids.org.springframework.data.domain.Page<P>
readPageByModelId
(String modelId, @NonNull org.springframework.data.domain.Pageable page, cz.jirutka.rsql.parser.ast.Node filters, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) Read all content for a specific model.org.springframework.data.domain.Page<P>
readPageByNameIn
(@NonNull Collection<String> names, @NonNull org.springframework.data.domain.Pageable page, cz.jirutka.rsql.parser.ast.Node filters, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) Reads allContentItems
matching the given names.protected void
removeFieldDataForContent
(P content, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) replace
(@NonNull String id, P content, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) com.broadleafcommerce.translation.service.dto.TranslationsPayload
replaceAllItemTranslations
(String id, @NonNull Locale locale, @NonNull com.broadleafcommerce.translation.service.dto.TranslationsPayload request, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) Handles persistence of translations related to aContentItem
or itsFieldData
.protected void
replaceOrCreateFieldDataForContent
(P content, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) Create or replaceFieldData
for the passed inContentItem
void
setCacheStateManager
(com.broadleafcommerce.common.extension.cache.CacheStateManager cacheStateManager) void
setContentItemCacheAllByFilterKeyGen
(com.broadleafcommerce.common.extension.cache.key.ContextKeyGen contentItemCacheAllByFilterKeyGen) void
setContentItemCacheAllWithTags
(com.broadleafcommerce.common.extension.cache.key.ContextKeyGen contentItemCacheAllWithTags) void
setContentItemCacheByIdInKeyGen
(com.broadleafcommerce.common.extension.cache.key.ContextKeyGen contentItemCacheByIdInKeyGen) void
setContentItemCacheByItemAndModelUriKeyGen
(com.broadleafcommerce.common.extension.cache.key.ContextKeyGen contentItemCacheByItemAndModelUriKeyGen) void
setContentItemCacheByModelIdKeyGen
(com.broadleafcommerce.common.extension.cache.key.ContextKeyGen contentItemCacheByModelIdKeyGen) void
setContentItemCacheByNameInKeyGen
(com.broadleafcommerce.common.extension.cache.key.ContextKeyGen contentItemCacheByNameInKeyGen) void
setContentItemCacheByNameKeyGen
(com.broadleafcommerce.common.extension.cache.key.ContextKeyGen contentItemCacheByNameKeyGen) void
setContentItemCacheByUriAndModelIdKeyGen
(com.broadleafcommerce.common.extension.cache.key.ContextKeyGen contentItemCacheByUriAndModelIdKeyGen) void
setContentItemCachePageByIdInKeyGen
(com.broadleafcommerce.common.extension.cache.key.ContextKeyGen contentItemCachePageByIdInKeyGen) void
setContentItemCachePageByModelIdKeyGen
(com.broadleafcommerce.common.extension.cache.key.ContextKeyGen contentItemCachePageByModelIdKeyGen) void
setContentItemCachePageByNameInKeyGen
(com.broadleafcommerce.common.extension.cache.key.ContextKeyGen contentItemCachePageByNameInKeyGen) void
setTranslationEntityService
(com.broadleafcommerce.translation.service.TranslationEntityService<com.broadleafcommerce.translation.domain.Translation> translationEntityService) Methods inherited from class com.broadleafcommerce.data.tracking.core.service.BaseRsqlCrudEntityService
getRsqlHelper, readAll, readAll, readAll
Methods inherited from class com.broadleafcommerce.data.tracking.core.service.BaseCrudEntityService
convertFromPersistentDomain, convertToPersistentDomain, createAll, createAllAllowingPartialSuccess, getHelper, getSortPositionStrategy, readAll, readAll, readAll, readAllByContextId, readByContextId, replaceAll, replaceAllAllowingPartialSuccess, setSortPositionStrategy, 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 org.springframework.context.ApplicationListener
supportsAsyncExecution
Methods inherited from interface com.broadleafcommerce.content.service.ContentItemService
readByName
Methods inherited from interface com.broadleafcommerce.data.tracking.core.service.CrudEntityService
createAll, createAllAllowingPartialSuccess, readAll, readAll, readAll, readAllByContextId, readByContextId, replaceAll, replaceAllAllowingPartialSuccess, updateAll, updateAllAllowingPartialSuccess, updateSort
Methods inherited from interface com.broadleafcommerce.data.tracking.core.service.RsqlCrudEntityService
readAll, readAll, readAll
-
Field Details
-
BY_ITEM_NAME_CACHE
- See Also:
-
BY_ITEM_ID_IN_CACHE
- See Also:
-
BY_ITEM_NAME_IN_CACHE
- See Also:
-
BY_MODEL_ID_CACHE
- See Also:
-
BY_URI_AND_MODEL_ID_CACHE
- See Also:
-
PAGE_BY_ITEM_NAME_IN_CACHE
- See Also:
-
PAGE_BY_ITEM_ID_IN_CACHE
- See Also:
-
PAGE_BY_MODEL_ID_CACHE
- See Also:
-
BY_ITEM_AND_MODEL_URI
- See Also:
-
ALL_BY_FILTER
- See Also:
-
ALL_WITH_TAGS
- See Also:
-
-
Constructor Details
-
DefaultContentItemService
public DefaultContentItemService(ContentItemRepository<com.broadleafcommerce.data.tracking.core.Trackable> repository, com.broadleafcommerce.data.tracking.core.service.RsqlCrudEntityHelper helper, FieldDataService<FieldData> fieldDataService, com.broadleafcommerce.common.extension.TypeFactory typeFactory, com.broadleafcommerce.resource.security.utils.service.AuthenticationUtils authenticationUtils)
-
-
Method Details
-
getRepositoryDomain
Description copied from interface:ContentItemService
Returns the name of the repository domain corresponding to the projection domain.- Specified by:
getRepositoryDomain
in interfaceContentItemService<P extends ContentItem>
- Returns:
- The name of the repository domain corresponding to the projection domain.
-
readAll
public List<P> readAll(cz.jirutka.rsql.parser.ast.Node filters, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) - Specified by:
readAll
in interfacecom.broadleafcommerce.data.tracking.core.service.RsqlCrudEntityService<P extends ContentItem>
- Overrides:
readAll
in classcom.broadleafcommerce.data.tracking.core.service.BaseRsqlCrudEntityService<P extends ContentItem>
-
readAllByNameWithActiveFlag
public org.springframework.data.domain.Page<P> readAllByNameWithActiveFlag(@NonNull String activeFilter, @Nullable String nameQuery, @Nullable cz.jirutka.rsql.parser.ast.Node filters, @Nullable org.springframework.data.domain.Pageable page, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo context) Description copied from interface:ContentItemService
Read all content, filtered by active date ranges, optionally filtered by name.- Specified by:
readAllByNameWithActiveFlag
in interfaceContentItemService<P extends ContentItem>
- Parameters:
activeFilter
- whether to filter by active / inactive or allnameQuery
- (optional) the content name to filter byfilters
- additional filters to apply in the query, can be nullpage
- the requested page of results from the databasecontext
- context information surrounding sandboxing and multitenant state- Returns:
- all menus, optionally filtered by name
-
readAllByUriIsNotBlank
public org.springframework.data.domain.Page<P> readAllByUriIsNotBlank(@Nullable org.springframework.data.domain.Pageable page, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Description copied from interface:ContentItemService
Read all non-nullContentItems
- Specified by:
readAllByUriIsNotBlank
in interfaceContentItemService<P extends ContentItem>
- Parameters:
page
- the requested page of results from the databasecontextInfo
- context information surrounding sandboxing and multitenant state- Returns:
- a page of non-null content items
-
readAllByName
public org.springframework.data.domain.Page<P> readAllByName(@Nullable String nameQuery, @Nullable cz.jirutka.rsql.parser.ast.Node filters, @Nullable org.springframework.data.domain.Pageable page, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo context) Description copied from interface:ContentItemService
Read allContentItems
, optionally filtered by name.- Specified by:
readAllByName
in interfaceContentItemService<P extends ContentItem>
- Parameters:
nameQuery
- (optional) the content name to filter byfilters
- additional filters to apply in the query, can be nullpage
- the requested page of results from the databasecontext
- context information surrounding sandboxing and multitenant state- Returns:
- all
ContentItems
, optionally filtered by name
-
readAllByNameIn
public List<P> readAllByNameIn(@NonNull @NonNull Collection<String> names, @Nullable cz.jirutka.rsql.parser.ast.Node filters, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo context) Description copied from interface:ContentItemService
Reads allContentItems
matching the given names.- Specified by:
readAllByNameIn
in interfaceContentItemService<P extends ContentItem>
- Parameters:
names
- Names of theContentItems
to retrieve.filters
- additional filters to apply in the query, can be nullcontext
- context information surrounding sandboxing and multitenant state- Returns:
- All
ContentItems
matching the given names.
-
readPageByNameIn
public org.springframework.data.domain.Page<P> readPageByNameIn(@NonNull @NonNull Collection<String> names, @NonNull @NonNull org.springframework.data.domain.Pageable page, @Nullable cz.jirutka.rsql.parser.ast.Node filters, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo context) Description copied from interface:ContentItemService
Reads allContentItems
matching the given names.- Specified by:
readPageByNameIn
in interfaceContentItemService<P extends ContentItem>
- Parameters:
names
- Names of theContentItems
to retrieve.page
- the requested page of results from the databasefilters
- additional filters to apply in the query, can be nullcontext
- context information surrounding sandboxing and multitenant state- Returns:
- A page of all
ContentItems
matching the given names.
-
readAllByIdIn
public List<P> readAllByIdIn(@NonNull @NonNull Collection<String> ids, @Nullable cz.jirutka.rsql.parser.ast.Node filters, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo context) Description copied from interface:ContentItemService
Reads allContentItems
matching the given ids.- Specified by:
readAllByIdIn
in interfaceContentItemService<P extends ContentItem>
- Parameters:
ids
- Names of theContentItems
to retrieve.filters
- additional filters to apply in the query, can be nullcontext
- context information surrounding sandboxing and multitenant state- Returns:
- All
ContentItems
matching the given ids.
-
readPageByIdIn
public org.springframework.data.domain.Page<P> readPageByIdIn(@NonNull @NonNull Collection<String> ids, @NonNull @NonNull org.springframework.data.domain.Pageable page, @Nullable cz.jirutka.rsql.parser.ast.Node filters, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo context) Description copied from interface:ContentItemService
Reads allContentItems
matching the given ids.- Specified by:
readPageByIdIn
in interfaceContentItemService<P extends ContentItem>
- Parameters:
ids
- Names of theContentItems
to retrieve.page
- the requested page of results from the databasefilters
- additional filters to apply in the query, can be nullcontext
- context information surrounding sandboxing and multitenant state- Returns:
- A page of all
ContentItems
matching the given ids.
-
readPageByModelId
public org.springframework.data.domain.Page<P> readPageByModelId(String modelId, @NonNull @NonNull org.springframework.data.domain.Pageable page, @Nullable cz.jirutka.rsql.parser.ast.Node filters, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo context) Description copied from interface:ContentItemService
Read all content for a specific model.- Specified by:
readPageByModelId
in interfaceContentItemService<P extends ContentItem>
- Parameters:
modelId
- the content's model idpage
- the requested page of results from the databasefilters
- additional filters to apply in the query, can be nullcontext
- context information surrounding sandboxing and multitenant state- Returns:
- a page of content items associated with a model
-
readByNameAndNotEmbedded
public Optional<P> readByNameAndNotEmbedded(String contentName, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Description copied from interface:ContentItemService
Finds the non-embedded content item with the given name (should only be one result, as content names are unique in non-embedded items).- Specified by:
readByNameAndNotEmbedded
in interfaceContentItemService<P extends ContentItem>
- Parameters:
contentName
- the name of the content that should be retrievedcontextInfo
- context information surrounding sandboxing and multitenant state- Returns:
- an
Optional
containing the content with the given name, empty if not found
-
readAllByModelId
public List<P> readAllByModelId(@NonNull @NonNull String modelId, @Nullable cz.jirutka.rsql.parser.ast.Node filters, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Description copied from interface:ContentItemService
Read all content for a specific model.- Specified by:
readAllByModelId
in interfaceContentItemService<P extends ContentItem>
- Parameters:
modelId
- the content's model idfilters
- additional filters to apply in the query, can be nullcontextInfo
- context information surrounding sandboxing and multitenant state- Returns:
- a list of content items associated with a model
-
create
public P create(@NonNull P content, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) - Specified by:
create
in interfacecom.broadleafcommerce.data.tracking.core.service.CrudEntityService<P extends ContentItem>
- Overrides:
create
in classcom.broadleafcommerce.data.tracking.core.service.BaseCrudEntityService<P extends ContentItem>
-
buildAuthor
Build the Content Items's author information based on the authenticated user.- Returns:
- the current author
-
replace
public P replace(@NonNull @NonNull String id, @NonNull P content, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo context) - Specified by:
replace
in interfacecom.broadleafcommerce.data.tracking.core.service.CrudEntityService<P extends ContentItem>
- Overrides:
replace
in classcom.broadleafcommerce.data.tracking.core.service.BaseCrudEntityService<P extends ContentItem>
-
update
public P update(String id, @NonNull P content, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo context) - Specified by:
update
in interfacecom.broadleafcommerce.data.tracking.core.service.CrudEntityService<P extends ContentItem>
- Overrides:
update
in classcom.broadleafcommerce.data.tracking.core.service.BaseCrudEntityService<P extends ContentItem>
-
delete
public void delete(String id, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo context) - Specified by:
delete
in interfacecom.broadleafcommerce.data.tracking.core.service.CrudEntityService<P extends ContentItem>
- Overrides:
delete
in classcom.broadleafcommerce.data.tracking.core.service.BaseCrudEntityService<P extends ContentItem>
-
readByModelIdAndUri
public Optional<P> readByModelIdAndUri(String modelId, String uri, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Description copied from interface:ContentItemService
- Specified by:
readByModelIdAndUri
in interfaceContentItemService<P extends ContentItem>
- Parameters:
modelId
- ID of the model the item belongs touri
- URI of the itemcontextInfo
- Context information surrounding sandboxing and multitenant state- Returns:
- The
ContentItem
by matchingmodelContextId
anduri
.
-
readByCombinedModelAndItemUri
public Optional<P> readByCombinedModelAndItemUri(String uri, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Description copied from interface:ContentItemService
Takes the givenuri
and returns the item where the combination ofits URI
and itsContentModel's URI
matches.- Specified by:
readByCombinedModelAndItemUri
in interfaceContentItemService<P extends ContentItem>
- Parameters:
uri
- The URI to match againstcontextInfo
- context information surrounding sandboxing and multitenant state- Returns:
- A
ContentItem
if the combination of its and its parent model's URIs matchuri
.
-
readAllByQuery
public org.springframework.data.domain.Page<P> readAllByQuery(@Nullable String query, @Nullable cz.jirutka.rsql.parser.ast.Node filters, @Nullable org.springframework.data.domain.Pageable page, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo context) Description copied from interface:ContentItemService
Read all content based on the provided query.- Specified by:
readAllByQuery
in interfaceContentItemService<P extends ContentItem>
- Parameters:
query
- the query to use to filter contentfilters
- additional filters to apply in the query, can be nullpage
- the requested page of results from the databasecontext
- context information surrounding sandboxing and multitenant state- Returns:
- a page of content items matching the query
-
replaceAllItemTranslations
public com.broadleafcommerce.translation.service.dto.TranslationsPayload replaceAllItemTranslations(String id, @NonNull @NonNull Locale locale, @NonNull @NonNull com.broadleafcommerce.translation.service.dto.TranslationsPayload request, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo context) Description copied from interface:ContentItemService
Handles persistence of translations related to aContentItem
or itsFieldData
. FieldData don't have a separate endpoint but are otherwise treated as a separate entity. Therefore, this method is responsible for parsing theTranslationsPayload
and pulling out theFieldData
translations to be saved separately from the translation of directContentItem
fields.- Specified by:
replaceAllItemTranslations
in interfaceContentItemService<P extends ContentItem>
- Parameters:
id
- Id of theContentItem
locale
- Locale the translations map torequest
-TranslationsPayload
context
- Additional multitenant and sandbox info- Returns:
- The updated translations.
-
readAllContentItemTags
public Collection<ContentTag> readAllContentItemTags(@Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Description copied from interface:ContentItemService
Read all tags associated with content items.- Specified by:
readAllContentItemTags
in interfaceContentItemService<P extends ContentItem>
- Parameters:
contextInfo
- context information surrounding sandboxing and multitenant state- Returns:
- a list of tags
-
removeFieldDataForContent
protected void removeFieldDataForContent(@NonNull P content, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo context) -
replaceOrCreateFieldDataForContent
protected void replaceOrCreateFieldDataForContent(@NonNull P content, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo context) Create or replaceFieldData
for the passed inContentItem
- Parameters:
content
- the content item to updatecontext
- information surrounding sandboxing and multitenant state
-
onApplicationEvent
- Specified by:
onApplicationEvent
in interfaceorg.springframework.context.ApplicationListener<P extends ContentItem>
-
getRepository
- Overrides:
getRepository
in classcom.broadleafcommerce.data.tracking.core.service.BaseCrudEntityService<P extends ContentItem>
-
getFieldDataService
-
getTypeFactory
protected com.broadleafcommerce.common.extension.TypeFactory getTypeFactory() -
getAuthenticationUtils
protected com.broadleafcommerce.resource.security.utils.service.AuthenticationUtils getAuthenticationUtils() -
getTranslationEntityService
protected com.broadleafcommerce.translation.service.TranslationEntityService<com.broadleafcommerce.translation.domain.Translation> getTranslationEntityService() -
setTranslationEntityService
@Autowired public void setTranslationEntityService(com.broadleafcommerce.translation.service.TranslationEntityService<com.broadleafcommerce.translation.domain.Translation> translationEntityService) -
getCacheStateManager
@Nullable protected com.broadleafcommerce.common.extension.cache.CacheStateManager getCacheStateManager() -
setCacheStateManager
@Autowired(required=false) public void setCacheStateManager(@Nullable com.broadleafcommerce.common.extension.cache.CacheStateManager cacheStateManager) -
setContentItemCacheByNameKeyGen
@Autowired(required=false) @Qualifier("contentItemCacheByName") public void setContentItemCacheByNameKeyGen(@Nullable com.broadleafcommerce.common.extension.cache.key.ContextKeyGen contentItemCacheByNameKeyGen) -
getContentItemCacheByNameKeyGen
@Nullable protected com.broadleafcommerce.common.extension.cache.key.ContextKeyGen getContentItemCacheByNameKeyGen() -
setContentItemCacheByIdInKeyGen
@Autowired(required=false) @Qualifier("contentItemCacheByIdIn") public void setContentItemCacheByIdInKeyGen(@Nullable com.broadleafcommerce.common.extension.cache.key.ContextKeyGen contentItemCacheByIdInKeyGen) -
getContentItemCacheByIdInKeyGen
@Nullable protected com.broadleafcommerce.common.extension.cache.key.ContextKeyGen getContentItemCacheByIdInKeyGen() -
setContentItemCacheByNameInKeyGen
@Autowired(required=false) @Qualifier("contentItemCacheByNameIn") public void setContentItemCacheByNameInKeyGen(@Nullable com.broadleafcommerce.common.extension.cache.key.ContextKeyGen contentItemCacheByNameInKeyGen) -
getContentItemCacheByNameInKeyGen
@Nullable protected com.broadleafcommerce.common.extension.cache.key.ContextKeyGen getContentItemCacheByNameInKeyGen() -
setContentItemCacheByModelIdKeyGen
@Autowired(required=false) @Qualifier("contentItemCacheByModelId") public void setContentItemCacheByModelIdKeyGen(@Nullable com.broadleafcommerce.common.extension.cache.key.ContextKeyGen contentItemCacheByModelIdKeyGen) -
getContentItemCacheByModelIdKeyGen
@Nullable protected com.broadleafcommerce.common.extension.cache.key.ContextKeyGen getContentItemCacheByModelIdKeyGen() -
setContentItemCacheByUriAndModelIdKeyGen
@Autowired(required=false) @Qualifier("contentItemCacheByUriAndModelId") public void setContentItemCacheByUriAndModelIdKeyGen(@Nullable com.broadleafcommerce.common.extension.cache.key.ContextKeyGen contentItemCacheByUriAndModelIdKeyGen) -
getContentItemCacheByUriAndModelIdKeyGen
@Nullable protected com.broadleafcommerce.common.extension.cache.key.ContextKeyGen getContentItemCacheByUriAndModelIdKeyGen() -
setContentItemCachePageByNameInKeyGen
@Autowired(required=false) @Qualifier("contentItemCachePageByNameIn") public void setContentItemCachePageByNameInKeyGen(@Nullable com.broadleafcommerce.common.extension.cache.key.ContextKeyGen contentItemCachePageByNameInKeyGen) -
getContentItemCachePageByNameInKeyGen
@Nullable protected com.broadleafcommerce.common.extension.cache.key.ContextKeyGen getContentItemCachePageByNameInKeyGen() -
setContentItemCachePageByIdInKeyGen
@Autowired(required=false) @Qualifier("contentItemCachePageByIdIn") public void setContentItemCachePageByIdInKeyGen(@Nullable com.broadleafcommerce.common.extension.cache.key.ContextKeyGen contentItemCachePageByIdInKeyGen) -
getContentItemCachePageByIdInKeyGen
@Nullable protected com.broadleafcommerce.common.extension.cache.key.ContextKeyGen getContentItemCachePageByIdInKeyGen() -
setContentItemCachePageByModelIdKeyGen
@Autowired(required=false) @Qualifier("contentItemCachePageByModelId") public void setContentItemCachePageByModelIdKeyGen(@Nullable com.broadleafcommerce.common.extension.cache.key.ContextKeyGen contentItemCachePageByModelIdKeyGen) -
getContentItemCachePageByModelIdKeyGen
@Nullable protected com.broadleafcommerce.common.extension.cache.key.ContextKeyGen getContentItemCachePageByModelIdKeyGen() -
setContentItemCacheByItemAndModelUriKeyGen
@Autowired(required=false) @Qualifier("contentItemCacheByCombinedUrl") public void setContentItemCacheByItemAndModelUriKeyGen(@Nullable com.broadleafcommerce.common.extension.cache.key.ContextKeyGen contentItemCacheByItemAndModelUriKeyGen) -
getContentItemCacheByItemAndModelUriKeyGen
@Nullable protected com.broadleafcommerce.common.extension.cache.key.ContextKeyGen getContentItemCacheByItemAndModelUriKeyGen() -
setContentItemCacheAllByFilterKeyGen
@Autowired(required=false) @Qualifier("contentItemCacheAllByFilter") public void setContentItemCacheAllByFilterKeyGen(@Nullable com.broadleafcommerce.common.extension.cache.key.ContextKeyGen contentItemCacheAllByFilterKeyGen) -
getContentItemCacheAllByFilterKeyGen
@Nullable protected com.broadleafcommerce.common.extension.cache.key.ContextKeyGen getContentItemCacheAllByFilterKeyGen() -
setContentItemCacheAllWithTags
@Autowired(required=false) @Qualifier("contentItemCacheAllWithTags") public void setContentItemCacheAllWithTags(@Nullable com.broadleafcommerce.common.extension.cache.key.ContextKeyGen contentItemCacheAllWithTags) -
getContentItemCacheAllWithTags
@Nullable protected com.broadleafcommerce.common.extension.cache.key.ContextKeyGen getContentItemCacheAllWithTags()
-