|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
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>
Defines common methods for a library navigation service, mainly library access and folder manipulation. TODO Move all methods which modify a folder's content to another service
| Method Summary | |
|---|---|
void |
addFolderToFolder(long destinationId,
FOLDER newFolder)
|
void |
addFolderToLibrary(long destinationId,
FOLDER newFolder)
|
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 |
moveNodesToLibrary(long destinationId,
Long[] targetId)
|
void |
renameFolder(long folderId,
String newName)
Deprecated. |
List<SuppressionPreviewReport> |
simulateDeletion(List<Long> targetIds)
that method should investigate the consequences of the deletion request, and return a report about what will happen. |
| Method Detail |
|---|
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 addFolderToLibrary(long destinationId,
FOLDER newFolder)
void addFolderToFolder(long destinationId,
FOLDER newFolder)
FOLDER findFolder(long folderId)
List<NODE> findLibraryRootContent(long libraryId)
List<NODE> findFolderContent(long folderId)
folderId -
@Deprecated
void renameFolder(long folderId,
String newName)
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 -
LIBRARY findLibraryOfRootNodeIfExist(NODE node)
id -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||