org.squashtest.csp.tm.domain.campaign
Class CampaignFolder

java.lang.Object
  extended by org.squashtest.csp.tm.domain.library.GenericLibraryNode
      extended by org.squashtest.csp.tm.domain.campaign.CampaignLibraryNode
          extended by org.squashtest.csp.tm.domain.campaign.CampaignFolder
All Implemented Interfaces:
org.squashtest.csp.core.domain.Identified, AttachmentHolder, Copiable, Folder<CampaignLibraryNode>, LibraryNode, NodeContainer<CampaignLibraryNode>, TreeNode, ProjectResource<Project>

@Entity
public class CampaignFolder
extends CampaignLibraryNode
implements Folder<CampaignLibraryNode>


Constructor Summary
CampaignFolder()
           
 
Method Summary
 void accept(CampaignLibraryNodeVisitor visitor)
           
 void accept(NodeVisitor visitor)
           
 void addContent(CampaignLibraryNode node)
          Adds new content to this container.
 CampaignFolder createCopy()
           
 Set<CampaignLibraryNode> getContent()
           
 List<String> getContentNames()
           
 boolean hasContent()
           
 boolean isContentNameAvailable(String name)
           
 void notifyAssociatedWithProject(Project project)
          Notifies this object it is now a resource of the given project.
 void removeContent(CampaignLibraryNode node)
           
 
Methods inherited from class org.squashtest.csp.tm.domain.campaign.CampaignLibraryNode
getId, getLibrary
 
Methods inherited from class org.squashtest.csp.tm.domain.library.GenericLibraryNode
equals, getAttachmentList, getDescription, getName, getProject, hashCode, setDescription, setName
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.squashtest.csp.tm.domain.library.LibraryNode
getDescription, getName, setDescription, setName
 
Methods inherited from interface org.squashtest.csp.tm.domain.project.ProjectResource
getLibrary, getProject
 
Methods inherited from interface org.squashtest.csp.tm.domain.attachment.AttachmentHolder
getAttachmentList
 
Methods inherited from interface org.squashtest.csp.core.domain.Identified
getId
 

Constructor Detail

CampaignFolder

public CampaignFolder()
Method Detail

getContent

public Set<CampaignLibraryNode> getContent()
Specified by:
getContent in interface NodeContainer<CampaignLibraryNode>

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 NodeContainer<CampaignLibraryNode>
Throws:
org.apache.commons.lang.NullArgumentException

addContent

public void addContent(CampaignLibraryNode node)
Description copied from interface: NodeContainer
Adds new content to this container. 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>

createCopy

public CampaignFolder createCopy()
Specified by:
createCopy in interface Copiable

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<Project>
Overrides:
notifyAssociatedWithProject in class GenericLibraryNode
Parameters:
project - should not be null

hasContent

public boolean hasContent()
Specified by:
hasContent in interface NodeContainer<CampaignLibraryNode>

accept

public void accept(NodeVisitor visitor)
Specified by:
accept in interface TreeNode

getContentNames

public List<String> getContentNames()
Specified by:
getContentNames in interface NodeContainer<CampaignLibraryNode>


Copyright © 2010-2012 Henix, henix.fr. All Rights Reserved.