Interface ICommentListener

  • Type Parameters:
    A -

    public interface ICommentListener
    Interface of listeners of comments
    • Method Detail

      • createComment

        void createComment​(String strIdExtendableResource,
                           boolean bPublished)
        Notify the creation of a comment
        Parameters:
        strIdExtendableResource - The id of the extendable resource associated with the created comment
        bPublished - True if the created comment is published, false otherwise
      • createComment

        void createComment​(String strIdExtendableResource,
                           boolean bPublished,
                           javax.servlet.http.HttpServletRequest request)
        Notify the creation of a comment
        Parameters:
        strIdExtendableResource - The id of the extendable resource associated with the created comment
        bPublished - True if the created comment is published, false otherwise request HttpServletRequest the Http request
      • publishComment

        void publishComment​(String strIdExtendableResource,
                            boolean bPublished)
        Notify the publication or unpublication of a comment
        Parameters:
        strIdExtendableResource - The id of the extendable resource associated with the modified comment
        bPublished - True if the comment was published, false if it was unpublished
      • deleteComment

        void deleteComment​(String strIdExtendableResource,
                           List<Integer> listIdRemovedComment)
        Notify the removal of a comment
        Parameters:
        strIdExtendableResource - The id of the extendable resource associated with the removed comment
        listIdRemovedComment - The list of ids of removed comments
      • checkComment

        String checkComment​(String comment,
                            String uidUser)
        Notify the check comment
        Parameters:
        listErrors -
        Returns:
      • checkComment

        String checkComment​(String comment,
                            String uidUser,
                            String strResourceType,
                            String strResourceId)
        Notify the check comment
        Parameters:
        comment -
        uidUser -
        strResourceType -
        strResourceId -
        Returns:
      • canComment

        boolean canComment​(fr.paris.lutece.portal.service.security.LuteceUser user,
                           String strIdExtendableResource,
                           String strExtendableResourceType)
        Check if user can comment
        Parameters:
        user - The lutece user
        strIdExtendableResource - The id of the extendable resource
        strExtendableResourceType - The type of the resource
        Returns:
        true when the user has the rights, otherwise false