public interface LibraryNavigationService<LIBRARY extends org.squashtest.tm.domain.library.Library<? extends NODE>,FOLDER extends org.squashtest.tm.domain.library.Folder<? extends NODE>,NODE extends org.squashtest.tm.domain.library.LibraryNode>
| Modifier and Type | Method and Description |
|---|---|
void |
addFolderToFolder(long destinationId,
FOLDER newFolder)
Id annotation is used by PreventConcurrent, BatchPreventConcurrent and PreventConcurrents in sub classes |
void |
addFolderToLibrary(long destinationId,
FOLDER newFolder)
Id annotation is used by PreventConcurrent, BatchPreventConcurrent and PreventConcurrents in sub classes |
List<NODE> |
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<NODE> |
copyNodesToLibrary(long destinationId,
Long[] targetId)
same, when the destination is a Library.
|
OperationReport |
deleteNodes(List<Long> targetIds)
that method should delete the nodes.
|
LIBRARY |
findCreatableLibrary(long libraryId) |
FOLDER |
findFolder(long folderId) |
List<NODE> |
findFolderContent(long folderId)
Returns the content of the folder designated by its id
|
LIBRARY |
findLibrary(long libraryId) |
LIBRARY |
findLibraryOfRootNodeIfExist(NODE node)
That method should find the library of the root node
|
List<NODE> |
findLibraryRootContent(long libraryId) |
FOLDER |
findParentIfExists(org.squashtest.tm.domain.library.LibraryNode node)
That method should find the parentFolder of the library Node if it has one
|
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) |
List<SuppressionPreviewReport> |
simulateDeletion(List<Long> targetIds)
that method should investigate the consequences of the deletion request, and return a report about what will
happen.
|
List<NODE> copyNodesToFolder(long destinationId, Long[] sourceNodesIds)
destinationId - the id of the folder where you need to copy to.sourceNodesIds - the list of the librarynodes we want copies of.List<NODE> copyNodesToLibrary(long destinationId, Long[] targetId)
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)
void moveNodesToLibrary(long destinationId,
Long[] targetId)
void moveNodesToFolder(long destinationId,
Long[] targetId,
int position)
void moveNodesToLibrary(long destinationId,
Long[] targetId,
int position)
void addFolderToLibrary(long destinationId,
FOLDER newFolder)
Id annotation is used by PreventConcurrent, BatchPreventConcurrent and PreventConcurrents in sub classesdestinationId - newFolder - void addFolderToFolder(long destinationId,
FOLDER newFolder)
Id annotation is used by PreventConcurrent, BatchPreventConcurrent and PreventConcurrents in sub classesdestinationId - newFolder - FOLDER findFolder(long folderId)
List<NODE> findFolderContent(long folderId)
folderId - LIBRARY findLibrary(long libraryId)
LIBRARY findCreatableLibrary(long libraryId)
List<SuppressionPreviewReport> simulateDeletion(List<Long> targetIds)
targetIds - OperationReport deleteNodes(List<Long> targetIds)
targetIds - FOLDER findParentIfExists(org.squashtest.tm.domain.library.LibraryNode node)
node - Copyright © 2010–2017 Henix, henix.fr. All rights reserved.