public final class TopicVersionHome extends Object
| Modifier and Type | Method and Description |
|---|---|
static TopicVersion |
create(TopicVersion topicVersion,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Create an instance of the topicVersion class
|
static Collection<TopicVersion> |
findAllVersions(int idTopic,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Find all versions
|
static TopicVersion |
findByPrimaryKey(int nKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns an instance of a topicVersion whose identifier is specified in parameter
|
static TopicVersion |
findLastVersion(int idTopic,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Find the last version
|
static Collection<TopicVersion> |
getTopicVersionsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the topicVersion objects and returns them in form of a collection
|
static void |
modifyContentOnly(int nTopicId,
String strUserName,
String strComment,
String strContent,
int nPreviousVersion,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Modify the topic's content
|
static void |
remove(int nTopicVersionId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove the topicVersion whose identifier is specified in parameter
|
static TopicVersion |
update(TopicVersion topicVersion,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update of the topicVersion which is specified in parameter
|
public static TopicVersion create(TopicVersion topicVersion, fr.paris.lutece.portal.service.plugin.Plugin plugin)
topicVersion - The instance of the TopicVersion which contains the informations to storeplugin - the Pluginpublic static TopicVersion update(TopicVersion topicVersion, fr.paris.lutece.portal.service.plugin.Plugin plugin)
topicVersion - The instance of the TopicVersion which contains the data to storeplugin - the Pluginpublic static void remove(int nTopicVersionId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nTopicVersionId - The topicVersion Idplugin - the Pluginpublic static TopicVersion findByPrimaryKey(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nKey - The topicVersion primary keyplugin - the Pluginpublic static Collection<TopicVersion> getTopicVersionsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
plugin - the Pluginpublic static void modifyContentOnly(int nTopicId,
String strUserName,
String strComment,
String strContent,
int nPreviousVersion,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nTopicId - The topic IDstrUserName - The usernamestrComment - The commentstrContent - The contentnPreviousVersion - The prvious versionplugin - The pluginpublic static TopicVersion findLastVersion(int idTopic, fr.paris.lutece.portal.service.plugin.Plugin plugin)
idTopic - The topic idplugin - The pluginpublic static Collection<TopicVersion> findAllVersions(int idTopic, fr.paris.lutece.portal.service.plugin.Plugin plugin)
idTopic - The topic idplugin - The pluginCopyright © 2015 City of Paris. All rights reserved.