NIFI-730:

- Fixing checkstyle violations.
- Renaming context menu item for emptying a queue.
This commit is contained in:
Matt Gilman 2015-10-13 10:12:58 -04:00
parent ad6af95d07
commit 09d6fe5cdb
5 changed files with 16 additions and 16 deletions

View File

@ -528,28 +528,28 @@ public interface NiFiServiceFacade {
/**
* Creates a new flow file drop request.
*
*
* @param groupId group
* @param connectionId The ID of the connection
* @return
* @return The DropRequest
*/
DropRequestDTO createFlowFileDropRequest(String groupId, String connectionId);
/**
* Gets the specified flow file drop request.
*
*
* @param dropRequestId The flow file drop request
* @return The DropRequest
*/
DropRequestDTO getFlowFileDropRequest(String dropRequestId);
/**
* Cancels/removes the specified flow file drop request.
*
*
* @param dropRequestId The flow file drop request
*/
void deleteFlowFileDropRequest(String dropRequestId);
// ----------------------------------------
// InputPort methods
// ----------------------------------------

View File

@ -1036,7 +1036,7 @@ public class ConnectionResource extends ApplicationResource {
/**
* Deletes the specified drop request.
*
*
* @param 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.
* @param connectionId The connection id
* @param dropRequestId The drop request id

View File

@ -33,11 +33,11 @@ public interface ConnectionDAO {
/**
* Gets the specified flow file drop request.
*
*
* @param dropRequestId The drop request id
*/
void getFlowFileDropRequest(String dropRequestId);
/**
* Gets the connections for the specified source processor.
*
@ -75,12 +75,12 @@ public interface ConnectionDAO {
/**
* Creates a new flow file drop request.
*
*
* @param groupId group id
* @param id connection id
*/
void createFileFlowDropRequest(String groupId, String id);
/**
* Verifies the create request can be processed.
*
@ -121,10 +121,10 @@ public interface ConnectionDAO {
* @param id The id of the connection
*/
void deleteConnection(String groupId, String id);
/**
* Deletes the specified flow file drop request.
*
*
* @param dropRequestId The drop request id
*/
void deleteFlowFileDropRequest(String dropRequestId);

View File

@ -850,7 +850,7 @@ nf.Actions = (function () {
*
* @param {type} selection
*/
deleteQueueContents: function (selection) {
emptyQueue: function (selection) {
if (selection.size() !== 1 || !nf.CanvasUtils.isConnection(selection)) {
return;
}

View File

@ -382,7 +382,7 @@ nf.ContextMenu = (function () {
{condition: isCopyable, menuItem: {img: 'images/iconCopy.png', text: 'Copy', action: 'copy'}},
{condition: isPastable, menuItem: {img: 'images/iconPaste.png', text: 'Paste', action: 'paste'}},
{condition: canMoveToParent, menuItem: {img: 'images/iconMoveToParent.png', text: 'Move to parent group', action: 'moveIntoParent'}},
{condition: canDeleteFlowFiles, menuItem: {img: 'images/iconDelete.png', text: 'Delete Flow Files', action: 'deleteQueueContents'}},
{condition: canDeleteFlowFiles, menuItem: {img: 'images/iconDelete.png', text: 'Empty queue', action: 'emptyQueue'}},
{condition: isDeletable, menuItem: {img: 'images/iconDelete.png', text: 'Delete', action: 'delete'}}
];