org.squashtest.tm.service.internal.library
@Service @Transactional(readOnly=true) public class HibernatePathService extends Object implements PathService
HibernateTestCaseDao| 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 |
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.
|
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)Copyright © 2010-2014 Henix, henix.fr. All Rights Reserved.