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
 Collection<Subject> getChilds(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Get the child subjects
 Faq getFaq(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Gets the owning Faq
 Subject getParent(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Get the parent subject
 List getQuestions()
          Returns the questions associated with the subject
 void setQuestions(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 List getQuestions()
Returns the questions associated with the subject

Returns:
A List of QuestionAnswer objects.

setQuestions

public void setQuestions(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 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

getFaq

public Faq getFaq(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Gets the owning Faq

Parameters:
plugin - The plugin
Returns:
The owning Faq


Copyright © 2013 Mairie de Paris. All Rights Reserved.