Interface ICommentValueService
- All Known Implementing Classes:
CommentValueService
public interface ICommentValueService
ICommentValueService
-
Method Summary
Modifier and TypeMethodDescriptionvoidcreate(CommentValue commentValue, fr.paris.lutece.portal.service.plugin.Plugin plugin) Creation of an instance of comment valuefindByPrimaryKey(int nIdHistory, int nIdTask, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the CommentValue ObjectbooleanisOwner(int nIdHistory, fr.paris.lutece.portal.business.user.AdminUser adminUser) Tests whether the specified user is the owner of the commentvoidremoveByHistory(int nIdHistory, int nIdTask, fr.paris.lutece.portal.service.plugin.Plugin plugin) Remove comment value by historyvoidremoveByTask(int nIdTask, fr.paris.lutece.portal.service.plugin.Plugin plugin) Remove comment value by task
-
Method Details
-
create
Creation of an instance of comment value- Parameters:
commentValue- The instance of comment value which contains the informations to storeplugin- the plugin
-
removeByHistory
void removeByHistory(int nIdHistory, int nIdTask, fr.paris.lutece.portal.service.plugin.Plugin plugin) Remove comment value by history- Parameters:
nIdHistory- the history keynIdTask- The task keyplugin- the Plugin
-
removeByTask
void removeByTask(int nIdTask, fr.paris.lutece.portal.service.plugin.Plugin plugin) Remove comment value by task- Parameters:
nIdTask- The task keyplugin- the Plugin
-
findByPrimaryKey
CommentValue findByPrimaryKey(int nIdHistory, int nIdTask, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the CommentValue Object- Parameters:
nIdHistory- the history idnIdTask- the task idplugin- the plugin- Returns:
- the Config Object
-
isOwner
boolean isOwner(int nIdHistory, fr.paris.lutece.portal.business.user.AdminUser adminUser) Tests whether the specified user is the owner of the comment- Parameters:
nIdHistory- the history id used to retrieve the commentadminUser- the user- Returns:
trueif the user is the owner,falseotherwise
-