Class BlogJspBean

  • All Implemented Interfaces:
    java.io.Serializable
    Direct Known Subclasses:
    BlogPublicationJspBean

    @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:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      BlogJspBean()  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String addContent​(javax.servlet.http.HttpServletRequest request)
      Added docContent to the htmlDoc content list
      java.lang.String doAddTag​(javax.servlet.http.HttpServletRequest request)
      Return Json if the tag is added
      java.lang.String doArchiveMultipleBlog​(javax.servlet.http.HttpServletRequest request)
      Handles the manual archiving of multiple blog posts
      java.lang.String doCreateBlog​(javax.servlet.http.HttpServletRequest request)
      Process the data capture form of a new blog
      java.lang.String doDuplicateBlog​(javax.servlet.http.HttpServletRequest request)  
      java.lang.String doExecuteSelectedAction​(javax.servlet.http.HttpServletRequest request)
      Process a specific action on a selection of multiple blog post elements
      java.lang.String doModifyBlog​(javax.servlet.http.HttpServletRequest request)
      Process the change form of a blog
      java.lang.String doRemoveBlog​(javax.servlet.http.HttpServletRequest request)
      Handles the removal form of a blog
      java.lang.String doRemoveHistoryBlog​(javax.servlet.http.HttpServletRequest request)
      Handles the removal of a blog's version
      java.lang.String doRemoveMultipleBlog​(javax.servlet.http.HttpServletRequest request)
      Handles the manual delete of multiple blog posts
      java.lang.String doRemoveTag​(javax.servlet.http.HttpServletRequest request)
      Return Json if the tag is removed
      java.lang.String doUpdatePriorityContent​(javax.servlet.http.HttpServletRequest request)
      Return Json if the the content is updated
      java.lang.String doUpdatePriorityTag​(javax.servlet.http.HttpServletRequest request)
      Return Json if the tag is updated
      java.lang.String getConfirmArchiveBlogs​(javax.servlet.http.HttpServletRequest request)
      Display the confirmation message before one or multiple selected blog posts are removed
      java.lang.String getConfirmRemoveBlog​(javax.servlet.http.HttpServletRequest request)
      Manages the removal form of a blog whose identifier is in the http request
      java.lang.String getconfirmRemoveHistoryBlog​(javax.servlet.http.HttpServletRequest request)
      Manages the removal of a blog's version from its history
      java.lang.String getConfirmRemoveMultipleBlogs​(javax.servlet.http.HttpServletRequest request)
      Display the confirmation message before one or multiple selected blog posts are deleted
      java.lang.String getConfirmUnarchiveBlogs​(javax.servlet.http.HttpServletRequest request)
      Display the confirmation message before one or multiple selected blog posts are archived
      java.lang.String getCreateBlog​(javax.servlet.http.HttpServletRequest request)
      Returns the form to create a blog
      java.lang.String getDiffBlog​(javax.servlet.http.HttpServletRequest request)
      Returns the diff of two blog versions
      java.lang.String getHistoryBlog​(javax.servlet.http.HttpServletRequest request)
      Return View history page
      java.lang.String getManageBlogs​(javax.servlet.http.HttpServletRequest request)
      Build the Manage View
      java.lang.String getModifyBlog​(javax.servlet.http.HttpServletRequest request)
      Returns the form to update info about a blog
      java.lang.String getPreviewBlog​(javax.servlet.http.HttpServletRequest request)
      Returns the preview of an blog
      java.sql.Timestamp getSqlDate()
      Gets the current
      java.lang.String removeContent​(javax.servlet.http.HttpServletRequest request)
      delete docContent in the htmlDoc content list
      DocContent setContent​(fr.paris.lutece.portal.web.upload.MultipartHttpServletRequest mRequest, java.util.Locale locale)
      Set content of the blog
      static void unLockedBlogByIdSession​(java.lang.String strIdSession)
      Unlock Blogs By Session Id
      static void unLockedBlogByTime​(long nTime)
      Unlock the blog if the lock clearance time has passed
      java.lang.String updateContentType​(javax.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, getUser, setFeatureGroup, setFeatureIcon, setPageTitleProperty, validate, validate, validate
      • Methods inherited from class java.lang.Object

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

      • CONSTANT_DUPLICATE_BLOG_NAME

        public static final java.lang.String CONSTANT_DUPLICATE_BLOG_NAME
        See Also:
        Constant Field Values
    • Constructor Detail

      • BlogJspBean

        public BlogJspBean()
    • Method Detail

      • getManageBlogs

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

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

        @Action("confirmRemoveHistoryBlog")
        public java.lang.String getconfirmRemoveHistoryBlog​(javax.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 java.lang.String doRemoveHistoryBlog​(javax.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 java.lang.String getCreateBlog​(javax.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 java.lang.String doCreateBlog​(javax.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 java.lang.String doAddTag​(javax.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 java.lang.String doRemoveTag​(javax.servlet.http.HttpServletRequest request)
        Return Json if the tag is removed
        Parameters:
        request -
        Returns:
        Json The Json success or echec
      • doUpdatePriorityTag

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

        @Action("confirmRemoveBlog")
        public java.lang.String getConfirmRemoveBlog​(javax.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 java.lang.String doRemoveBlog​(javax.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 java.lang.String doDuplicateBlog​(javax.servlet.http.HttpServletRequest request)
                                         throws fr.paris.lutece.portal.service.admin.AccessDeniedException
        Throws:
        fr.paris.lutece.portal.service.admin.AccessDeniedException
      • getModifyBlog

        @View("modifyBlog")
        public java.lang.String getModifyBlog​(javax.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 java.lang.String doModifyBlog​(javax.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 java.lang.String getPreviewBlog​(javax.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 java.lang.String getDiffBlog​(javax.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 java.lang.String addContent​(javax.servlet.http.HttpServletRequest request)
        Added docContent to the htmlDoc content list
        Parameters:
        request - The Http request
        Returns:
      • removeContent

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

        @Action("updatePriorityContent")
        public java.lang.String doUpdatePriorityContent​(javax.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 java.lang.String updateContentType​(javax.servlet.http.HttpServletRequest request)
        Parameters:
        request -
        Returns:
      • setContent

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

        @Action("confirmRemoveMultipleBlogs")
        public java.lang.String getConfirmRemoveMultipleBlogs​(javax.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 java.lang.String doRemoveMultipleBlog​(javax.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 java.lang.String getConfirmArchiveBlogs​(javax.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 java.lang.String getConfirmUnarchiveBlogs​(javax.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 java.lang.String doArchiveMultipleBlog​(javax.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 java.lang.String doExecuteSelectedAction​(javax.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​(java.lang.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 java.sql.Timestamp getSqlDate()
        Gets the current
        Returns:
        the current date in sql format