org.squashtest.csp.tm.internal.service
Class TestCaseLibraryNavigationServiceImpl

java.lang.Object
  extended by org.squashtest.csp.tm.internal.service.AbstractLibraryNavigationService<TestCaseLibrary,TestCaseFolder,TestCaseLibraryNode>
      extended by org.squashtest.csp.tm.internal.service.TestCaseLibraryNavigationServiceImpl
All Implemented Interfaces:
LibraryNavigationService<TestCaseLibrary,TestCaseFolder,TestCaseLibraryNode>, TestCaseLibraryNavigationService

@Service(value="squashtest.tm.service.TestCaseLibraryNavigationService")
@Transactional
public class TestCaseLibraryNavigationServiceImpl
extends AbstractLibraryNavigationService<TestCaseLibrary,TestCaseFolder,TestCaseLibraryNode>
implements TestCaseLibraryNavigationService


Constructor Summary
TestCaseLibraryNavigationServiceImpl()
           
 
Method Summary
 void addTestCaseToFolder(long folderId, TestCase testCase)
           
 void addTestCaseToLibrary(long libraryId, TestCase testCase)
           
 TestCase findTestCase(long testCaseId)
           
protected  NodeDeletionHandler<TestCaseLibraryNode,TestCaseFolder> getDeletionHandler()
           
protected  FolderDao<TestCaseFolder,TestCaseLibraryNode> getFolderDao()
           
protected  LibraryDao<TestCaseLibrary,TestCaseLibraryNode> getLibraryDao()
           
protected  LibraryNodeDao<TestCaseLibraryNode> getLibraryNodeDao()
           
 
Methods inherited from class org.squashtest.csp.tm.internal.service.AbstractLibraryNavigationService
addFolderToFolder, addFolderToLibrary, copyNodesToFolder, copyNodesToLibrary, createCopyFolder, createPastableCopy, deleteNodes, findFolder, findFolderContent, findLibrary, findLibraryRootContent, generateUniqueCopyNumber, modeNodesToFolder, moveNodesToLibrary, renameFolder, setPermissionService, simulateDeletion
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.squashtest.csp.tm.service.LibraryNavigationService
addFolderToFolder, addFolderToLibrary, copyNodesToFolder, copyNodesToLibrary, deleteNodes, findFolder, findFolderContent, findLibrary, findLibraryRootContent, modeNodesToFolder, moveNodesToLibrary, renameFolder, simulateDeletion
 

Constructor Detail

TestCaseLibraryNavigationServiceImpl

public TestCaseLibraryNavigationServiceImpl()
Method Detail

getDeletionHandler

protected NodeDeletionHandler<TestCaseLibraryNode,TestCaseFolder> getDeletionHandler()
Specified by:
getDeletionHandler in class AbstractLibraryNavigationService<TestCaseLibrary,TestCaseFolder,TestCaseLibraryNode>

getLibraryDao

protected LibraryDao<TestCaseLibrary,TestCaseLibraryNode> getLibraryDao()
Specified by:
getLibraryDao in class AbstractLibraryNavigationService<TestCaseLibrary,TestCaseFolder,TestCaseLibraryNode>

getFolderDao

protected FolderDao<TestCaseFolder,TestCaseLibraryNode> getFolderDao()
Specified by:
getFolderDao in class AbstractLibraryNavigationService<TestCaseLibrary,TestCaseFolder,TestCaseLibraryNode>

getLibraryNodeDao

protected final LibraryNodeDao<TestCaseLibraryNode> getLibraryNodeDao()
Specified by:
getLibraryNodeDao in class AbstractLibraryNavigationService<TestCaseLibrary,TestCaseFolder,TestCaseLibraryNode>

findTestCase

@PreAuthorize(value="hasPermission(#testCaseId, \'org.squashtest.csp.tm.domain.testcase.TestCase\' , \'READ\') or hasRole(\'ROLE_ADMIN\')")
public TestCase findTestCase(long testCaseId)
Specified by:
findTestCase in interface TestCaseLibraryNavigationService

addTestCaseToLibrary

@PreAuthorize(value="hasPermission(#libraryId, \'org.squashtest.csp.tm.domain.testcase.TestCaseLibrary\' , \'WRITE\' )or hasRole(\'ROLE_ADMIN\')")
public void addTestCaseToLibrary(long libraryId,
                                              TestCase testCase)
Specified by:
addTestCaseToLibrary in interface TestCaseLibraryNavigationService

addTestCaseToFolder

@PreAuthorize(value="hasPermission(#folderId, \'org.squashtest.csp.tm.domain.testcase.TestCaseFolder\' , \'WRITE\') or hasRole(\'ROLE_ADMIN\')")
public void addTestCaseToFolder(long folderId,
                                             TestCase testCase)
Specified by:
addTestCaseToFolder in interface TestCaseLibraryNavigationService


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