public interface NiFiWebContext
Modifier and Type | Method and Description |
---|---|
ControllerService |
getControllerService(String serviceIdentifier)
Gets the ControllerService for the specified identifier.
|
String |
getCurrentUserDn()
Gets the current user dn.
|
String |
getCurrentUserName()
Gets the current user name.
|
ProcessorInfo |
getProcessor(NiFiWebContextConfig config)
Gets the Processor configuration.
|
void |
saveActions(Collection<ProcessorConfigurationAction> actions)
Provides a mechanism for custom UIs to save actions to appear in NiFi
configuration history.
|
void |
setProcessorAnnotationData(NiFiWebContextConfig config,
String annotationData)
Sets the Processor annotation data.
|
ControllerService getControllerService(String serviceIdentifier)
serviceIdentifier
- void saveActions(Collection<ProcessorConfigurationAction> actions)
actions
- String getCurrentUserDn()
String getCurrentUserName()
ProcessorInfo getProcessor(NiFiWebContextConfig config) throws ResourceNotFoundException, ClusterRequestException
config
- the configurationResourceNotFoundException
- if the processor does not exitClusterRequestException
- if the processor was unable to be
retrieved from the cluster. This exception will only be thrown when
operating in a cluster.void setProcessorAnnotationData(NiFiWebContextConfig config, String annotationData) throws ResourceNotFoundException, InvalidRevisionException, ClusterRequestException
config
- the configurationannotationData
- the annotation dataResourceNotFoundException
- if the processor does not exitInvalidRevisionException
- if a revision other than the current
revision is givenClusterRequestException
- if the annotation data was unable to be
set for the processor. This exception will only be thrown when operating
in a cluster.Copyright © 2015 Apache NiFi (incubating). All rights reserved.