|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.squashtest.csp.tm.internal.service.AbstractLibraryNavigationService<TestCaseLibrary,TestCaseFolder,TestCaseLibraryNode>
org.squashtest.csp.tm.internal.service.TestCaseLibraryNavigationServiceImpl
@Service(value="squashtest.tm.service.TestCaseLibraryNavigationService") @Transactional public class TestCaseLibraryNavigationServiceImpl
| Field Summary |
|---|
| Fields inherited from class org.squashtest.csp.tm.internal.service.AbstractLibraryNavigationService |
|---|
COPY_TOKEN, customFieldValuesService |
| Constructor Summary | |
|---|---|
TestCaseLibraryNavigationServiceImpl()
|
|
| Method Summary | |
|---|---|
void |
addTestCaseToFolder(long folderId,
TestCase testCase)
Adds a TestCase to a folder. |
void |
addTestCaseToFolder(long folderId,
TestCase testCase,
Map<Long,String> customFieldValues)
Adds a TestCase to a folder, and its initial custom field values. |
void |
addTestCaseToLibrary(long libraryId,
TestCase testCase)
Adds a TestCase to the root of the library. |
void |
addTestCaseToLibrary(long libraryId,
TestCase testCase,
Map<Long,String> customFieldValues)
Adds a TestCase to the root of the Library, and its initial custom field values. |
List<TestCaseLibrary> |
findLinkableTestCaseLibraries()
Returns the collection of TestCaseLibrarys which TestCases can be linked by a TestCase via
a CallTestStep |
TestCase |
findTestCase(long testCaseId)
|
List<ExportTestCaseData> |
findTestCasesToExportFromNodes(List<Long> nodesIds)
Will find all test cases of the given ids and contained in folders of the given ids, and return their information as a list of ExportTestCaseData |
List<ExportTestCaseData> |
findTestCasesToExportFromProject(List<Long> ids)
Will find all test cases found in the given projects and return their information as a list of ExportTestCaseData |
protected NodeDeletionHandler<TestCaseLibraryNode,TestCaseFolder> |
getDeletionHandler()
|
protected FolderDao<TestCaseFolder,TestCaseLibraryNode> |
getFolderDao()
|
protected LibraryDao<TestCaseLibrary,TestCaseLibraryNode> |
getLibraryDao()
|
protected LibraryNodeDao<TestCaseLibraryNode> |
getLibraryNodeDao()
|
protected PasteStrategy<TestCaseFolder,TestCaseLibraryNode> |
getPasteToFolderStrategy()
|
protected PasteStrategy<TestCaseLibrary,TestCaseLibraryNode> |
getPasteToLibraryStrategy()
|
String |
getPathAsString(long entityId)
Returns the path of a TestCaseLibraryNode given its id. |
ImportSummary |
importExcelTestCase(InputStream archiveStream,
long libraryId,
String encoding)
Accepts a stream to a .zip file containing regular folders or excel files and nothing else. |
| 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, findCreatableLibrary, findFolder, findFolderContent, findLibrary, findLibraryOfRootNodeIfExist, findLibraryRootContent, findParentIfExists, modeNodesToFolder, moveNodesToLibrary, renameFolder, simulateDeletion |
| Constructor Detail |
|---|
public TestCaseLibraryNavigationServiceImpl()
| Method Detail |
|---|
protected NodeDeletionHandler<TestCaseLibraryNode,TestCaseFolder> getDeletionHandler()
getDeletionHandler in class AbstractLibraryNavigationService<TestCaseLibrary,TestCaseFolder,TestCaseLibraryNode>protected LibraryDao<TestCaseLibrary,TestCaseLibraryNode> getLibraryDao()
getLibraryDao in class AbstractLibraryNavigationService<TestCaseLibrary,TestCaseFolder,TestCaseLibraryNode>protected FolderDao<TestCaseFolder,TestCaseLibraryNode> getFolderDao()
getFolderDao in class AbstractLibraryNavigationService<TestCaseLibrary,TestCaseFolder,TestCaseLibraryNode>protected final LibraryNodeDao<TestCaseLibraryNode> getLibraryNodeDao()
getLibraryNodeDao in class AbstractLibraryNavigationService<TestCaseLibrary,TestCaseFolder,TestCaseLibraryNode>@PreAuthorize(value="hasPermission(#testCaseId, \'org.squashtest.csp.tm.domain.testcase.TestCase\' , \'READ\') or hasRole(\'ROLE_ADMIN\')") public TestCase findTestCase(long testCaseId)
findTestCase in interface TestCaseLibraryNavigationServiceprotected PasteStrategy<TestCaseFolder,TestCaseLibraryNode> getPasteToFolderStrategy()
getPasteToFolderStrategy in class AbstractLibraryNavigationService<TestCaseLibrary,TestCaseFolder,TestCaseLibraryNode>protected PasteStrategy<TestCaseLibrary,TestCaseLibraryNode> getPasteToLibraryStrategy()
getPasteToLibraryStrategy in class AbstractLibraryNavigationService<TestCaseLibrary,TestCaseFolder,TestCaseLibraryNode>public String getPathAsString(long entityId)
TestCaseLibraryFinderService
getPathAsString in interface TestCaseLibraryFinderServiceentityId - the id of the node.
@PreAuthorize(value="hasPermission(#libraryId, \'org.squashtest.csp.tm.domain.testcase.TestCaseLibrary\' , \'CREATE\' )or hasRole(\'ROLE_ADMIN\')")
public void addTestCaseToLibrary(long libraryId,
TestCase testCase)
TestCaseLibraryNavigationService
addTestCaseToLibrary in interface TestCaseLibraryNavigationService
@PreAuthorize(value="hasPermission(#libraryId, \'org.squashtest.csp.tm.domain.testcase.TestCaseLibrary\' , \'CREATE\' )or hasRole(\'ROLE_ADMIN\')")
public void addTestCaseToLibrary(long libraryId,
TestCase testCase,
Map<Long,String> customFieldValues)
TestCaseLibraryNavigationServiceCustomField to the values of the corresponding CustomFieldValue.
Read that last sentence again.
addTestCaseToLibrary in interface TestCaseLibraryNavigationService
@PreAuthorize(value="hasPermission(#folderId, \'org.squashtest.csp.tm.domain.testcase.TestCaseFolder\' , \'CREATE\') or hasRole(\'ROLE_ADMIN\')")
public void addTestCaseToFolder(long folderId,
TestCase testCase)
TestCaseLibraryNavigationService
addTestCaseToFolder in interface TestCaseLibraryNavigationService
@PreAuthorize(value="hasPermission(#folderId, \'org.squashtest.csp.tm.domain.testcase.TestCaseFolder\' , \'CREATE\') or hasRole(\'ROLE_ADMIN\')")
public void addTestCaseToFolder(long folderId,
TestCase testCase,
Map<Long,String> customFieldValues)
TestCaseLibraryNavigationServiceCustomField to the values of the corresponding CustomFieldValue.
Read that last sentence again.
addTestCaseToFolder in interface TestCaseLibraryNavigationService
@PreAuthorize(value="hasPermission(#libraryId, \'org.squashtest.csp.tm.domain.testcase.TestCaseLibrary\', \'IMPORT\') or hasRole(\'ROLE_ADMIN\')")
public ImportSummary importExcelTestCase(InputStream archiveStream,
long libraryId,
String encoding)
TestCaseLibraryNavigationService
importExcelTestCase in interface TestCaseLibraryNavigationServicelibraryId - the identifier of the library we are importing test cases into.encoding - the encoding
@PostFilter(value="hasPermission(filterObject, \'LINK\') or hasRole(\'ROLE_ADMIN\')") public List<TestCaseLibrary> findLinkableTestCaseLibraries()
TestCaseLibraryFinderServiceTestCaseLibrarys which TestCases can be linked by a TestCase via
a CallTestStep
findLinkableTestCaseLibraries in interface TestCaseLibraryFinderServicepublic List<ExportTestCaseData> findTestCasesToExportFromProject(List<Long> ids)
TestCaseLibraryNavigationService
findTestCasesToExportFromProject in interface TestCaseLibraryNavigationServicepublic List<ExportTestCaseData> findTestCasesToExportFromNodes(List<Long> nodesIds)
TestCaseLibraryNavigationService
findTestCasesToExportFromNodes in interface TestCaseLibraryNavigationServicenodesIds - ids of TestCaseLibraryNode
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||