Package fr.paris.lutece.plugins.blog.web
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
@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
FieldsFields inherited from class fr.paris.lutece.plugins.blog.web.ManageBlogJspBean
RIGHT_MANAGEHTMLDOCS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddContent(javax.servlet.http.HttpServletRequest request) Added docContent to the htmlDoc content listdoAddTag(javax.servlet.http.HttpServletRequest request) Return Json if the tag is addeddoArchiveMultipleBlog(javax.servlet.http.HttpServletRequest request) Handles the manual archiving of multiple blog postsdoCreateBlog(javax.servlet.http.HttpServletRequest request) Process the data capture form of a new blogdoDuplicateBlog(javax.servlet.http.HttpServletRequest request) doExecuteSelectedAction(javax.servlet.http.HttpServletRequest request) Process a specific action on a selection of multiple blog post elementsdoModifyBlog(javax.servlet.http.HttpServletRequest request) Process the change form of a blogdoRemoveBlog(javax.servlet.http.HttpServletRequest request) Handles the removal form of a blogdoRemoveHistoryBlog(javax.servlet.http.HttpServletRequest request) Handles the removal of a blog's versiondoRemoveMultipleBlog(javax.servlet.http.HttpServletRequest request) Handles the manual delete of multiple blog postsdoRemoveTag(javax.servlet.http.HttpServletRequest request) Return Json if the tag is removeddoUpdatePriorityContent(javax.servlet.http.HttpServletRequest request) Return Json if the the content is updateddoUpdatePriorityTag(javax.servlet.http.HttpServletRequest request) Return Json if the tag is updatedgetConfirmArchiveBlogs(javax.servlet.http.HttpServletRequest request) Display the confirmation message before one or multiple selected blog posts are removedgetConfirmRemoveBlog(javax.servlet.http.HttpServletRequest request) Manages the removal form of a blog whose identifier is in the http requestgetconfirmRemoveHistoryBlog(javax.servlet.http.HttpServletRequest request) Manages the removal of a blog's version from its historygetConfirmRemoveMultipleBlogs(javax.servlet.http.HttpServletRequest request) Display the confirmation message before one or multiple selected blog posts are deletedgetConfirmUnarchiveBlogs(javax.servlet.http.HttpServletRequest request) Display the confirmation message before one or multiple selected blog posts are archivedgetCreateBlog(javax.servlet.http.HttpServletRequest request) Returns the form to create a bloggetDiffBlog(javax.servlet.http.HttpServletRequest request) Returns the diff of two blog versionsgetHistoryBlog(javax.servlet.http.HttpServletRequest request) Return View history pagegetManageBlogs(javax.servlet.http.HttpServletRequest request) Build the Manage ViewgetModifyBlog(javax.servlet.http.HttpServletRequest request) Returns the form to update info about a bloggetPreviewBlog(javax.servlet.http.HttpServletRequest request) Returns the preview of an blogGets the currentremoveContent(javax.servlet.http.HttpServletRequest request) delete docContent in the htmlDoc content listsetContent(fr.paris.lutece.portal.web.upload.MultipartHttpServletRequest mRequest, Locale locale) Set content of the blogstatic voidunLockedBlogByIdSession(String strIdSession) Unlock Blogs By Session Idstatic voidunLockedBlogByTime(long nTime) Unlock the blog if the lock clearance time has passedupdateContentType(javax.servlet.http.HttpServletRequest request) Methods inherited from class fr.paris.lutece.portal.util.mvc.admin.MVCAdminJspBean
processControllerMethods inherited from class fr.paris.lutece.portal.web.admin.PluginAdminPageJspBean
getPlugin, initMethods inherited from class fr.paris.lutece.portal.web.admin.AdminFeaturesPageJspBean
getAdminPage, getFeatureIcon, getHomeUrl, getLocale, getPageTitle, getUser, setFeatureGroup, setFeatureIcon, setPageTitleProperty, validate, validate, validate
-
Field Details
-
CONSTANT_DUPLICATE_BLOG_NAME
- See Also:
-
-
Constructor Details
-
BlogJspBean
public BlogJspBean()
-
-
Method Details
-
getManageBlogs
@View(value="manageBlogs", defaultView=true) public String getManageBlogs(javax.servlet.http.HttpServletRequest request) Build the Manage View- Parameters:
request- The HTTP request- Returns:
- The page
-
getHistoryBlog
Return View history page- Parameters:
request- The request- Returns:
- the hostory page
-
getconfirmRemoveHistoryBlog
@Action("confirmRemoveHistoryBlog") public 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 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 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
Process the data capture form of a new blog- Parameters:
request- The Http Request- Returns:
- The Jsp URL of the process result
-
doAddTag
Return Json if the tag is added- Parameters:
request- The request- Returns:
- Json The Json success or echec
-
doRemoveTag
Return Json if the tag is removed- Parameters:
request-- Returns:
- Json The Json success or echec
-
doUpdatePriorityTag
@Action("updatePriorityTag") public 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 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
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(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 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
Process the change form of a blog- Parameters:
request- The Http request- Returns:
- The Jsp URL of the process result
-
getPreviewBlog
Returns the preview of an blog- Parameters:
request- The Http request- Returns:
- The HTML form to update info
-
getDiffBlog
Returns the diff of two blog versions- Parameters:
request- The Http request- Returns:
- The HTML form to update info
-
addContent
Added docContent to the htmlDoc content list- Parameters:
request- The Http request- Returns:
-
removeContent
delete docContent in the htmlDoc content list- Parameters:
request- The Http request- Returns:
-
doUpdatePriorityContent
@Action("updatePriorityContent") public 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 String updateContentType(javax.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(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 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 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 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 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 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
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
Gets the current- Returns:
- the current date in sql format
-