public interface RequirementLibraryNavigationService extends LibraryNavigationService<org.squashtest.tm.domain.requirement.RequirementLibrary,org.squashtest.tm.domain.requirement.RequirementFolder,org.squashtest.tm.domain.requirement.RequirementLibraryNode>, RequirementLibraryFinderService
| Modifier and Type | Field and Description |
|---|---|
static String |
DESTINATION_ID |
static String |
NODE_IDS |
static String |
REQUIREMENT_ID |
static String |
SOURCE_NODES_IDS |
static String |
TARGET_ID |
static String |
TARGET_IDS |
| Modifier and Type | Method and Description |
|---|---|
org.squashtest.tm.domain.requirement.Requirement |
addRequirementToRequirement(long requirementId,
org.squashtest.tm.domain.requirement.NewRequirementVersionDto newRequirement,
List<Long> milestoneIds)
Same than {@link #addRequirementToRequirementLibrary(long, NewRequirementVersionDto, List), except that the requirement will be added to the
given parent requirement.
|
org.squashtest.tm.domain.requirement.Requirement |
addRequirementToRequirement(long requirementId,
org.squashtest.tm.domain.requirement.Requirement newRequirement,
List<Long> milestoneIds)
Same than
addRequirementToRequirementLibrary(long, Requirement, List), except that the requirement will be added to the
given parent requirement. |
org.squashtest.tm.domain.requirement.Requirement |
addRequirementToRequirementFolder(long folderId,
org.squashtest.tm.domain.requirement.NewRequirementVersionDto newRequirement,
List<Long> milestoneIds)
Same than {@link #addRequirementToRequirementLibrary(long, NewRequirementVersionDto, List), except that the requirement will be added to the
given folder.
|
org.squashtest.tm.domain.requirement.Requirement |
addRequirementToRequirementFolder(long folderId,
org.squashtest.tm.domain.requirement.Requirement requirement,
List<Long> milestoneIds)
Deprecated.
Looks like this methid is useless
|
org.squashtest.tm.domain.requirement.Requirement |
addRequirementToRequirementLibrary(long libraryId,
org.squashtest.tm.domain.requirement.NewRequirementVersionDto newRequirement,
List<Long> milestoneIds)
Given a DTO that eventually generates a RequirementVersion, will create a Requirement using this version then add it to the given
library with and bind it to the given milestones.
|
org.squashtest.tm.domain.requirement.Requirement |
addRequirementToRequirementLibrary(long libraryId,
org.squashtest.tm.domain.requirement.Requirement requirement,
List<Long> milestoneIds)
Deprecated.
Looks like this method is useless
|
void |
changeCurrentVersionNumber(org.squashtest.tm.domain.requirement.Requirement requirement,
Integer noVersion)
Change the current version number.
|
List<org.squashtest.tm.domain.requirement.RequirementLibraryNode> |
copyNodesToFolder(long destinationId,
Long[] sourceNodesIds)
will create a deep copy of the given LibraryNodes, paste them in the destination folder, and return the copies.
|
List<org.squashtest.tm.domain.requirement.RequirementLibraryNode> |
copyNodesToLibrary(long destinationId,
Long[] targetId)
same, when the destination is a Library.
|
List<org.squashtest.tm.domain.requirement.Requirement> |
copyNodesToRequirement(long requirementId,
Long[] sourceNodesIds) |
OperationReport |
deleteNodes(List<Long> targetIds)
that method should delete the nodes.
|
File |
exportRequirementAsExcel(List<Long> libraryIds,
List<Long> nodeIds,
boolean keepRteFormat,
org.springframework.context.MessageSource messageSource)
Generate a xls file to export requirements
|
List<Long> |
findAllRequirementIdsInMilestone(org.squashtest.tm.domain.milestone.Milestone activeMilestone) |
List<org.squashtest.tm.domain.requirement.Requirement> |
findChildrenRequirements(long requirementId) |
List<String> |
findNamesInLibraryStartingWith(long libraryId,
String nameStart) |
List<String> |
findNamesInNodeStartingWith(long folderId,
String nameStart) |
org.squashtest.tm.domain.requirement.Requirement |
findRequirement(long reqId) |
org.squashtest.tm.domain.requirement.RequirementLibraryNode |
findRequirementLibraryNodeById(Long id) |
List<org.squashtest.tm.domain.requirement.ExportRequirementData> |
findRequirementsToExportFromLibrary(List<Long> libraryIds)
Will find all requirements found in the given projects and return their information as a list of
ExportRequirementData
|
List<org.squashtest.tm.domain.requirement.ExportRequirementData> |
findRequirementsToExportFromNodes(List<Long> nodesIds)
Will find all requirements of the given ids and contained in folders of the given ids, and return their
information as a list of ExportRequirementData
|
List<String> |
getParentNodesAsStringList(Long elementId) |
ImportLog |
importExcelRequirement(File xls) |
void |
initCUFvalues(org.squashtest.tm.domain.requirement.RequirementVersion reqVersion,
Map<Long,org.squashtest.tm.domain.customfield.RawValue> initialCustomFieldValues)
Initialize the CUF values for a
RequirementVersion |
Long |
mkdirs(String folderpath)
Create a hierarchy of requirement library node.
|
void |
moveNodesToFolder(long destinationId,
Long[] targetId) |
void |
moveNodesToFolder(long destinationId,
Long[] targetId,
int position) |
void |
moveNodesToLibrary(long destinationId,
Long[] targetId) |
void |
moveNodesToLibrary(long destinationId,
Long[] targetId,
int position) |
void |
moveNodesToRequirement(long requirementId,
Long[] nodeIds) |
void |
moveNodesToRequirement(long requirementId,
Long[] nodeIds,
int position) |
File |
searchExportRequirementAsExcel(List<Long> nodeIds,
boolean keepRteFormat,
org.springframework.context.MessageSource messageSource)
Generate a xls file to export requirements from research screen
|
ImportLog |
simulateImportExcelRequirement(File xls) |
addFolderToFolder, addFolderToLibrary, findCreatableLibrary, findFolder, findFolderContent, findLibrary, findLibraryOfRootNodeIfExist, findLibraryRootContent, findParentIfExists, simulateDeletionfindLinkableRequirementLibraries, findNodeIdByPath, findNodeIdByRemoteKey, findNodeIdsByPath, findNodeIdsByRemoteKeys, findRequirementIdsFromSelection, getPathAsString, getStatisticsForSelectionstatic final String REQUIREMENT_ID
static final String NODE_IDS
static final String SOURCE_NODES_IDS
static final String DESTINATION_ID
static final String TARGET_ID
static final String TARGET_IDS
@Deprecated org.squashtest.tm.domain.requirement.Requirement addRequirementToRequirementLibrary(long libraryId, @NotNull org.squashtest.tm.domain.requirement.Requirement requirement, List<Long> milestoneIds)
org.squashtest.tm.domain.requirement.Requirement addRequirementToRequirementLibrary(long libraryId,
@NotNull
org.squashtest.tm.domain.requirement.NewRequirementVersionDto newRequirement,
List<Long> milestoneIds)
@Deprecated org.squashtest.tm.domain.requirement.Requirement addRequirementToRequirementFolder(long folderId, @NotNull org.squashtest.tm.domain.requirement.Requirement requirement, List<Long> milestoneIds)
addRequirementToRequirementLibrary(long, Requirement, List), except that the requirement will be added to the
given folder.org.squashtest.tm.domain.requirement.Requirement addRequirementToRequirementFolder(long folderId,
@NotNull
org.squashtest.tm.domain.requirement.NewRequirementVersionDto newRequirement,
List<Long> milestoneIds)
folderId - requirement - milestoneIds - org.squashtest.tm.domain.requirement.Requirement addRequirementToRequirement(long requirementId,
@NotNull
org.squashtest.tm.domain.requirement.Requirement newRequirement,
List<Long> milestoneIds)
addRequirementToRequirementLibrary(long, Requirement, List), except that the requirement will be added to the
given parent requirement.org.squashtest.tm.domain.requirement.Requirement addRequirementToRequirement(long requirementId,
@NotNull
org.squashtest.tm.domain.requirement.NewRequirementVersionDto newRequirement,
List<Long> milestoneIds)
folderId - requirement - milestoneIds - List<org.squashtest.tm.domain.requirement.Requirement> copyNodesToRequirement(long requirementId, Long[] sourceNodesIds)
void moveNodesToRequirement(long requirementId,
Long[] nodeIds)
void moveNodesToRequirement(long requirementId,
Long[] nodeIds,
int position)
org.squashtest.tm.domain.requirement.Requirement findRequirement(long reqId)
List<org.squashtest.tm.domain.requirement.ExportRequirementData> findRequirementsToExportFromLibrary(@NotNull List<Long> libraryIds)
libraryIds - ids of ProjectList<org.squashtest.tm.domain.requirement.ExportRequirementData> findRequirementsToExportFromNodes(@NotNull List<Long> nodesIds)
nodesIds - ids of RequirementLibraryNodeList<org.squashtest.tm.domain.requirement.Requirement> findChildrenRequirements(long requirementId)
File exportRequirementAsExcel(List<Long> libraryIds, List<Long> nodeIds, boolean keepRteFormat, org.springframework.context.MessageSource messageSource)
libraryIds - List of libraryIds (ie project ids) selected for exportnodeIds - List of nodeIds (ie req id or folder id) selected for exportFile searchExportRequirementAsExcel(List<Long> nodeIds, boolean keepRteFormat, org.springframework.context.MessageSource messageSource)
nodeIds - List of nodeIds (ie req id or folder id) selected for exportLong mkdirs(String folderpath)
- If no node exist before, all created node will be
RequirementFolder
- If the last existing node on path is a
RequirementFolder, all created node will be RequirementFolder
- If the last existing node on path is a
Requirement, all created node will be Requirement
folderpath - the complete pathRequirementFolder or a Requirement. See above...void changeCurrentVersionNumber(org.squashtest.tm.domain.requirement.Requirement requirement,
Integer noVersion)
Requirement.getCurrentVersion() if needed.void initCUFvalues(org.squashtest.tm.domain.requirement.RequirementVersion reqVersion,
Map<Long,org.squashtest.tm.domain.customfield.RawValue> initialCustomFieldValues)
RequirementVersioninitialCustomFieldValues - map the id of the CUF to the value.
Beware, it's not the id of the CUFValue entry in db but the id of the CUF itselforg.squashtest.tm.domain.requirement.RequirementLibraryNode findRequirementLibraryNodeById(Long id)
List<String> findNamesInNodeStartingWith(long folderId, String nameStart)
List<String> findNamesInLibraryStartingWith(long libraryId, String nameStart)
List<Long> findAllRequirementIdsInMilestone(org.squashtest.tm.domain.milestone.Milestone activeMilestone)
List<org.squashtest.tm.domain.requirement.RequirementLibraryNode> copyNodesToFolder(long destinationId, Long[] sourceNodesIds)
LibraryNavigationServicecopyNodesToFolder in interface LibraryNavigationService<org.squashtest.tm.domain.requirement.RequirementLibrary,org.squashtest.tm.domain.requirement.RequirementFolder,org.squashtest.tm.domain.requirement.RequirementLibraryNode>destinationId - the id of the folder where you need to copy to.sourceNodesIds - the list of the librarynodes we want copies of.List<org.squashtest.tm.domain.requirement.RequirementLibraryNode> copyNodesToLibrary(long destinationId, Long[] targetId)
LibraryNavigationServicecopyNodesToLibrary in interface LibraryNavigationService<org.squashtest.tm.domain.requirement.RequirementLibrary,org.squashtest.tm.domain.requirement.RequirementFolder,org.squashtest.tm.domain.requirement.RequirementLibraryNode>destinationId - the id of the library where you need to copy to.targetId - the list of the librarynodes we want copies of.void moveNodesToFolder(long destinationId,
Long[] targetId)
moveNodesToFolder in interface LibraryNavigationService<org.squashtest.tm.domain.requirement.RequirementLibrary,org.squashtest.tm.domain.requirement.RequirementFolder,org.squashtest.tm.domain.requirement.RequirementLibraryNode>void moveNodesToFolder(long destinationId,
Long[] targetId,
int position)
moveNodesToFolder in interface LibraryNavigationService<org.squashtest.tm.domain.requirement.RequirementLibrary,org.squashtest.tm.domain.requirement.RequirementFolder,org.squashtest.tm.domain.requirement.RequirementLibraryNode>void moveNodesToLibrary(long destinationId,
Long[] targetId)
moveNodesToLibrary in interface LibraryNavigationService<org.squashtest.tm.domain.requirement.RequirementLibrary,org.squashtest.tm.domain.requirement.RequirementFolder,org.squashtest.tm.domain.requirement.RequirementLibraryNode>void moveNodesToLibrary(long destinationId,
Long[] targetId,
int position)
moveNodesToLibrary in interface LibraryNavigationService<org.squashtest.tm.domain.requirement.RequirementLibrary,org.squashtest.tm.domain.requirement.RequirementFolder,org.squashtest.tm.domain.requirement.RequirementLibraryNode>OperationReport deleteNodes(List<Long> targetIds)
LibraryNavigationServicedeleteNodes in interface LibraryNavigationService<org.squashtest.tm.domain.requirement.RequirementLibrary,org.squashtest.tm.domain.requirement.RequirementFolder,org.squashtest.tm.domain.requirement.RequirementLibraryNode>Copyright © 2010–2017 Henix, henix.fr. All rights reserved.