org.squashtest.csp.tm.domain.project
Interface ProjectResource

All Known Subinterfaces:
Folder<NODE>, Library<NODE>, LibraryNode
All Known Implementing Classes:
Campaign, CampaignFolder, CampaignLibrary, CampaignLibraryNode, GenericLibrary, GenericLibraryNode, Requirement, RequirementFolder, RequirementLibrary, RequirementLibraryNode, TestCase, TestCaseFolder, TestCaseLibrary, TestCaseLibraryNode

public interface ProjectResource

Any resource associated to a project.

Author:
Gregory Fouquet

Method Summary
 Library<?> getLibrary()
           
 Project getProject()
           
 void notifyAssociatedWithProject(Project project)
          Notifies this resource now belongs to the given project.
 

Method Detail

getProject

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

getLibrary

Library<?> getLibrary()

notifyAssociatedWithProject

void notifyAssociatedWithProject(Project project)
Notifies this resource now belongs to the given project. getProject() should return this project afterwards.

Parameters:
project - should not be null


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