|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.squashtest.csp.tm.internal.service.GenericNodeManagementService<MANAGED,NODE,FOLDER>
FOLDER - Type of folder which can contain managed typeNODE - Type of common node supertype of FOLDER and MANAGEDMANAGED - Type of nodes manged by this class@Transactional public class GenericNodeManagementService<MANAGED extends LibraryNode,NODE extends LibraryNode,FOLDER extends Folder<NODE>>
Generic management service for library nodes. It is responsible for common operations such as rename / move / copy and so on.
| Constructor Summary | |
|---|---|
GenericNodeManagementService()
|
|
| 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 |
setFolderDao(FolderDao<FOLDER,NODE> folderDao)
|
void |
setLibraryDao(LibraryDao<Library<NODE>,NODE> libraryDao)
|
void |
setNodeDao(EntityDao<MANAGED> nodeDao)
|
void |
setPermissionService(org.squashtest.csp.core.service.security.PermissionEvaluationService permissionService)
|
void |
updateNodeDescription(long nodeId,
String newDescription)
This method updates a node description |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GenericNodeManagementService()
| Method Detail |
|---|
@ServiceReference public void setPermissionService(org.squashtest.csp.core.service.security.PermissionEvaluationService permissionService)
@Transactional(readOnly=true) @PostAuthorize(value="hasPermission(returnObject, \'READ\') or hasRole(\'ROLE_ADMIN\')") public MANAGED findNode(long nodeId)
NodeManagementService
findNode in interface NodeManagementService<MANAGED extends LibraryNode,NODE extends LibraryNode,FOLDER extends Folder<NODE>>public void setFolderDao(FolderDao<FOLDER,NODE> folderDao)
public void removeNode(long nodeId)
NodeManagementService
removeNode in interface NodeManagementService<MANAGED extends LibraryNode,NODE extends LibraryNode,FOLDER extends Folder<NODE>>
public final void renameNode(long nodeId,
String newName)
throws DuplicateNameException
NodeManagementService
renameNode in interface NodeManagementService<MANAGED extends LibraryNode,NODE extends LibraryNode,FOLDER extends Folder<NODE>>DuplicateNameException - if the node's container already contains a node with the new name.
public final void updateNodeDescription(long nodeId,
String newDescription)
NodeManagementService
updateNodeDescription in interface NodeManagementService<MANAGED extends LibraryNode,NODE extends LibraryNode,FOLDER extends Folder<NODE>>nodeId - the node idnewDescription - the new description (String)public void setLibraryDao(LibraryDao<Library<NODE>,NODE> libraryDao)
public void setNodeDao(EntityDao<MANAGED> nodeDao)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||