fr.paris.lutece.plugins.wiki.business
Class TopicHome

java.lang.Object
  extended by fr.paris.lutece.plugins.wiki.business.TopicHome

public final class TopicHome
extends java.lang.Object

This class provides instances management methods (create, find, ...) for Topic objects


Method Summary
static Topic create(Topic topic, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Create an instance of the topic class
static Topic findByPrimaryKey(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Returns an instance of a topic whose identifier is specified in parameter
static Topic findByPrimaryKey(java.lang.String strTopicName, fr.paris.lutece.portal.service.plugin.Plugin plugin)
           
static java.util.Collection<Topic> getTopicsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the data of all the topic objects and returns them in form of a collection
static void modifyContentOnly(java.lang.String strTopicName, java.lang.String strContent, fr.paris.lutece.portal.service.plugin.Plugin plugin)
           
static void remove(int nTopicId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Remove the topic whose identifier is specified in parameter
static Topic update(Topic topic, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Update of the topic which is specified in parameter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

create

public static Topic create(Topic topic,
                           fr.paris.lutece.portal.service.plugin.Plugin plugin)
Create an instance of the topic class

Parameters:
topic - The instance of the Topic which contains the informations to store
plugin - the Plugin
Returns:
The instance of topic which has been created with its primary key.

update

public static Topic update(Topic topic,
                           fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update of the topic which is specified in parameter

Parameters:
topic - The instance of the Topic which contains the data to store
plugin - the Plugin
Returns:
The instance of the topic which has been updated

remove

public static void remove(int nTopicId,
                          fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove the topic whose identifier is specified in parameter

Parameters:
nTopicId - The topic Id
plugin - the Plugin

findByPrimaryKey

public static Topic findByPrimaryKey(int nKey,
                                     fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns an instance of a topic whose identifier is specified in parameter

Parameters:
nKey - The topic primary key
plugin - the Plugin
Returns:
an instance of Topic

findByPrimaryKey

public static Topic findByPrimaryKey(java.lang.String strTopicName,
                                     fr.paris.lutece.portal.service.plugin.Plugin plugin)

modifyContentOnly

public static void modifyContentOnly(java.lang.String strTopicName,
                                     java.lang.String strContent,
                                     fr.paris.lutece.portal.service.plugin.Plugin plugin)

getTopicsList

public static java.util.Collection<Topic> getTopicsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the topic objects and returns them in form of a collection

Parameters:
plugin - the Plugin
Returns:
the collection which contains the data of all the topic objects


Copyright © 2011 Mairie de Paris. All Rights Reserved.