Class OptionTemplateGroupEndpoint
java.lang.Object
com.broadleafcommerce.catalog.web.endpoint.option.OptionTemplateGroupEndpoint
@FrameworkRestController
@FrameworkMapping("/option-template-groups")
@DataRouteByExample(OptionTemplateGroup.class)
public class OptionTemplateGroupEndpoint
extends Object
- Author:
- Nathan Moore (nathanmoore).
-
Field Summary
-
Constructor Summary
ConstructorDescriptionOptionTemplateGroupEndpoint
(OptionTemplateGroupService<OptionTemplateGroup> productOptionGroupService, OptionTemplateGroupHydrationService optionTemplateGroupHydrationService, com.broadleafcommerce.translation.service.TranslationEntityService<com.broadleafcommerce.translation.domain.Translation> translationEntityService) -
Method Summary
Modifier and TypeMethodDescriptioncreate
(com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo, OptionTemplateGroup req) void
protected OptionTemplateGroupService<OptionTemplateGroup>
protected OptionTemplateGroupHydrationService
protected com.broadleafcommerce.translation.service.TranslationEntityService<com.broadleafcommerce.translation.domain.Translation>
org.springframework.data.domain.Page<OptionTemplateGroup>
readAll
(com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo, String query, org.springframework.data.domain.Pageable page, cz.jirutka.rsql.parser.ast.Node filters) replace
(com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo, String id, OptionTemplateGroup req) com.broadleafcommerce.translation.service.dto.TranslationsPayload
replaceAllProductOptionGroupTranslations
(com.broadleafcommerce.data.tracking.core.context.ContextInfo context, String id, Locale locale, com.broadleafcommerce.translation.service.dto.TranslationsPayload translationRequest) update
(com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo, String id, OptionTemplateGroup req)
-
Field Details
-
BASE_URI
- See Also:
-
-
Constructor Details
-
OptionTemplateGroupEndpoint
public OptionTemplateGroupEndpoint(OptionTemplateGroupService<OptionTemplateGroup> productOptionGroupService, OptionTemplateGroupHydrationService optionTemplateGroupHydrationService, com.broadleafcommerce.translation.service.TranslationEntityService<com.broadleafcommerce.translation.domain.Translation> translationEntityService)
-
-
Method Details
-
readAll
@FrameworkGetMapping @Policy(permissionRoots="OPTION_TEMPLATE_GROUP") public org.springframework.data.domain.Page<OptionTemplateGroup> readAll(@ContextOperation com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo, @RequestParam(value="q",required=false) String query, @PageableDefault(size=50) org.springframework.data.domain.Pageable page, cz.jirutka.rsql.parser.ast.Node filters) -
read
@FrameworkGetMapping("/{id}") @Policy(permissionRoots="OPTION_TEMPLATE_GROUP") public OptionTemplateGroup read(@ContextOperation com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo, @PathVariable("id") String id) -
replace
@FrameworkPutMapping("/{id}") @Policy(permissionRoots="OPTION_TEMPLATE_GROUP") public OptionTemplateGroup replace(@ContextOperation(UPDATE) com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo, @PathVariable("id") String id, @RequestBody OptionTemplateGroup req) -
replaceAllProductOptionGroupTranslations
@FrameworkPutMapping(value="/{id}/translations/{locale}", consumes="application/json") @Policy(permissionRoots="OPTION_TEMPLATE_GROUP") public com.broadleafcommerce.translation.service.dto.TranslationsPayload replaceAllProductOptionGroupTranslations(@ContextOperation(UPDATE) com.broadleafcommerce.data.tracking.core.context.ContextInfo context, @PathVariable("id") String id, @PathVariable("locale") Locale locale, @RequestBody com.broadleafcommerce.translation.service.dto.TranslationsPayload translationRequest) -
update
@FrameworkPatchMapping("/{id}") @Policy(permissionRoots="OPTION_TEMPLATE_GROUP") public OptionTemplateGroup update(@ContextOperation(UPDATE) com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo, @PathVariable("id") String id, @RequestBody OptionTemplateGroup req) -
create
@FrameworkPostMapping(consumes="application/json") @Policy(permissionRoots="OPTION_TEMPLATE_GROUP") public OptionTemplateGroup create(@ContextOperation(CREATE) com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo, @RequestBody OptionTemplateGroup req) -
delete
@FrameworkDeleteMapping("/{id}") @Policy(permissionRoots="OPTION_TEMPLATE_GROUP") public void delete(@ContextOperation(DELETE) com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo, @PathVariable("id") String id) -
getGroupService
-
getOptionTemplateGroupHydrationService
-
getTranslationEntityService
protected com.broadleafcommerce.translation.service.TranslationEntityService<com.broadleafcommerce.translation.domain.Translation> getTranslationEntityService()
-