|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.squashtest.csp.tm.domain.library.FolderSupport<NODE,FOLDER>
NODE - public class FolderSupport<NODE extends LibraryNode,FOLDER extends Folder<NODE>>
This class is meant to be used as a delegate when one implements a Folder.
| Constructor Summary | |
|---|---|
FolderSupport(FOLDER folder)
|
|
| Method Summary | |
|---|---|
void |
addContent(NODE node)
Adds content to folder after checking the content can be added. |
FOLDER |
createCopy(FOLDER newFolder)
|
List<String> |
getContentNames()
|
boolean |
hasContent()
|
boolean |
isContentNameAvailable(String name)
Tells if the given name is already attributed to any of folder's content. |
void |
notifyAssociatedProjectWasSet(Project formerProject,
Project currentProject)
Notifies that the project was set to something. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FolderSupport(FOLDER folder)
| Method Detail |
|---|
public void addContent(NODE node)
folder after checking the content can be added.
node - the content to addpublic boolean isContentNameAvailable(String name)
folder's content.
name -
public void notifyAssociatedProjectWasSet(Project formerProject,
Project currentProject)
folder's content it is now associated
with a new project.
We dont want to expose a "setProject" method in folders, so the folder is reponsible for setting the project
association, then it can extend the operation by calling this method.
formerProject - former value of folder's associated projectcurrentProject - new value of folder's associated projectpublic boolean hasContent()
public FOLDER createCopy(FOLDER newFolder)
public List<String> getContentNames()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||