java.lang.Object
fr.paris.lutece.plugins.workflow.modules.comment.service.CommentValueService
All Implemented Interfaces:
ICommentValueService

@ApplicationScoped @Named("workflow.commentValueService") public class CommentValueService extends Object implements ICommentValueService
CommentValueService
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    The name of the bean of this service
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    create(CommentValue commentValue, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Creation of an instance of comment value
    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

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • CommentValueService

      public CommentValueService()
  • Method Details

    • create

      public void create(CommentValue commentValue, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Creation of an instance of comment value
      Specified by:
      create in interface ICommentValueService
      Parameters:
      commentValue - The instance of comment value which contains the informations to store
      plugin - the plugin
    • removeByHistory

      public void removeByHistory(int nIdHistory, int nIdTask, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Remove comment value by history
      Specified by:
      removeByHistory in interface ICommentValueService
      Parameters:
      nIdHistory - the history key
      nIdTask - The task key
      plugin - the Plugin
    • removeByTask

      public void removeByTask(int nIdTask, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Remove comment value by task
      Specified by:
      removeByTask in interface ICommentValueService
      Parameters:
      nIdTask - The task key
      plugin - the Plugin
    • findByPrimaryKey

      public CommentValue findByPrimaryKey(int nIdHistory, int nIdTask, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the CommentValue Object
      Specified by:
      findByPrimaryKey in interface ICommentValueService
      Parameters:
      nIdHistory - the history id
      nIdTask - the task id
      plugin - 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:
      isOwner in interface ICommentValueService
      Parameters:
      nIdHistory - the history id used to retrieve the comment
      adminUser - the user
      Returns:
      true if the user is the owner, false otherwise