Interface ITopicDAO
-
- All Known Implementing Classes:
TopicDAO
public interface ITopicDAOITopicDAO Interface
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddelete(int nIdTopic, fr.paris.lutece.portal.service.plugin.Plugin plugin)Delete a record from the tableMapgetLastEditAttempt(int nIdTopic)Get the last edit attemptvoidinsert(Topic topic, fr.paris.lutece.portal.service.plugin.Plugin plugin)Insert a new record in the table.Topicload(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data from the tableTopicloadByName(String strTopicName, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load a topicCollection<Topic>selectTopicsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data of all the topic objects and returns them as a collectionvoidsetChildrenToEmptyParent(String strPageTitle)Set children to empty parentvoidstore(Topic topic, fr.paris.lutece.portal.service.plugin.Plugin plugin)Update the record in the tablevoidupdateLastEditAttempt(int nIdTopic, String strLuteceUserName)UPDATE wiki_last_edits
-
-
-
Method Detail
-
insert
void insert(Topic topic, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.- Parameters:
topic- instance of the Topic object to inssertplugin- the Plugin
-
store
void store(Topic topic, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the record in the table- Parameters:
topic- the reference of the Topicplugin- the Plugin
-
delete
void delete(int nIdTopic, fr.paris.lutece.portal.service.plugin.Plugin plugin)Delete a record from the table- Parameters:
nIdTopic- int identifier of the Topic to deleteplugin- the Plugin
-
load
Topic load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data from the table- Parameters:
nKey- The keyplugin- the Plugin- Returns:
- The instance of the topic
-
selectTopicsList
Collection<Topic> selectTopicsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the topic objects and returns them as a collection- Parameters:
plugin- the Plugin- Returns:
- The collection which contains the data of all the topic objects
-
loadByName
Topic loadByName(String strTopicName, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load a topic- Parameters:
strTopicName- The topic nameplugin- The plugin- Returns:
- The topic
-
updateLastEditAttempt
void updateLastEditAttempt(int nIdTopic, String strLuteceUserName)UPDATE wiki_last_edits- Parameters:
nIdTopic- The IdTopicstrLuteceUserName- The LuteceUserIdtimestamp- The DateEdition
-
getLastEditAttempt
Map getLastEditAttempt(int nIdTopic)
Get the last edit attempt- Parameters:
nIdTopic- The topic id- Returns:
- The last edit attempt
-
setChildrenToEmptyParent
void setChildrenToEmptyParent(String strPageTitle)
Set children to empty parent- Parameters:
nIdTopic- The topic id
-
-