public class FunnelResource extends ApplicationResource
| Modifier and Type | Field and Description |
|---|---|
private WebClusterManager |
clusterManager |
private String |
groupId |
private static org.slf4j.Logger |
logger |
private NiFiProperties |
properties |
private NiFiServiceFacade |
serviceFacade |
CLIENT_ID, CLUSTER_CONTEXT_HTTP_HEADER, PROXIED_ENTITIES_CHAIN_HTTP_HEADER, PROXIED_ENTITY_USER_DETAILS_HTTP_HEADER, PROXY_CONTEXT_PATH_HTTP_HEADER, PROXY_HOST_HTTP_HEADER, PROXY_PORT_HTTP_HEADER, PROXY_SCHEME_HTTP_HEADER, VERSION| Constructor and Description |
|---|
FunnelResource() |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
createFunnel(javax.servlet.http.HttpServletRequest httpServletRequest,
FunnelEntity funnelEntity)
Creates a new Funnel.
|
javax.ws.rs.core.Response |
createFunnel(javax.servlet.http.HttpServletRequest httpServletRequest,
LongParameter version,
ClientIdParameter clientId,
DoubleParameter x,
DoubleParameter y)
Creates a new funnel.
|
javax.ws.rs.core.Response |
getFunnel(ClientIdParameter clientId,
String id)
Retrieves the specified funnel.
|
javax.ws.rs.core.Response |
getFunnels(ClientIdParameter clientId)
Retrieves all the of funnels in this NiFi.
|
private FunnelDTO |
populateRemainingFunnelContent(FunnelDTO funnel)
Populates the uri for the specified funnel.
|
Set<FunnelDTO> |
populateRemainingFunnelsContent(Set<FunnelDTO> funnels)
Populates the uri for the specified funnels.
|
javax.ws.rs.core.Response |
removeFunnel(javax.servlet.http.HttpServletRequest httpServletRequest,
LongParameter version,
ClientIdParameter clientId,
String id)
Removes the specified funnel.
|
void |
setClusterManager(WebClusterManager clusterManager) |
void |
setGroupId(String groupId) |
void |
setProperties(NiFiProperties properties) |
void |
setServiceFacade(NiFiServiceFacade serviceFacade) |
javax.ws.rs.core.Response |
updateFunnel(javax.servlet.http.HttpServletRequest httpServletRequest,
LongParameter version,
ClientIdParameter clientId,
String id,
String parentGroupId,
DoubleParameter x,
DoubleParameter y)
Updates the specified funnel.
|
javax.ws.rs.core.Response |
updateFunnel(javax.servlet.http.HttpServletRequest httpServletRequest,
String id,
FunnelEntity funnelEntity)
Creates a new Funnel.
|
clusterContext, generateContinueResponse, generateCreatedResponse, generateOkResponse, generateOkResponse, generateResourceUri, getAbsolutePath, getClusterContextFromRequest, getHeaders, getHeaders, getRequestParameters, getRequestParameters, noCache, updateClientIdprivate static final org.slf4j.Logger logger
private NiFiServiceFacade serviceFacade
private WebClusterManager clusterManager
private NiFiProperties properties
private String groupId
public Set<FunnelDTO> populateRemainingFunnelsContent(Set<FunnelDTO> funnels)
funnels - private FunnelDTO populateRemainingFunnelContent(FunnelDTO funnel)
@PreAuthorize(value="hasAnyRole(\'ROLE_MONITOR\', \'ROLE_DFM\', \'ROLE_ADMIN\')") public javax.ws.rs.core.Response getFunnels(ClientIdParameter clientId)
clientId - Optional client id. If the client id is not specified, a
new one will be generated. This value (whether specified or generated) is
included in the response.@PreAuthorize(value="hasRole(\'ROLE_DFM\')")
public javax.ws.rs.core.Response createFunnel(@Context
javax.servlet.http.HttpServletRequest httpServletRequest,
LongParameter version,
ClientIdParameter clientId,
DoubleParameter x,
DoubleParameter y)
httpServletRequest - version - The revision is used to verify the client is working with
the latest version of the flow.clientId - Optional client id. If the client id is not specified, a
new one will be generated. This value (whether specified or generated) is
included in the response.x - The x coordinate for this funnels position.y - The y coordinate for this funnels position.@PreAuthorize(value="hasRole(\'ROLE_DFM\')")
public javax.ws.rs.core.Response createFunnel(@Context
javax.servlet.http.HttpServletRequest httpServletRequest,
FunnelEntity funnelEntity)
httpServletRequest - funnelEntity - A funnelEntity.@PreAuthorize(value="hasAnyRole(\'ROLE_MONITOR\', \'ROLE_DFM\', \'ROLE_ADMIN\')") public javax.ws.rs.core.Response getFunnel(ClientIdParameter clientId, String id)
clientId - Optional client id. If the client id is not specified, a
new one will be generated. This value (whether specified or generated) is
included in the response.id - The id of the funnel to retrieve@PreAuthorize(value="hasRole(\'ROLE_DFM\')")
public javax.ws.rs.core.Response updateFunnel(@Context
javax.servlet.http.HttpServletRequest httpServletRequest,
LongParameter version,
ClientIdParameter clientId,
String id,
String parentGroupId,
DoubleParameter x,
DoubleParameter y)
httpServletRequest - version - The revision is used to verify the client is working with
the latest version of the flow.clientId - Optional client id. If the client id is not specified, a
new one will be generated. This value (whether specified or generated) is
included in the response.id - The id of the funnel to update.parentGroupId - The id of the process group to move this funnel to.x - The x coordinate for this funnels position.y - The y coordinate for this funnels position.@PreAuthorize(value="hasRole(\'ROLE_DFM\')")
public javax.ws.rs.core.Response updateFunnel(@Context
javax.servlet.http.HttpServletRequest httpServletRequest,
String id,
FunnelEntity funnelEntity)
httpServletRequest - id - The id of the funnel to update.funnelEntity - A funnelEntity.@PreAuthorize(value="hasRole(\'ROLE_DFM\')")
public javax.ws.rs.core.Response removeFunnel(@Context
javax.servlet.http.HttpServletRequest httpServletRequest,
LongParameter version,
ClientIdParameter clientId,
String id)
httpServletRequest - version - The revision is used to verify the client is working with
the latest version of the flow.clientId - Optional client id. If the client id is not specified, a
new one will be generated. This value (whether specified or generated) is
included in the response.id - The id of the funnel to remove.public void setServiceFacade(NiFiServiceFacade serviceFacade)
public void setGroupId(String groupId)
public void setClusterManager(WebClusterManager clusterManager)
public void setProperties(NiFiProperties properties)
Copyright © 2015 Apache NiFi (incubating). All rights reserved.