Interface BusinessTypeService<P extends BusinessType>
- All Superinterfaces:
com.broadleafcommerce.data.tracking.core.service.CrudEntityService<P>
,com.broadleafcommerce.data.tracking.core.service.RsqlCrudEntityService<P>
- All Known Implementing Classes:
DefaultBusinessTypeService
public interface BusinessTypeService<P extends BusinessType>
extends com.broadleafcommerce.data.tracking.core.service.RsqlCrudEntityService<P>
-
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.data.domain.Page<P>
readAllByNameLike
(String name, cz.jirutka.rsql.parser.ast.Node filters, org.springframework.data.domain.Pageable page, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Read all business types filtered by name.readAllExcludingTemplates
(com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Reads all business types that are not templates.readByTypeKey
(String typeKey, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Reads a business type byBusinessType.getTypeKey()
.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
-
readAllByNameLike
org.springframework.data.domain.Page<P> readAllByNameLike(@Nullable String name, @Nullable cz.jirutka.rsql.parser.ast.Node filters, @Nullable org.springframework.data.domain.Pageable page, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Read all business types filtered by name.- Parameters:
name
- The name to filter byfilters
- additional filters to apply in the query. Should beEmptyNode
if no additional filters should be applied.page
- the requested page of results from the databasecontextInfo
- Request context information around sandbox and multitenant state- Returns:
- all business types filtered by name.
-
readByTypeKey
Optional<P> readByTypeKey(String typeKey, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Reads a business type byBusinessType.getTypeKey()
.- Parameters:
typeKey
- The type key to use.contextInfo
- Additional context info.- Returns:
- The business type or empty.
-
readAllExcludingTemplates
List<P> readAllExcludingTemplates(@Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Reads all business types that are not templates.- Parameters:
contextInfo
- Request context information around sandbox and multitenant state- Returns:
- all business types that are not templates.
-