public class FlowConfigsResource extends com.linkedin.restli.server.resources.ComplexKeyResourceTemplate<FlowId,com.linkedin.restli.common.EmptyRecord,FlowConfig>
| Modifier and Type | Field and Description |
|---|---|
static String |
INJECT_READY_TO_USE |
| Constructor and Description |
|---|
FlowConfigsResource() |
| Modifier and Type | Method and Description |
|---|---|
static void |
checkRequester(RequesterService requesterService,
FlowConfig originalFlowConfig,
List<ServiceRequester> requesterList)
Check that all
ServiceRequesters in this request are contained within the original service requester list
when the flow was submitted. |
com.linkedin.restli.server.CreateResponse |
create(FlowConfig flowConfig)
Create a flow configuration that the service will forward to execution instances for execution
|
com.linkedin.restli.server.UpdateResponse |
delete(com.linkedin.restli.common.ComplexResourceKey<FlowId,com.linkedin.restli.common.EmptyRecord> key)
Delete a configured flow.
|
FlowConfig |
get(com.linkedin.restli.common.ComplexResourceKey<FlowId,com.linkedin.restli.common.EmptyRecord> key)
Retrieve the flow configuration with the given key
|
com.linkedin.restli.server.UpdateResponse |
update(com.linkedin.restli.common.ComplexResourceKey<FlowId,com.linkedin.restli.common.EmptyRecord> key,
FlowConfig flowConfig)
Update the flow configuration with the specified key.
|
batchCreate, batchDelete, batchGet, batchUpdate, batchUpdate, getAll, updategetContext, setContextpublic static final String INJECT_READY_TO_USE
public FlowConfig get(com.linkedin.restli.common.ComplexResourceKey<FlowId,com.linkedin.restli.common.EmptyRecord> key)
get in interface com.linkedin.restli.server.resources.CollectionResource<com.linkedin.restli.common.ComplexResourceKey<FlowId,com.linkedin.restli.common.EmptyRecord>,FlowConfig>get in class com.linkedin.restli.server.resources.ComplexKeyResourceTemplate<FlowId,com.linkedin.restli.common.EmptyRecord,FlowConfig>key - flow config id key containing group name and flow nameFlowConfig with flow configurationpublic com.linkedin.restli.server.CreateResponse create(FlowConfig flowConfig)
create in interface com.linkedin.restli.server.resources.CollectionResource<com.linkedin.restli.common.ComplexResourceKey<FlowId,com.linkedin.restli.common.EmptyRecord>,FlowConfig>create in class com.linkedin.restli.server.resources.ComplexKeyResourceTemplate<FlowId,com.linkedin.restli.common.EmptyRecord,FlowConfig>flowConfig - flow configurationCreateResponsepublic com.linkedin.restli.server.UpdateResponse update(com.linkedin.restli.common.ComplexResourceKey<FlowId,com.linkedin.restli.common.EmptyRecord> key, FlowConfig flowConfig)
update in interface com.linkedin.restli.server.resources.CollectionResource<com.linkedin.restli.common.ComplexResourceKey<FlowId,com.linkedin.restli.common.EmptyRecord>,FlowConfig>update in class com.linkedin.restli.server.resources.ComplexKeyResourceTemplate<FlowId,com.linkedin.restli.common.EmptyRecord,FlowConfig>key - composite key containing group name and flow name that identifies the flow to updateflowConfig - new flow configurationUpdateResponsepublic com.linkedin.restli.server.UpdateResponse delete(com.linkedin.restli.common.ComplexResourceKey<FlowId,com.linkedin.restli.common.EmptyRecord> key)
delete in interface com.linkedin.restli.server.resources.CollectionResource<com.linkedin.restli.common.ComplexResourceKey<FlowId,com.linkedin.restli.common.EmptyRecord>,FlowConfig>delete in class com.linkedin.restli.server.resources.ComplexKeyResourceTemplate<FlowId,com.linkedin.restli.common.EmptyRecord,FlowConfig>key - composite key containing flow group and flow name that identifies the flow to remove from the flow catalogUpdateResponsepublic static void checkRequester(RequesterService requesterService, FlowConfig originalFlowConfig, List<ServiceRequester> requesterList)
ServiceRequesters in this request are contained within the original service requester list
when the flow was submitted. If they are not, throw a FlowConfigLoggedException with HttpStatus.S_401_UNAUTHORIZED.
If there is a failure when deserializing the original requester list, throw a FlowConfigLoggedException with
HttpStatus.S_400_BAD_REQUEST.requesterService - the RequesterService used to verify the requesteroriginalFlowConfig - original flow config to find original requesterrequesterList - list of requesters for this request