Class DataFeedProcessManagementEndpoint
java.lang.Object
com.broadleafcommerce.datafeed.web.endpoint.DataFeedProcessManagementEndpoint
@FrameworkRestController
@FrameworkMapping("/processes")
@DataRouteByKey("datafeed")
public class DataFeedProcessManagementEndpoint
extends Object
- Author:
- Dima Myroniuk (dmyroniuk)
-
Field Summary
-
Constructor Summary
ConstructorDescriptionDataFeedProcessManagementEndpoint
(DataFeedProcessService<DataFeedProcess> processService, DataFeedProcessHydrationService dataFeedProcessHydrationService, com.broadleafcommerce.common.extension.TypeFactory factory) -
Method Summary
Modifier and TypeMethodDescriptioncreateDataFeedProcess
(DataFeedProcess process, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) void
deleteDataFeedProcess
(String processId, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) protected DataFeedProcessHydrationService
protected com.broadleafcommerce.common.extension.TypeFactory
protected DataFeedProcessService<DataFeedProcess>
protected DataFeedProcessResponse
readDataFeedProcessById
(String processId, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) org.springframework.data.domain.Page<DataFeedProcessResponse>
readDataFeedProcesses
(String query, boolean hydrate, cz.jirutka.rsql.parser.ast.Node filters, org.springframework.data.domain.Pageable page, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) replaceDataFeedProcess
(String processId, DataFeedProcess request, com.broadleafcommerce.data.tracking.core.context.ContextInfo context)
-
Field Details
-
BASE_URI
- See Also:
-
-
Constructor Details
-
DataFeedProcessManagementEndpoint
public DataFeedProcessManagementEndpoint(DataFeedProcessService<DataFeedProcess> processService, DataFeedProcessHydrationService dataFeedProcessHydrationService, com.broadleafcommerce.common.extension.TypeFactory factory)
-
-
Method Details
-
readDataFeedProcesses
@FrameworkGetMapping @Policy(permissionRoots="DATA_FEED_PROCESS") public org.springframework.data.domain.Page<DataFeedProcessResponse> readDataFeedProcesses(@RequestParam(value="q",required=false) String query, @RequestParam(value="hydrate",defaultValue="true") boolean hydrate, cz.jirutka.rsql.parser.ast.Node filters, @PageableDefault(size=50) org.springframework.data.domain.Pageable page, @ContextOperation(READ) com.broadleafcommerce.data.tracking.core.context.ContextInfo context) -
readDataFeedProcessById
@FrameworkGetMapping("/{id}") @Policy(permissionRoots="DATA_FEED_PROCESS") public DataFeedProcessResponse readDataFeedProcessById(@PathVariable("id") String processId, @ContextOperation(READ) com.broadleafcommerce.data.tracking.core.context.ContextInfo context) -
createDataFeedProcess
@FrameworkPostMapping(consumes="application/json") @Policy(permissionRoots="DATA_FEED_PROCESS") public DataFeedProcessResponse createDataFeedProcess(@RequestBody DataFeedProcess process, @ContextOperation(CREATE) com.broadleafcommerce.data.tracking.core.context.ContextInfo context) -
replaceDataFeedProcess
@FrameworkPutMapping(value="/{id}", consumes="application/json") @Policy(permissionRoots="DATA_FEED_PROCESS") public DataFeedProcessResponse replaceDataFeedProcess(@PathVariable("id") String processId, @RequestBody DataFeedProcess request, @ContextOperation(UPDATE) com.broadleafcommerce.data.tracking.core.context.ContextInfo context) -
deleteDataFeedProcess
@FrameworkDeleteMapping("/{id}") @Policy(permissionRoots="DATA_FEED_PROCESS") public void deleteDataFeedProcess(@PathVariable("id") String processId, @ContextOperation(DELETE) com.broadleafcommerce.data.tracking.core.context.ContextInfo context) -
mapDataFeedProcessResponse
-
getProcessService
-
getDataFeedProcessHydrationService
-
getFactory
protected com.broadleafcommerce.common.extension.TypeFactory getFactory()
-