| com.methodhead.auth.AuthAction com.methodhead.shim.PageAction
Method Summary | |
protected static void | applyTemplate(Page page, Template template) Updates page so that it works with template. | protected ActionForward | doConfigureModule(OperationContext op, ShimPolicy policy) Loads the page for form.id and calls
com.methodhead.shim.Module.configure configure() on the module in
form.panel. | protected ActionForward | doConfigurePage(OperationContext op, ShimPolicy policy) Creates a new page with panels defined in the specified template. | protected ActionForward | doConfigurePageForm(OperationContext op, ShimPolicy policy) Displays the configure page form for form.id. | protected ActionForward | doConfigurePanel(OperationContext op, ShimPolicy policy) Set form.module to whatever module is specified for
form.pageid and panel. | protected ActionForward | doConfigurePanelForm(OperationContext op, ShimPolicy policy) Set form.module to whatever module is specified for
form.pageid and panel. | protected ActionForward | doDeletePage(OperationContext op, ShimPolicy policy) Deletes the page with id form.id. | protected ActionForward | doDeletePageForm(OperationContext op, ShimPolicy policy) Sets form.delOption to promote and forwards to
"form". | protected ActionForward | doEditPage(OperationContext op, ShimPolicy policy) Puts the session in edit mode and displays the page. | protected ActionForward | doEditPanel(OperationContext op, ShimPolicy policy) Forwards to editor, a frameset that includes the toolbar and edit
window. | public ActionForward | doExecute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) | protected ActionForward | doMovePage(OperationContext op, ShimPolicy policy) Moves the page with form.id near the page form.destid
according to form.position (legal values are "under", "before",
"after"), returning an edit page forward for what page is parent to the
page being moved. | protected ActionForward | doMovePageForm(OperationContext op, ShimPolicy policy) Sets form.position to before and forwards to
"form". | protected ActionForward | doNewPageForm(OperationContext op, ShimPolicy policy) Returns the form forward. | protected ActionForward | doSavePanel(OperationContext op, ShimPolicy policy) Updates the module for page pageid and panel with text
from the rich text editor. | protected static Module | instantiateModule(String className) Instantiates the module for className. | protected void | populatePage(Page page, DynaActionForm form) Populates page with values from form. |
applyTemplate | protected static void applyTemplate(Page page, Template template)(Code) | | Updates page so that it works with template. If panels
defined in template do not exist in page, modules are
created for those panels. If there are panels in page that do
not exist in template, modules in those panels are destroyed.
Any other panels are left as is. NOTE: Make sure page.loadFull()
has been called before calling this method.
|
doConfigurePage | protected ActionForward doConfigurePage(OperationContext op, ShimPolicy policy) throws Exception(Code) | | Creates a new page with panels defined in the specified template. Default
modules for those panels are created. Returns the editPage
forward.
|
doEditPage | protected ActionForward doEditPage(OperationContext op, ShimPolicy policy) throws Exception(Code) | | Puts the session in edit mode and displays the page. Forwards to
pageNotFound if loading by alias and the page cannot be
found.
|
doMovePage | protected ActionForward doMovePage(OperationContext op, ShimPolicy policy) throws Exception(Code) | | Moves the page with form.id near the page form.destid
according to form.position (legal values are "under", "before",
"after"), returning an edit page forward for what page is parent to the
page being moved.
|
instantiateModule | protected static Module instantiateModule(String className)(Code) | | Instantiates the module for className.
|
populatePage | protected void populatePage(Page page, DynaActionForm form)(Code) | | Populates page with values from form.
|
|
|