fr.paris.lutece.plugins.helpdesk.business
Class Subject

java.lang.Object
  extended by fr.paris.lutece.plugins.helpdesk.business.AbstractSubject
      extended by fr.paris.lutece.plugins.helpdesk.business.Subject

public class Subject
extends AbstractSubject

This class represents a Subject object.


Constructor Summary
Subject()
          Creates a new Subject object.
 
Method Summary
 java.util.Collection<Subject> getChilds(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Get the child subjects
 Subject getParent(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Get the parent subject
 java.util.List getQuestions()
          Returns the questions associated with the subject
 void setQuestions(java.util.List questions)
          Assigns the specified set of questions to the subject
 
Methods inherited from class fr.paris.lutece.plugins.helpdesk.business.AbstractSubject
getId, getIdOrder, getIdParent, getText, setId, setIdOrder, setIdParent, setText
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Subject

public Subject()
Creates a new Subject object.

Method Detail

getQuestions

public java.util.List getQuestions()
Returns the questions associated with the subject

Returns:
A List of QuestionAnswer objects.

setQuestions

public void setQuestions(java.util.List questions)
Assigns the specified set of questions to the subject

Parameters:
questions - The new List

getParent

public Subject getParent(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the parent subject

Specified by:
getParent in class AbstractSubject
Parameters:
plugin - The Plugin
Returns:
The parent Subject

getChilds

public java.util.Collection<Subject> getChilds(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the child subjects

Specified by:
getChilds in class AbstractSubject
Parameters:
plugin - The Plugin
Returns:
A Collection of child Subject


Copyright © 2009 Mairie de Paris. All Rights Reserved.