Class BlogJspBean

java.lang.Object
fr.paris.lutece.portal.web.admin.AdminFeaturesPageJspBean
fr.paris.lutece.portal.web.admin.PluginAdminPageJspBean
fr.paris.lutece.portal.util.mvc.admin.MVCAdminJspBean
fr.paris.lutece.plugins.blog.web.ManageBlogJspBean
fr.paris.lutece.plugins.blog.web.BlogJspBean
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
BlogPublicationJspBean

@SessionScoped @Named @Controller(controllerJsp="ManageBlogs.jsp", controllerPath="jsp/admin/plugins/blog/", right="BLOG_MANAGEMENT") public class BlogJspBean extends ManageBlogJspBean
This class provides the user interface to manage Blog features ( manage, create, modify, remove )
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     

    Fields inherited from class fr.paris.lutece.plugins.blog.web.ManageBlogJspBean

    RIGHT_MANAGEHTMLDOCS
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    addContent(jakarta.servlet.http.HttpServletRequest request)
    Added docContent to the htmlDoc content list
    doAddTag(jakarta.servlet.http.HttpServletRequest request)
    Return Json if the tag is added
    doArchiveMultipleBlog(jakarta.servlet.http.HttpServletRequest request)
    Handles the manual archiving of multiple blog posts
    doCreateBlog(jakarta.servlet.http.HttpServletRequest request)
    Process the data capture form of a new blog
    doDuplicateBlog(jakarta.servlet.http.HttpServletRequest request)
     
    doExecuteSelectedAction(jakarta.servlet.http.HttpServletRequest request)
    Process a specific action on a selection of multiple blog post elements
    doModifyBlog(jakarta.servlet.http.HttpServletRequest request)
    Process the change form of a blog
    doRemoveBlog(jakarta.servlet.http.HttpServletRequest request)
    Handles the removal form of a blog
    doRemoveHistoryBlog(jakarta.servlet.http.HttpServletRequest request)
    Handles the removal of a blog's version
    doRemoveMultipleBlog(jakarta.servlet.http.HttpServletRequest request)
    Handles the manual delete of multiple blog posts
    doRemoveTag(jakarta.servlet.http.HttpServletRequest request)
    Return Json if the tag is removed
    doUpdatePriorityContent(jakarta.servlet.http.HttpServletRequest request)
    Return Json if the the content is updated
    doUpdatePriorityTag(jakarta.servlet.http.HttpServletRequest request)
    Return Json if the tag is updated
    getConfirmArchiveBlogs(jakarta.servlet.http.HttpServletRequest request)
    Display the confirmation message before one or multiple selected blog posts are removed
    getConfirmRemoveBlog(jakarta.servlet.http.HttpServletRequest request)
    Manages the removal form of a blog whose identifier is in the http request
    getconfirmRemoveHistoryBlog(jakarta.servlet.http.HttpServletRequest request)
    Manages the removal of a blog's version from its history
    getConfirmRemoveMultipleBlogs(jakarta.servlet.http.HttpServletRequest request)
    Display the confirmation message before one or multiple selected blog posts are deleted
    getConfirmUnarchiveBlogs(jakarta.servlet.http.HttpServletRequest request)
    Display the confirmation message before one or multiple selected blog posts are archived
    getCreateBlog(jakarta.servlet.http.HttpServletRequest request)
    Returns the form to create a blog
    getDiffBlog(jakarta.servlet.http.HttpServletRequest request)
    Returns the diff of two blog versions
    getHistoryBlog(jakarta.servlet.http.HttpServletRequest request)
    Return View history page
    getManageBlogs(jakarta.servlet.http.HttpServletRequest request)
    Build the Manage View
    getModifyBlog(jakarta.servlet.http.HttpServletRequest request)
    Returns the form to update info about a blog
    getPreviewBlog(jakarta.servlet.http.HttpServletRequest request)
    Returns the preview of an blog
    Gets the current
    removeContent(jakarta.servlet.http.HttpServletRequest request)
    delete docContent in the htmlDoc content list
    setContent(fr.paris.lutece.portal.web.upload.MultipartHttpServletRequest mRequest, Locale locale)
    Set content of the blog
    static void
    Unlock Blogs By Session Id
    static void
    unLockedBlogByTime(long nTime)
    Unlock the blog if the lock clearance time has passed
    updateContentType(jakarta.servlet.http.HttpServletRequest request)
     

    Methods inherited from class fr.paris.lutece.portal.util.mvc.admin.MVCAdminJspBean

    processController

    Methods inherited from class fr.paris.lutece.portal.web.admin.PluginAdminPageJspBean

    getPlugin, init

    Methods inherited from class fr.paris.lutece.portal.web.admin.AdminFeaturesPageJspBean

    getAdminPage, getFeatureIcon, getHomeUrl, getLocale, getPageTitle, getSecurityTokenService, getUser, setFeatureGroup, setFeatureIcon, setPageTitleProperty, validate, validate, validate

    Methods inherited from class java.lang.Object

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

  • Constructor Details

    • BlogJspBean

      public BlogJspBean()
  • Method Details

    • getManageBlogs

      @View(value="manageBlogs", defaultView=true) public String getManageBlogs(jakarta.servlet.http.HttpServletRequest request)
      Build the Manage View
      Parameters:
      request - The HTTP request
      Returns:
      The page
    • getHistoryBlog

      @View("historyBlog") public String getHistoryBlog(jakarta.servlet.http.HttpServletRequest request)
      Return View history page
      Parameters:
      request - The request
      Returns:
      the hostory page
    • getconfirmRemoveHistoryBlog

      @Action("confirmRemoveHistoryBlog") public String getconfirmRemoveHistoryBlog(jakarta.servlet.http.HttpServletRequest request) throws fr.paris.lutece.portal.service.admin.AccessDeniedException
      Manages the removal of a blog's version from its history
      Parameters:
      request - The Http request
      Returns:
      the html code for the removal's confirmation page
      Throws:
      fr.paris.lutece.portal.service.admin.AccessDeniedException
    • doRemoveHistoryBlog

      @Action("removeHistoryBlog") public String doRemoveHistoryBlog(jakarta.servlet.http.HttpServletRequest request)
      Handles the removal of a blog's version
      Parameters:
      request - The Http request
      Returns:
      the jsp URL to display the page to manage the blog's versions
    • getCreateBlog

      @View("createBlog") public String getCreateBlog(jakarta.servlet.http.HttpServletRequest request) throws fr.paris.lutece.portal.service.admin.AccessDeniedException
      Returns the form to create a blog
      Parameters:
      request - The Http request
      Returns:
      the html code of the blog form
      Throws:
      fr.paris.lutece.portal.service.admin.AccessDeniedException
    • doCreateBlog

      @Action("createBlog") public String doCreateBlog(jakarta.servlet.http.HttpServletRequest request)
      Process the data capture form of a new blog
      Parameters:
      request - The Http Request
      Returns:
      The Jsp URL of the process result
    • doAddTag

      @Action("addTag") public String doAddTag(jakarta.servlet.http.HttpServletRequest request)
      Return Json if the tag is added
      Parameters:
      request - The request
      Returns:
      Json The Json success or echec
    • doRemoveTag

      @Action("removeTag") public String doRemoveTag(jakarta.servlet.http.HttpServletRequest request)
      Return Json if the tag is removed
      Parameters:
      request -
      Returns:
      Json The Json success or echec
    • doUpdatePriorityTag

      @Action("updatePriorityTag") public String doUpdatePriorityTag(jakarta.servlet.http.HttpServletRequest request)
      Return Json if the tag is updated
      Parameters:
      request -
      Returns:
      Json The Json success or echec
    • getConfirmRemoveBlog

      @Action("confirmRemoveBlog") public String getConfirmRemoveBlog(jakarta.servlet.http.HttpServletRequest request) throws fr.paris.lutece.portal.service.admin.AccessDeniedException
      Manages the removal form of a blog whose identifier is in the http request
      Parameters:
      request - The Http request
      Returns:
      the html code to confirm
      Throws:
      fr.paris.lutece.portal.service.admin.AccessDeniedException
    • doRemoveBlog

      @Action("removeBlog") public String doRemoveBlog(jakarta.servlet.http.HttpServletRequest request)
      Handles the removal form of a blog
      Parameters:
      request - The Http request
      Returns:
      the jsp URL to display the form to manage blog
    • doDuplicateBlog

      @Action("duplicateBlog") public String doDuplicateBlog(jakarta.servlet.http.HttpServletRequest request) throws fr.paris.lutece.portal.service.admin.AccessDeniedException
      Throws:
      fr.paris.lutece.portal.service.admin.AccessDeniedException
    • getModifyBlog

      @View("modifyBlog") public String getModifyBlog(jakarta.servlet.http.HttpServletRequest request) throws fr.paris.lutece.portal.service.admin.AccessDeniedException
      Returns the form to update info about a blog
      Parameters:
      request - The Http request
      Returns:
      The HTML form to update info
      Throws:
      fr.paris.lutece.portal.service.admin.AccessDeniedException
    • doModifyBlog

      @Action("modifyBlog") public String doModifyBlog(jakarta.servlet.http.HttpServletRequest request)
      Process the change form of a blog
      Parameters:
      request - The Http request
      Returns:
      The Jsp URL of the process result
    • getPreviewBlog

      @View("previewBlog") public String getPreviewBlog(jakarta.servlet.http.HttpServletRequest request)
      Returns the preview of an blog
      Parameters:
      request - The Http request
      Returns:
      The HTML form to update info
    • getDiffBlog

      @View("diffBlog") public String getDiffBlog(jakarta.servlet.http.HttpServletRequest request)
      Returns the diff of two blog versions
      Parameters:
      request - The Http request
      Returns:
      The HTML form to update info
    • addContent

      @Action("addContent") public String addContent(jakarta.servlet.http.HttpServletRequest request)
      Added docContent to the htmlDoc content list
      Parameters:
      request - The Http request
      Returns:
    • removeContent

      @Action("deleteContent") public String removeContent(jakarta.servlet.http.HttpServletRequest request)
      delete docContent in the htmlDoc content list
      Parameters:
      request - The Http request
      Returns:
    • doUpdatePriorityContent

      @Action("updatePriorityContent") public String doUpdatePriorityContent(jakarta.servlet.http.HttpServletRequest request)
      Return Json if the the content is updated
      Parameters:
      request -
      Returns:
      Json The Json success or echec
    • updateContentType

      @Action("updateContentType") public String updateContentType(jakarta.servlet.http.HttpServletRequest request)
      Parameters:
      request -
      Returns:
    • setContent

      public DocContent setContent(fr.paris.lutece.portal.web.upload.MultipartHttpServletRequest mRequest, Locale locale)
      Set content of the blog
      Parameters:
      mRequest -
      locale -
      Returns:
      the content of the blog
    • getConfirmRemoveMultipleBlogs

      @Action("confirmRemoveMultipleBlogs") public String getConfirmRemoveMultipleBlogs(jakarta.servlet.http.HttpServletRequest request) throws fr.paris.lutece.portal.service.admin.AccessDeniedException
      Display the confirmation message before one or multiple selected blog posts are deleted
      Parameters:
      request - The Http request
      Returns:
      the html code to confirm the action
      Throws:
      fr.paris.lutece.portal.service.admin.AccessDeniedException
    • doRemoveMultipleBlog

      @Action("removeMultipleBlogs") public String doRemoveMultipleBlog(jakarta.servlet.http.HttpServletRequest request) throws fr.paris.lutece.portal.service.admin.AccessDeniedException
      Handles the manual delete of multiple blog posts
      Parameters:
      request - The Http request
      Returns:
      the jsp URL to display the main blog posts' management view
      Throws:
      fr.paris.lutece.portal.service.admin.AccessDeniedException
    • getConfirmArchiveBlogs

      @Action("confirmArchiveBlogs") public String getConfirmArchiveBlogs(jakarta.servlet.http.HttpServletRequest request) throws fr.paris.lutece.portal.service.admin.AccessDeniedException
      Display the confirmation message before one or multiple selected blog posts are removed
      Parameters:
      request - The Http request
      Returns:
      the html code to confirm the action
      Throws:
      fr.paris.lutece.portal.service.admin.AccessDeniedException
    • getConfirmUnarchiveBlogs

      @Action("confirmUnarchiveBlogs") public String getConfirmUnarchiveBlogs(jakarta.servlet.http.HttpServletRequest request) throws fr.paris.lutece.portal.service.admin.AccessDeniedException
      Display the confirmation message before one or multiple selected blog posts are archived
      Parameters:
      request - The Http request
      Returns:
      the html code to confirm the action
      Throws:
      fr.paris.lutece.portal.service.admin.AccessDeniedException
    • doArchiveMultipleBlog

      @Action("updateArchiveMultipleBlogs") public String doArchiveMultipleBlog(jakarta.servlet.http.HttpServletRequest request) throws fr.paris.lutece.portal.service.admin.AccessDeniedException
      Handles the manual archiving of multiple blog posts
      Parameters:
      request - The Http request
      Returns:
      the jsp URL to display the main blog posts' management view
      Throws:
      fr.paris.lutece.portal.service.admin.AccessDeniedException
    • doExecuteSelectedAction

      @Action("form_checkbox_action") public String doExecuteSelectedAction(jakarta.servlet.http.HttpServletRequest request) throws fr.paris.lutece.portal.service.admin.AccessDeniedException
      Process a specific action on a selection of multiple blog post elements
      Parameters:
      request - The Http request
      Returns:
      the URL to redirect to once the action is executed
      Throws:
      fr.paris.lutece.portal.service.admin.AccessDeniedException
    • unLockedBlogByIdSession

      public static void unLockedBlogByIdSession(String strIdSession)
      Unlock Blogs By Session Id
      Parameters:
      strIdSession - The Id session
    • unLockedBlogByTime

      public static void unLockedBlogByTime(long nTime)
      Unlock the blog if the lock clearance time has passed
      Parameters:
      nTime - the clearance time
    • getSqlDate

      public Timestamp getSqlDate()
      Gets the current
      Returns:
      the current date in sql format