org.squashtest.csp.tm.internal.service
Interface NodeManagementService<MANAGED extends LibraryNode,NODE extends LibraryNode,FOLDER extends Folder<NODE>>

All Known Implementing Classes:
GenericNodeManagementService

public interface NodeManagementService<MANAGED extends LibraryNode,NODE extends LibraryNode,FOLDER extends Folder<NODE>>


Method Summary
 MANAGED findNode(long nodeId)
          Finds a node by its ID.
 void removeNode(long nodeId)
          Removes a node from repository by its ID.
 void renameNode(long nodeId, String newName)
          Renames a node by its ID after checking that there is no name clash in the node's container.
 void updateNodeDescription(long nodeId, String newDescription)
          This method updates a node description
 

Method Detail

findNode

@Transactional(readOnly=true)
MANAGED findNode(long nodeId)
Finds a node by its ID.

Parameters:
nodeId -
Returns:

removeNode

void removeNode(long nodeId)
Removes a node from repository by its ID.

Parameters:
nodeId -

renameNode

void renameNode(long nodeId,
                String newName)
                throws DuplicateNameException
Renames a node by its ID after checking that there is no name clash in the node's container.

Parameters:
nodeId -
newName -
Throws:
DuplicateNameException - if the node's container already contains a node with the new name.

updateNodeDescription

void updateNodeDescription(long nodeId,
                           String newDescription)
This method updates a node description

Parameters:
nodeId - the node id
newDescription - the new description (String)


Copyright © 2010-2012 Squashtest TM, Squashtest.org. All Rights Reserved.