org.squashtest.tm.domain.requirement
Class RequirementLibrary

java.lang.Object
  extended by org.squashtest.tm.domain.project.GenericLibrary<RequirementLibraryNode>
      extended by org.squashtest.tm.domain.requirement.RequirementLibrary
All Implemented Interfaces:
AttachmentHolder, Identified, Library<RequirementLibraryNode>, NodeContainer<RequirementLibraryNode>, PluginReferencer, ProjectResource<GenericProject>, SelfClassAware

@Entity
public class RequirementLibrary
extends GenericLibrary<RequirementLibraryNode>


Constructor Summary
RequirementLibrary()
           
 
Method Summary
 void accept(NodeContainerVisitor visitor)
           
 void disablePlugin(String pluginId)
          tells this instance that the plugin referenced by pluginId is now disabled
 void enablePlugin(String pluginId)
          tells this instance that the plugin referenced by pluginId is now enabled
 String getClassName()
           
 String getClassSimpleName()
           
 Set<RequirementLibraryNode> getContent()
           
 Set<String> getEnabledPlugins()
           
 Long getId()
           
 Collection<RequirementLibraryNode> getOrderedContent()
          Will return the ordered (if order there is) content nodes.
 GenericProject getProject()
          A node container can be a library.
 Set<RequirementLibraryNode> getRootContent()
           
 boolean hasContent()
           
 boolean isPluginEnabled(String pluginId)
          tells whether the given plugin is enabled for this instance.
 void notifyAssociatedWithProject(GenericProject p)
           
 void removeContent(RequirementLibraryNode node)
           
 void setId(Long id)
           
 
Methods inherited from class org.squashtest.tm.domain.project.GenericLibrary
addContent, getAttachmentList, getContentNames, getLibrary, isContentNameAvailable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RequirementLibrary

public RequirementLibrary()
Method Detail

setId

public void setId(Long id)

getId

public Long getId()

getContent

public Set<RequirementLibraryNode> getContent()

getRootContent

public Set<RequirementLibraryNode> getRootContent()

getProject

public GenericProject getProject()
Description copied from interface: NodeContainer
A node container can be a library. That can be bound to a project template.

Returns:
The project which this resource belongs to. Should never be null.

notifyAssociatedWithProject

public void notifyAssociatedWithProject(GenericProject p)

removeContent

public void removeContent(RequirementLibraryNode node)

getEnabledPlugins

public Set<String> getEnabledPlugins()
Returns:
the set of plugin ids that are enabled for this instance.

enablePlugin

public void enablePlugin(String pluginId)
Description copied from interface: PluginReferencer
tells this instance that the plugin referenced by pluginId is now enabled


disablePlugin

public void disablePlugin(String pluginId)
Description copied from interface: PluginReferencer
tells this instance that the plugin referenced by pluginId is now disabled


isPluginEnabled

public boolean isPluginEnabled(String pluginId)
Description copied from interface: PluginReferencer
tells whether the given plugin is enabled for this instance.

Returns:

getClassSimpleName

public String getClassSimpleName()

getClassName

public String getClassName()

hasContent

public boolean hasContent()

accept

public void accept(NodeContainerVisitor visitor)

getOrderedContent

public Collection<RequirementLibraryNode> getOrderedContent()
Description copied from interface: NodeContainer
Will return the ordered (if order there is) content nodes.

Returns:


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