org.squashtest.csp.tm.domain.campaign
Class CampaignFolder
java.lang.Object
org.squashtest.csp.tm.domain.library.GenericLibraryNode
org.squashtest.csp.tm.domain.campaign.CampaignLibraryNode
org.squashtest.csp.tm.domain.campaign.CampaignFolder
- All Implemented Interfaces:
- org.squashtest.csp.core.domain.Identified, Folder<CampaignLibraryNode>, LibraryNode, NodeContainer<CampaignLibraryNode>, ProjectResource
@Entity
public class CampaignFolder
- extends CampaignLibraryNode
- implements Folder<CampaignLibraryNode>
| Methods inherited from interface org.squashtest.csp.core.domain.Identified |
getId |
CampaignFolder
public CampaignFolder()
getContent
public Set<CampaignLibraryNode> getContent()
- Description copied from interface:
Folder
- Returrns the content of this folder.
- Specified by:
getContent in interface Folder<CampaignLibraryNode>
- Returns:
accept
public void accept(CampaignLibraryNodeVisitor visitor)
- Specified by:
accept in class CampaignLibraryNode
removeContent
public void removeContent(CampaignLibraryNode node)
throws org.apache.commons.lang.NullArgumentException
- Specified by:
removeContent in interface Folder<CampaignLibraryNode>
- Throws:
org.apache.commons.lang.NullArgumentException
addContent
public void addContent(CampaignLibraryNode node)
- Description copied from interface:
NodeContainer
- Adds new content to this folder. Should refuse to add null content, should refuse to add content with duplicate
name.
- Specified by:
addContent in interface NodeContainer<CampaignLibraryNode>
isContentNameAvailable
public boolean isContentNameAvailable(String name)
- Specified by:
isContentNameAvailable in interface NodeContainer<CampaignLibraryNode>
createPastableCopy
public CampaignFolder createPastableCopy()
- Specified by:
createPastableCopy in interface LibraryNode- Specified by:
createPastableCopy in class CampaignLibraryNode
notifyAssociatedWithProject
public void notifyAssociatedWithProject(Project project)
- Description copied from class:
GenericLibraryNode
- Notifies this object it is now a resource of the given project.
- Specified by:
notifyAssociatedWithProject in interface ProjectResource- Overrides:
notifyAssociatedWithProject in class GenericLibraryNode
- Parameters:
project - should not ne null
hasContent
public boolean hasContent()
- Specified by:
hasContent in interface Folder<CampaignLibraryNode>
Copyright © 2010-2012 Squashtest TM, Squashtest.org. All Rights Reserved.