|
||||||||||
| 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>
NODE - public class FolderSupport<NODE extends LibraryNode>
This class is meant to be used as a delegate when one implements a Folder.
| Constructor Summary | |
|---|---|
FolderSupport(Folder<NODE> folder)
|
|
| Method Summary | |
|---|---|
void |
addContent(NODE node)
Adds content to folder after checking the content can be added. |
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<NODE> 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()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||