Class ThemeFieldEndpoint
java.lang.Object
com.broadleafcommerce.content.web.endpoint.ThemeFieldEndpoint
@FrameworkRestController
@FrameworkMapping("/theme-field-groups/{groupId}/fields")
@DataRouteByExample(ThemeField.class)
public class ThemeFieldEndpoint
extends Object
- Author:
- Jon Fleschler (jfleschler)
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionThemeFieldEndpoint
(ThemeFieldGroupService<ThemeFieldGroup> groupService, ThemeFieldService<ThemeField> fieldService) -
Method Summary
Modifier and TypeMethodDescriptioncreateThemeField
(com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo, String groupId, ThemeField field) org.springframework.http.ResponseEntity<Void>
deleteThemeField
(com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo, String groupId, String id) protected ThemeFieldService<ThemeField>
protected ThemeFieldGroupService<ThemeFieldGroup>
readAllThemeFieldsForGroup
(com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo, String groupId) replaceThemeField
(com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo, String groupId, String id, ThemeField field) updateThemeField
(com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo, String groupId, String id, ThemeField field)
-
Field Details
-
BASE_URI
- See Also:
-
-
Constructor Details
-
ThemeFieldEndpoint
public ThemeFieldEndpoint(ThemeFieldGroupService<ThemeFieldGroup> groupService, ThemeFieldService<ThemeField> fieldService)
-
-
Method Details
-
readAllThemeFieldsForGroup
@Policy(permissionRoots="CONTENT") @FrameworkGetMapping public List<ThemeField> readAllThemeFieldsForGroup(@ContextOperation(READ) com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo, @PathVariable("groupId") String groupId) -
createThemeField
@Policy(permissionRoots="CONTENT") @FrameworkPostMapping(consumes="application/json") public ThemeField createThemeField(@ContextOperation(CREATE) com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo, @PathVariable("groupId") String groupId, @RequestBody ThemeField field) -
replaceThemeField
@Policy(permissionRoots="CONTENT") @FrameworkPutMapping(value="/{id}", consumes="application/json") public ThemeField replaceThemeField(@ContextOperation(UPDATE) com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo, @PathVariable("groupId") String groupId, @PathVariable("id") String id, @RequestBody ThemeField field) -
updateThemeField
@Policy(permissionRoots="CONTENT") @FrameworkPatchMapping(value="/{id}", consumes="application/json") public ThemeField updateThemeField(@ContextOperation(UPDATE) com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo, @PathVariable("groupId") String groupId, @PathVariable("id") String id, @RequestBody ThemeField field) -
deleteThemeField
@Policy(permissionRoots="CONTENT") @FrameworkDeleteMapping("/{id}") public org.springframework.http.ResponseEntity<Void> deleteThemeField(@ContextOperation(DELETE) com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo, @PathVariable("groupId") String groupId, @PathVariable("id") String id) -
getGroupService
-
getFieldService
-