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

java.lang.Object
  extended by org.squashtest.csp.tm.domain.project.GenericLibrary<CampaignLibraryNode>
      extended by org.squashtest.csp.tm.domain.campaign.CampaignLibrary
All Implemented Interfaces:
org.squashtest.csp.core.domain.Identified, AttachmentHolder, Library<CampaignLibraryNode>, NodeContainer<CampaignLibraryNode>, ProjectResource<GenericProject>, SelfClassAware

@Entity
public class CampaignLibrary
extends GenericLibrary<CampaignLibraryNode>


Constructor Summary
CampaignLibrary()
           
 
Method Summary
 AttachmentList getAttachmentList()
          Should return the container for this object's attachments.
 String getClassName()
           
 String getClassSimpleName()
           
 Set<CampaignLibraryNode> getContent()
           
 Long getId()
           
 GenericProject getProject()
           
 Set<CampaignLibraryNode> getRootContent()
           
 boolean hasContent()
           
 void notifyAssociatedWithProject(GenericProject p)
          Notifies this resource now belongs to the given project.
 void removeContent(CampaignLibraryNode node)
           
 void setId(Long id)
           
 
Methods inherited from class org.squashtest.csp.tm.domain.project.GenericLibrary
addContent, getContentNames, getLibrary, isContentNameAvailable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CampaignLibrary

public CampaignLibrary()
Method Detail

setId

public void setId(Long id)

getId

public Long getId()

getRootContent

public Set<CampaignLibraryNode> getRootContent()

getContent

public Set<CampaignLibraryNode> getContent()

removeContent

public void removeContent(CampaignLibraryNode node)

getProject

public GenericProject getProject()
Returns:
The project which this resource belongs to. Should never be null.

notifyAssociatedWithProject

public void notifyAssociatedWithProject(GenericProject p)
Description copied from interface: ProjectResource
Notifies this resource now belongs to the given project. ProjectResource.getProject() should return this project afterwards.

Parameters:
p - should not be null

getClassSimpleName

public String getClassSimpleName()

getClassName

public String getClassName()

hasContent

public boolean hasContent()

getAttachmentList

public AttachmentList getAttachmentList()
Description copied from interface: AttachmentHolder
Should return the container for this object's attachments. Should never return null.

Returns:
the AttachmentList of this object.


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