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 ManageBlogJspBeanThis class provides the user interface to manage Blog features ( manage, create, modify, remove )- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static StringCONSTANT_DUPLICATE_BLOG_NAME-
Fields inherited from class fr.paris.lutece.plugins.blog.web.ManageBlogJspBean
RIGHT_MANAGEHTMLDOCS
-
-
Constructor Summary
Constructors Constructor Description BlogJspBean()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringaddContent(javax.servlet.http.HttpServletRequest request)Added docContent to the htmlDoc content listStringdoAddTag(javax.servlet.http.HttpServletRequest request)Return Json if the tag is addedStringdoCreateBlog(javax.servlet.http.HttpServletRequest request)Process the data capture form of a new blogStringdoDuplicateBlog(javax.servlet.http.HttpServletRequest request)StringdoModifyBlog(javax.servlet.http.HttpServletRequest request)Process the change form of a blogStringdoRemoveBlog(javax.servlet.http.HttpServletRequest request)Handles the removal form of a blogStringdoRemoveHistoryBlog(javax.servlet.http.HttpServletRequest request)Handles the removal of a blog's versionStringdoRemoveTag(javax.servlet.http.HttpServletRequest request)Return Json if the tag is removedStringdoUpdatePriorityContent(javax.servlet.http.HttpServletRequest request)Return Json if the the content is updatedStringdoUpdatePriorityTag(javax.servlet.http.HttpServletRequest request)Return Json if the tag is updatedStringgetConfirmRemoveBlog(javax.servlet.http.HttpServletRequest request)Manages the removal form of a blog whose identifier is in the http requestStringgetconfirmRemoveHistoryBlog(javax.servlet.http.HttpServletRequest request)Manages the removal of a blog's version from its historyStringgetCreateBlog(javax.servlet.http.HttpServletRequest request)Returns the form to create a blogStringgetDiffBlog(javax.servlet.http.HttpServletRequest request)Returns the diff of two blog versionsStringgetHistoryBlog(javax.servlet.http.HttpServletRequest request)Return View history pageStringgetManageBlogs(javax.servlet.http.HttpServletRequest request)Build the Manage ViewStringgetModifyBlog(javax.servlet.http.HttpServletRequest request)Returns the form to update info about a blogStringgetPreviewBlog(javax.servlet.http.HttpServletRequest request)Returns the preview of an blogTimestampgetSqlDate()Gets the currentStringremoveContent(javax.servlet.http.HttpServletRequest request)delete docContent in the htmlDoc content listDocContentsetContent(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 passedStringupdateContentType(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
-
-
-
-
Field Detail
-
CONSTANT_DUPLICATE_BLOG_NAME
public static final String CONSTANT_DUPLICATE_BLOG_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
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
@View("historyBlog") public String getHistoryBlog(javax.servlet.http.HttpServletRequest request)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.AccessDeniedExceptionManages 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.AccessDeniedExceptionReturns 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(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 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 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 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.AccessDeniedExceptionManages 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(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 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.AccessDeniedExceptionReturns 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(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 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 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 String addContent(javax.servlet.http.HttpServletRequest request)Added docContent to the htmlDoc content list- Parameters:
request- The Http request- Returns:
-
removeContent
@Action("deleteContent") public String removeContent(javax.servlet.http.HttpServletRequest request)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
-
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
-
-