Class FlowResource
- java.lang.Object
-
- lumis.portal.monitor.impl.AbstractMonitorResource
-
- lumis.service.analytics.automationflow.FlowResource
-
@Path("/lumis/service/analytics/automationflow/{si: [a-fA-F0-9]{32}}") public class FlowResource extends AbstractMonitorResource
REST API for automation flow.- Since:
- 12.0.0
- Version:
- $Revision: 23925 $ $Date: 2020-06-25 10:52:10 -0300 (Thu, 25 Jun 2020) $
-
-
Field Summary
-
Fields inherited from class lumis.portal.monitor.impl.AbstractMonitorResource
app
-
-
Constructor Summary
Constructors Constructor Description FlowResource()
Default constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getFlowsByServiceInstance()
Returns the flows of the given service instance as a JSON array.java.lang.String
getUserSegmentationsByServiceInstanceId()
Returns the user segmentations of the given service instance.java.lang.String
quickSave(java.lang.String flowId, java.lang.String flowDefinition)
Updates the definition of the flow with the given identifier.static org.json.JSONObject
toJSON(FlowEntry flowEntry)
Returns a JSON representation of the given flow.-
Methods inherited from class lumis.portal.monitor.impl.AbstractMonitorResource
checkModeManagePermission, checkModeManagePermission, checkModeViewPermission, checkModeViewPermission, checkViewServiceInstancePermission
-
-
-
-
Method Detail
-
getFlowsByServiceInstance
@GET @Produces("application/json") @Path("/flows") public java.lang.String getFlowsByServiceInstance() throws PortalException
Returns the flows of the given service instance as a JSON array.- Returns:
- the flows of the given service instance as a JSON array.
- Throws:
PortalException
- Since:
- 12.0.0
-
quickSave
@Path("/flows/{id:[a-fA-F0-9]{32}}") @PUT @Consumes("application/json") @Produces("application/json") public java.lang.String quickSave(@PathParam("id") java.lang.String flowId, java.lang.String flowDefinition) throws PortalException
Updates the definition of the flow with the given identifier.- Parameters:
flowId
- the flow identifierflowDefinition
- the flow definition- Returns:
- the updated flow.
- Throws:
PortalException
- Since:
- 12.0.0
-
getUserSegmentationsByServiceInstanceId
@Path("/userSegmentations") @GET @Produces("application/json") public java.lang.String getUserSegmentationsByServiceInstanceId() throws PortalException
Returns the user segmentations of the given service instance.- Returns:
- the user segmentations of the given service instance.
- Throws:
PortalException
- Since:
- 12.0.0
-
toJSON
public static org.json.JSONObject toJSON(FlowEntry flowEntry)
Returns a JSON representation of the given flow.- Parameters:
flowEntry
- the flow- Returns:
- a JSON representation of the given flow.
- Since:
- 12.0.0
-
-