@Service @Transactional(readOnly=true) public class HibernatePathService extends Object implements PathService
TestCaseDaoImpl| Modifier and Type | Field and Description |
|---|---|
static String |
PATH_SEPARATOR
The PATH_SEPARATOR is not '/' because we couldn't distinguish with slashes guenuinely part of
a name.
|
| Constructor and Description |
|---|
HibernatePathService() |
| Modifier and Type | Method and Description |
|---|---|
String |
buildCampaignPath(long id)
same thing than
PathService.buildTestCasePath(long), but for campaign library nodes |
List<String> |
buildCampaignPaths(List<Long> ids)
same thing than
PathService.buildTestCasesPaths(List), but for requirement library nodes |
String |
buildRequirementPath(long id)
same thing than
PathService.buildTestCasePath(long), but for requirement library nodes |
List<String> |
buildRequirementsPaths(List<Long> ids)
same thing than
PathService.buildTestCasesPaths(List), but for requirement library nodes |
String |
buildTestCasePath(long id)
Given an id of library NODE, return the path of this node.
|
List<String> |
buildTestCasesPaths(List<Long> ids)
Given a list of ids of library NODE, return the path of those nodes.
|
static String |
escapePath(String fetchedPath) |
public static final String PATH_SEPARATOR
public String buildTestCasePath(long id)
PathServiceGiven an id of library NODE, return the path of this node. The path starts with /<projectname>. The path is slash-separated '/'. If one of the elements in the path uses a '/', it will be escaped as '\/'.
buildTestCasePath in interface PathServicePathService.buildTestCasePath(long)public List<String> buildTestCasesPaths(List<Long> ids)
PathServiceGiven a list of ids of library NODE, return the path of those nodes. The path starts with /<projectname>. The path is slash-separated '/'. If one of the elements in the path uses a '/', it will be escaped as '\/'.
The order of the result is consistent with the order of the input. If an element could not be found (an invalid id for instance), the corresponding path in the result is NULL.
buildTestCasesPaths in interface PathServicePathService.buildTestCasesPaths(java.util.List)public String buildRequirementPath(long id)
PathServicePathService.buildTestCasePath(long), but for requirement library nodesbuildRequirementPath in interface PathServicepublic List<String> buildRequirementsPaths(List<Long> ids)
PathServicePathService.buildTestCasesPaths(List), but for requirement library nodesbuildRequirementsPaths in interface PathServicepublic String buildCampaignPath(long id)
PathServicePathService.buildTestCasePath(long), but for campaign library nodesbuildCampaignPath in interface PathServicepublic List<String> buildCampaignPaths(List<Long> ids)
PathServicePathService.buildTestCasesPaths(List), but for requirement library nodesbuildCampaignPaths in interface PathServiceCopyright © 2010–2017 Henix, henix.fr. All rights reserved.