public class CommentValueService extends Object implements ICommentValueService
Modifier and Type | Field and Description |
---|---|
static String |
BEAN_SERVICE
The name of the bean of this service
|
Constructor and Description |
---|
CommentValueService() |
Modifier and Type | Method and Description |
---|---|
void |
create(CommentValue commentValue,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Creation of an instance of comment value
|
CommentValue |
findByPrimaryKey(int nIdHistory,
int nIdTask,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the CommentValue Object
|
boolean |
isOwner(int nIdHistory,
fr.paris.lutece.portal.business.user.AdminUser adminUser)
Tests whether the specified user is the owner of the comment
|
void |
removeByHistory(int nIdHistory,
int nIdTask,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove comment value by history
|
void |
removeByTask(int nIdTask,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove comment value by task
|
public static final String BEAN_SERVICE
@Transactional(value="workflow.transactionManager") public void create(CommentValue commentValue, fr.paris.lutece.portal.service.plugin.Plugin plugin)
create
in interface ICommentValueService
commentValue
- The instance of comment value which contains the informations to storeplugin
- the plugin@Transactional(value="workflow.transactionManager") public void removeByHistory(int nIdHistory, int nIdTask, fr.paris.lutece.portal.service.plugin.Plugin plugin)
removeByHistory
in interface ICommentValueService
nIdHistory
- the history keynIdTask
- The task keyplugin
- the Plugin@Transactional(value="workflow.transactionManager") public void removeByTask(int nIdTask, fr.paris.lutece.portal.service.plugin.Plugin plugin)
removeByTask
in interface ICommentValueService
nIdTask
- The task keyplugin
- the Pluginpublic CommentValue findByPrimaryKey(int nIdHistory, int nIdTask, fr.paris.lutece.portal.service.plugin.Plugin plugin)
findByPrimaryKey
in interface ICommentValueService
nIdHistory
- the history idnIdTask
- the task idplugin
- the pluginpublic boolean isOwner(int nIdHistory, fr.paris.lutece.portal.business.user.AdminUser adminUser)
isOwner
in interface ICommentValueService
nIdHistory
- the history id used to retrieve the commentadminUser
- the usertrue
if the user is the owner, false
otherwiseCopyright © 2020 City of Paris. All rights reserved.