public class StandardLabelDAO extends ComponentDAO implements LabelDAO
| Modifier and Type | Field and Description |
|---|---|
private FlowController |
flowController |
| Constructor and Description |
|---|
StandardLabelDAO() |
| Modifier and Type | Method and Description |
|---|---|
Label |
createLabel(String groupId,
LabelDTO labelDTO)
Creates a label.
|
void |
deleteLabel(String groupId,
String labelId)
Deletes the specified label.
|
Label |
getLabel(String groupId,
String labelId)
Gets the specified label.
|
Set<Label> |
getLabels(String groupId)
Gets all of the labels.
|
boolean |
hasLabel(String groupId,
String labelId)
Determines if the specified label exists.
|
private Label |
locateLabel(ProcessGroup group,
String labelId)
Locates the specified label.
|
private Label |
locateLabel(String groupId,
String labelId)
Locates the specified label.
|
void |
setFlowController(FlowController flowController) |
Label |
updateLabel(String groupId,
LabelDTO labelDTO)
Updates the specified label.
|
isAnyNotNull, isNotNull, locateProcessGroupprivate FlowController flowController
private Label locateLabel(String groupId, String labelId)
groupId - labelId - private Label locateLabel(ProcessGroup group, String labelId)
group - labelId - public Label createLabel(String groupId, LabelDTO labelDTO)
createLabel in interface LabelDAOlabelDTO - The label DTOpublic boolean hasLabel(String groupId, String labelId)
public Label updateLabel(String groupId, LabelDTO labelDTO)
updateLabel in interface LabelDAOlabelDTO - The label DTOpublic void deleteLabel(String groupId, String labelId)
deleteLabel in interface LabelDAOlabelId - The label idpublic void setFlowController(FlowController flowController)
Copyright © 2015 Apache NiFi (incubating). All rights reserved.