| org.opensubsystems.blog.www.BlogBrowserServlet org.opensubsystems.blog.www.BlogEditServlet
BlogEditServlet | public class BlogEditServlet extends BlogBrowserServlet (Code) | | Servlet responsible for browsing and editing of blogs and their entries.
This servlets ads functionality to the browser servlet to manipulate the data.
version: $Id: BlogEditServlet.java,v 1.3 2007/02/20 03:51:57 bastafidli Exp $ author: Miro Halas |
Method Summary | |
protected void | doGet(HttpServletRequest hsrqRequest, HttpServletResponse hsrpResponse) | protected void | doPost(HttpServletRequest hsrqRequest, HttpServletResponse hsrpResponse) | protected int | getFormToProcess(HttpServletRequest hsrqRequest) | public String | getServletInfo() | public void | init(ServletConfig scConfig) | protected Blog | parseBlogFromRequest(HttpServletRequest hsrqRequest) Create new instance of blog from a HTTP request. | protected Entry | parseEntryFromRequest(HttpServletRequest hsrqRequest) Create new instance of blog entry from a HTTP request.. | protected void | processConfirmDeleteBlogForm(HttpServletRequest hsrqRequest, HttpServletResponse hsrpResponse) Process form to display dialog to confirm deletion of a blog. | protected void | processConfirmDeleteEntryForm(HttpServletRequest hsrqRequest, HttpServletResponse hsrpResponse) Process form to display dialog to confirm deletion of a blog entry. | protected void | processCreateBlogForm(HttpServletRequest hsrqRequest, HttpServletResponse hsrpResponse) Process form to actually create new blog from supplied information. | protected void | processCreateEntryForm(HttpServletRequest hsrqRequest, HttpServletResponse hsrpResponse) Process form to actually create new blog entry. | protected void | processDeleteBlogForm(HttpServletRequest hsrqRequest, HttpServletResponse hsrpResponse) Process form to delete specified blog. | protected void | processDeleteEntryForm(HttpServletRequest hsrqRequest, HttpServletResponse hsrpResponse) Process form to delete specified blog entry. | protected void | processEditBlogError(HttpServletRequest hsrqRequest, HttpServletResponse hsrpResponse, Blog blog) Process recoverable error, which has occured while saving blog. | protected void | processEditBlogForm(HttpServletRequest hsrqRequest, HttpServletResponse hsrpResponse) Process form to save modified information about blog. | protected void | processEditEntryError(HttpServletRequest hsrqRequest, HttpServletResponse hsrpResponse, Entry entry) Process recoverable error, which has occured while saving entry. | protected void | processEditEntryForm(HttpServletRequest hsrqRequest, HttpServletResponse hsrpResponse) Process form to save modified blog entry. | protected void | processLoginForm(HttpServletRequest hsrqRequest, HttpServletResponse hsrpResponse) Process form to login to the application. | protected void | processLogoutForm(HttpServletRequest hsrqRequest, HttpServletResponse hsrpResponse) Process form to logout from the application. | protected void | processNewBlogForm(HttpServletRequest hsrqRequest, HttpServletResponse hsrpResponse) Process form to display dialog to create new blog. | protected void | processNewEntryBlogForm(HttpServletRequest hsrqRequest, HttpServletResponse hsrpResponse) Process form to display dialog to create new blog entry. | protected void | processNewLoginForm(HttpServletRequest hsrqRequest, HttpServletResponse hsrpResponse) Process form to display login dialog. | protected void | processNewLogoutForm(HttpServletRequest hsrqRequest, HttpServletResponse hsrpResponse) Process form to display logout dialog. | protected void | redirectToLogin(HttpServletRequest hsrqRequest, HttpServletResponse hsrpResponse) | protected Principal | verifyLogin(HttpSession hsSession, HttpServletRequest hsrqRequest, HttpServletResponse hsrpResponse) |
BLOGEDIT_CONFIRMDELETE_BLOGENTRY_PAGE | final public static String BLOGEDIT_CONFIRMDELETE_BLOGENTRY_PAGE(Code) | | Name of the property for page to confirm deletion of blog entry
|
BLOGEDIT_CONFIRMDELETE_BLOG_PAGE | final public static String BLOGEDIT_CONFIRMDELETE_BLOG_PAGE(Code) | | Name of the property for page to confirm deletion of blog.
|
BLOGEDIT_LOGIN | final public static String BLOGEDIT_LOGIN(Code) | | Name of the property for user name used to login.
|
BLOGEDIT_LOGIN_PAGE | final public static String BLOGEDIT_LOGIN_PAGE(Code) | | Name of the property for page to login.
|
BLOGEDIT_LOGOUT_PAGE | final public static String BLOGEDIT_LOGOUT_PAGE(Code) | | Name of the property for page to logout.
|
BLOGEDIT_NEWENTRY_BLOG_PAGE | final public static String BLOGEDIT_NEWENTRY_BLOG_PAGE(Code) | | Name of the property for page to create new blog entry.
|
BLOGEDIT_NEW_BLOG_PAGE | final public static String BLOGEDIT_NEW_BLOG_PAGE(Code) | | Name of the property for page to create new blog.
|
BLOGEDIT_PASSWORD | final public static String BLOGEDIT_PASSWORD(Code) | | Name of the property for password used to login.
|
FORM_CONFIRMDELETE_BLOGENTRY_ID | final public static int FORM_CONFIRMDELETE_BLOGENTRY_ID(Code) | | Constants for action to display delete blog entry dialog.
|
FORM_CONFIRMDELETE_BLOG_ID | final public static int FORM_CONFIRMDELETE_BLOG_ID(Code) | | Constants for action to display delete blog dialog.
|
FORM_COUNT_BLOGEDIT | final public static int FORM_COUNT_BLOGEDIT(Code) | | How many forms this servlet recognizes.
|
FORM_CREATE_BLOGENTRY_ID | final public static int FORM_CREATE_BLOGENTRY_ID(Code) | | Constants for action to create blog entry dialog.
|
FORM_CREATE_BLOGENTRY_NAME | final public static String FORM_CREATE_BLOGENTRY_NAME(Code) | | Names of the form and action to create blog entry.
|
FORM_CREATE_BLOG_ID | final public static int FORM_CREATE_BLOG_ID(Code) | | Constants for action to create new blog.
|
FORM_CREATE_BLOG_NAME | final public static String FORM_CREATE_BLOG_NAME(Code) | | Names of the form and action to display create blog dialog.
|
FORM_DELETE_BLOGENTRY_ID | final public static int FORM_DELETE_BLOGENTRY_ID(Code) | | Constants for action to delete blog entry.
|
FORM_DELETE_BLOGENTRY_NAME | final public static String FORM_DELETE_BLOGENTRY_NAME(Code) | | Names of the form and action to delete blog entry.
|
FORM_DELETE_BLOG_ID | final public static int FORM_DELETE_BLOG_ID(Code) | | Constants for action to delete blog.
|
FORM_DELETE_BLOG_NAME | final public static String FORM_DELETE_BLOG_NAME(Code) | | Names of the form and action to delete blog.
|
FORM_EDIT_BLOGENTRY_ID | final public static int FORM_EDIT_BLOGENTRY_ID(Code) | | Constants for action to edit blog entry.
|
FORM_EDIT_BLOGENTRY_NAME | final public static String FORM_EDIT_BLOGENTRY_NAME(Code) | | Names of the form and action to display edit blog entry dialog.
|
FORM_EDIT_BLOGENTRY_NAME_DELETE | final public static String FORM_EDIT_BLOGENTRY_NAME_DELETE(Code) | | Names of the form and action to display delete blog entry dialog.
|
FORM_EDIT_BLOG_ID | final public static int FORM_EDIT_BLOG_ID(Code) | | Constants for action to edit blog.
|
FORM_EDIT_BLOG_NAME | final public static String FORM_EDIT_BLOG_NAME(Code) | | Names of the form and action to display edit blog dialog.
|
FORM_EDIT_BLOG_NAME_CREATE | final public static String FORM_EDIT_BLOG_NAME_CREATE(Code) | | Names of the form and action to create blog.
|
FORM_EDIT_BLOG_NAME_CREATEENTRY | final public static String FORM_EDIT_BLOG_NAME_CREATEENTRY(Code) | | Names of the form and action to display create blog entry dialog.
|
FORM_EDIT_BLOG_NAME_DELETE | final public static String FORM_EDIT_BLOG_NAME_DELETE(Code) | | Names of the form and action to display delete blog dialog.
|
FORM_LOGIN_ID | final public static int FORM_LOGIN_ID(Code) | | Constants for action to login to the application.
|
FORM_LOGIN_NAME | final public static String FORM_LOGIN_NAME(Code) | | Names of the form and action to login to the application.
|
FORM_LOGOUT_ID | final public static int FORM_LOGOUT_ID(Code) | | Constants for action to logout from the application.
|
FORM_LOGOUT_NAME | final public static String FORM_LOGOUT_NAME(Code) | | Names of the form and action to logout from the application.
|
FORM_NEWENTRY_BLOG_ID | final public static int FORM_NEWENTRY_BLOG_ID(Code) | | Constants for action to display create blog entry dialog.
|
FORM_NEW_BLOG_ID | final public static int FORM_NEW_BLOG_ID(Code) | | Constants for action to display new blog dialog.
|
m_strLogin | protected String m_strLogin(Code) | | User name to use to login to the application.
|
m_strPassword | protected String m_strPassword(Code) | | Password to use to login to the application.
|
parseBlogFromRequest | protected Blog parseBlogFromRequest(HttpServletRequest hsrqRequest)(Code) | | Create new instance of blog from a HTTP request.
Parameters: hsrqRequest - - HTTP request from HTML form Blog |
parseEntryFromRequest | protected Entry parseEntryFromRequest(HttpServletRequest hsrqRequest)(Code) | | Create new instance of blog entry from a HTTP request..
Parameters: hsrqRequest - - HTTP request from HTML form Entry |
processEditBlogError | protected void processEditBlogError(HttpServletRequest hsrqRequest, HttpServletResponse hsrpResponse, Blog blog) throws IOException, ServletException(Code) | | Process recoverable error, which has occured while saving blog. This will
show again the edit blog page but with the modified data and explanative
error message.
Parameters: hsrqRequest - - the servlet request. Parameters: hsrpResponse - - the servlet response. Parameters: blog - - blog with modified data submitted to the server throws: ServletException - - an error while serving request throws: IOException - - an error while writing response |
processEditEntryError | protected void processEditEntryError(HttpServletRequest hsrqRequest, HttpServletResponse hsrpResponse, Entry entry) throws IOException, ServletException(Code) | | Process recoverable error, which has occured while saving entry. This will
show again the edit entry page but with the modified data and explanative
error message.
Parameters: hsrqRequest - - the servlet request. Parameters: hsrpResponse - - the servlet response. Parameters: entry - - entry with modified data submitted to the server throws: ServletException - - an error while serving request throws: IOException - - an error while writing response |
processNewBlogForm | protected void processNewBlogForm(HttpServletRequest hsrqRequest, HttpServletResponse hsrpResponse) throws IOException, ServletException(Code) | | Process form to display dialog to create new blog.
It supplies template object with default information for new blog.
Parameters: hsrqRequest - - the servlet request. Parameters: hsrpResponse - - the servlet response. throws: ServletException - - an error while serving request throws: IOException - - an error while writing response |
Methods inherited from org.opensubsystems.blog.www.BlogBrowserServlet | protected void createBlogEntryPage(HttpServletRequest hsrqRequest, HttpServletResponse hsrpResponse, BlogNavigator navigator) throws IOException, ServletException(Code)(Java Doc) protected void createIndexPage(HttpServletRequest hsrqRequest, HttpServletResponse hsrpResponse, BlogNavigator navigator, int iPageNumber) throws IOException, ServletException(Code)(Java Doc) protected void createMainIndexPage(HttpServletRequest hsrqRequest, HttpServletResponse hsrpResponse, BlogNavigator navigator, int iPageNumber) throws IOException, ServletException(Code)(Java Doc) protected void doGet(HttpServletRequest hsrqRequest, HttpServletResponse hsrpResponse) throws ServletException, IOException(Code)(Java Doc) protected BlogController getController() throws OSSException(Code)(Java Doc) protected BlogNavigator getNavigator(HttpServletRequest hsrqRequest)(Code)(Java Doc) public String getServletInfo()(Code)(Java Doc) public void init(ServletConfig scConfig) throws ServletException(Code)(Java Doc)
|
|
|