Class CommentValueService
- java.lang.Object
-
- fr.paris.lutece.plugins.workflow.modules.comment.service.CommentValueService
-
- All Implemented Interfaces:
ICommentValueService
public class CommentValueService extends java.lang.Object implements ICommentValueService
CommentValueService
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringBEAN_SERVICEThe name of the bean of this service
-
Constructor Summary
Constructors Constructor Description CommentValueService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcreate(CommentValue commentValue, fr.paris.lutece.portal.service.plugin.Plugin plugin)Creation of an instance of comment valueCommentValuefindByPrimaryKey(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
-
-
-
Field Detail
-
BEAN_SERVICE
public static final java.lang.String BEAN_SERVICE
The name of the bean of this service- See Also:
- Constant Field Values
-
-
Method Detail
-
create
@Transactional("workflow.transactionManager") public void create(CommentValue commentValue, fr.paris.lutece.portal.service.plugin.Plugin plugin)Creation of an instance of comment value- Specified by:
createin interfaceICommentValueService- Parameters:
commentValue- The instance of comment value which contains the informations to storeplugin- the plugin
-
removeByHistory
@Transactional("workflow.transactionManager") public void removeByHistory(int nIdHistory, int nIdTask, fr.paris.lutece.portal.service.plugin.Plugin plugin)Remove comment value by history- Specified by:
removeByHistoryin interfaceICommentValueService- Parameters:
nIdHistory- the history keynIdTask- The task keyplugin- the Plugin
-
removeByTask
@Transactional("workflow.transactionManager") public void removeByTask(int nIdTask, fr.paris.lutece.portal.service.plugin.Plugin plugin)Remove comment value by task- Specified by:
removeByTaskin interfaceICommentValueService- Parameters:
nIdTask- The task keyplugin- the Plugin
-
findByPrimaryKey
public CommentValue findByPrimaryKey(int nIdHistory, int nIdTask, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the CommentValue Object- Specified by:
findByPrimaryKeyin interfaceICommentValueService- Parameters:
nIdHistory- the history idnIdTask- the task idplugin- the plugin- Returns:
- the Config Object
-
isOwner
public boolean isOwner(int nIdHistory, fr.paris.lutece.portal.business.user.AdminUser adminUser)Tests whether the specified user is the owner of the comment- Specified by:
isOwnerin interfaceICommentValueService- Parameters:
nIdHistory- the history id used to retrieve the commentadminUser- the user- Returns:
trueif the user is the owner,falseotherwise
-
-