| com.ivata.groupware.business.library.struts.DisplayAction
All known Subclasses: com.ivata.groupware.business.library.struts.SubmitAction,
DisplayAction | public class DisplayAction extends MaskAction (Code) | | Action invoked whenever a library item is
displayed.
since: 2003-02-18 author: Colin MacLeod author: colin.macleod@ivata.com version: $Revision: 1.8 $ |
Method Summary | |
public void | chooseItemType(ItemForm itemForm) | public String | execute(ActionMapping mapping, ActionErrors errors, ActionForm form, HttpServletRequest request, HttpServletResponse response, HttpSession session) Overridden to proved flow for onEdit and
onPreview .
Parameters: mapping - current action mapping from Struts config. Parameters: log - valid logging object to write messages to. Parameters: errors - valid errors object to append errors to. | public String | onDelete(ActionMapping mapping, ActionErrors errors, ActionForm form, HttpServletRequest request, HttpServletResponse response, HttpSession session, String defaultForward) This method is called if the delete (confirm, not warn) button
is pressed.
Parameters: mapping - current action mapping from Struts config. Parameters: errors - valid errors object to append errors to. | protected void | setDocumentPageNumber(PageContext pageContext, String linkPage, HttpServletRequest request, ItemForm itemForm) | protected void | setFaqPageNumber(PageContext pageContext, String linkPage, HttpServletRequest request, ItemForm itemForm) | protected void | setMeetingPageNumber(PageContext pageContext, String linkPage, HttpServletRequest request, ItemForm itemForm) | final public void | setPageNumber(String linkPage, HttpServletRequest request, HttpServletResponse response, ItemForm itemForm) |
DisplayAction | public DisplayAction(Library library, Settings settings, MaskFactory maskFactory, MaskAuthenticator authenticator)(Code) | | TODO
Parameters: library - Parameters: settings - Parameters: maskFactory - This factory is needed to access the masks and groupsof masks. Parameters: authenticator - used to confirm whether or not theuser should be allowed to continue, in the execute method. |
chooseItemType | public void chooseItemType(ItemForm itemForm)(Code) | | Set information to display the item type correcly.
Parameters: itemForm - the fom which should be set up fo the giventype. |
execute | public String execute(ActionMapping mapping, ActionErrors errors, ActionForm form, HttpServletRequest request, HttpServletResponse response, HttpSession session) throws SystemException(Code) | | Overridden to proved flow for onEdit and
onPreview .
Parameters: mapping - current action mapping from Struts config. Parameters: log - valid logging object to write messages to. Parameters: errors - valid errors object to append errors to. If there areany errors, the action will return to the input. Parameters: form - optional ActionForm bean for this request (if any) Parameters: request - non-HTTP request we are processing Parameters: response - The non-HTTP response we are creating Parameters: session - returned from the request parameter. Parameters: userName - current user name from session. . Parameters: settings - valid, non-null settings from session. exception: SystemException - if there is any problem whichprevents processing. It will result in the webapp being forwardedtothe standard error page. this method returns the string used to identify the correctStruts ActionForward which should follow thispage, or null if it should return to the input. |
onDelete | public String onDelete(ActionMapping mapping, ActionErrors errors, ActionForm form, HttpServletRequest request, HttpServletResponse response, HttpSession session, String defaultForward) throws SystemException(Code) | | This method is called if the delete (confirm, not warn) button
is pressed.
Parameters: mapping - current action mapping from Struts config. Parameters: errors - valid errors object to append errors to. If there areany errors, the action will return to the input. Parameters: form - optional ActionForm bean for this request (if any) Parameters: request - non-HTTP request we are processing Parameters: response - The non-HTTP response we are creating Parameters: session - returned from the request parameter. Parameters: log - valid logging object to write messages to. Parameters: userName - valid, non-null user name from session. Parameters: settings - valid, non-null settings from session. exception: SystemException - if there is any problem whichprevents processing. It will result in the webapp being forwardedtothe standard error page. this method returns the string used to identify the correctStruts ActionForward which should follow thispage, or null if it should return to the input. |
setDocumentPageNumber | protected void setDocumentPageNumber(PageContext pageContext, String linkPage, HttpServletRequest request, ItemForm itemForm) throws SystemException(Code) | | Implementation of
setPageNumber for document types.
Parameters: linkPage - the page to link the page numbers to. Parameters: request - current request to check for a 'page' parameterand to create links. Parameters: itemForm - form to set page number displayPage . throws: SystemException - if there is any exception creatingthe URL s. See Also: setPageNumber |
setFaqPageNumber | protected void setFaqPageNumber(PageContext pageContext, String linkPage, HttpServletRequest request, ItemForm itemForm) throws SystemException(Code) | | Implementation of
setPageNumber for FAQ types.
Parameters: linkPage - the page to link the page numbers to. Parameters: request - current request to check for a 'page' parameterand to create links. Parameters: itemForm - form to set page number displayPage . throws: SystemException - if there is any exception creatingthe URL s. See Also: setPageNumber |
setMeetingPageNumber | protected void setMeetingPageNumber(PageContext pageContext, String linkPage, HttpServletRequest request, ItemForm itemForm) throws SystemException(Code) | | Implementation of
setPageNumber for meeting types.
Parameters: linkPage - the page to link the page numbers to. Parameters: request - current request to check for a 'page' parameterand to create links. Parameters: itemForm - form to set page number displayPage . throws: SystemException - if there is any exception creatingthe URL s. See Also: setPageNumber |
setPageNumber | final public void setPageNumber(String linkPage, HttpServletRequest request, HttpServletResponse response, ItemForm itemForm) throws SystemException(Code) | | Set the current page number from the request or form to the
displayPage attribute on the form.
This method also sets the appropriate page links.
Parameters: linkPage - the page to link the page numbers to. Parameters: request - current request to check for a 'page' parameterand to create links. Parameters: response - used to create links. Parameters: itemForm - form to set page number displayPage . throws: SystemException - if there is any exception creatingthe URL s. |
|
|