public class StandardSnippetDAO extends Object implements SnippetDAO
| Modifier and Type | Field and Description |
|---|---|
private FlowController |
flowController |
private SnippetUtils |
snippetUtils |
| Constructor and Description |
|---|
StandardSnippetDAO() |
| Modifier and Type | Method and Description |
|---|---|
FlowSnippetDTO |
copySnippet(String groupId,
String snippetId,
Double originX,
Double originY)
Creates a new snippet based off of an existing snippet.
|
Snippet |
createSnippet(SnippetDTO snippetDTO)
Creates a new snippet containing the specified components.
|
void |
deleteSnippet(String snippetId)
Deletes a snippet.
|
Snippet |
getSnippet(String snippetId)
Gets the specified snippet.
|
boolean |
hasSnippet(String snippetId)
Determines if the specified snippet exists.
|
private StandardSnippet |
locateSnippet(String snippetId) |
private void |
lookupSensitiveProperties(FlowSnippetDTO snippet)
Looks up the actual value for any sensitive properties from the specified
snippet.
|
private void |
lookupSensitiveProperties(Set<ProcessorDTO> processors)
Looks up the actual value for any sensitive properties from the specified
processors.
|
void |
setFlowController(FlowController flowController) |
void |
setSnippetUtils(SnippetUtils snippetUtils) |
Snippet |
updateSnippet(SnippetDTO snippetDTO)
Updates the specified snippet.
|
void |
verifyDelete(String snippetId)
Verifies the specified snippet can be removed.
|
void |
verifyUpdate(SnippetDTO snippetDTO)
Verifies the specified snippet can be updated.
|
private FlowController flowController
private SnippetUtils snippetUtils
private StandardSnippet locateSnippet(String snippetId)
public FlowSnippetDTO copySnippet(String groupId, String snippetId, Double originX, Double originY)
copySnippet in interface SnippetDAOgroupId - originX - originY - public Snippet createSnippet(SnippetDTO snippetDTO)
createSnippet in interface SnippetDAOpublic void verifyDelete(String snippetId)
SnippetDAOverifyDelete in interface SnippetDAOpublic void deleteSnippet(String snippetId)
deleteSnippet in interface SnippetDAOsnippetId - public Snippet getSnippet(String snippetId)
SnippetDAOgetSnippet in interface SnippetDAOsnippetId - The snippet idpublic boolean hasSnippet(String snippetId)
SnippetDAOhasSnippet in interface SnippetDAOpublic void verifyUpdate(SnippetDTO snippetDTO)
SnippetDAOverifyUpdate in interface SnippetDAOpublic Snippet updateSnippet(SnippetDTO snippetDTO)
updateSnippet in interface SnippetDAOprivate void lookupSensitiveProperties(FlowSnippetDTO snippet)
snippet - private void lookupSensitiveProperties(Set<ProcessorDTO> processors)
snippet - public void setFlowController(FlowController flowController)
public void setSnippetUtils(SnippetUtils snippetUtils)
Copyright © 2015 Apache NiFi (incubating). All rights reserved.