@UrlBinding(value="/actions/admin/page") public class PageAdminAction extends AbstractPageAction
Modifier and Type | Class and Description |
---|---|
static class |
PageAdminAction.InsertPosition |
AbstractPageAction.TerminalResource
Modifier and Type | Field and Description |
---|---|
protected Map<String,String> |
accessLevels |
protected List<EditChildPage> |
childPages |
protected TableForm |
childPagesForm |
protected Form |
copyForm |
static String |
copyright |
protected List<EditChildPage> |
detailChildPages |
protected TableForm |
detailChildPagesForm |
Dispatch |
dispatch |
protected Set<String> |
groups |
protected Form |
moveForm |
protected static String[][] |
NEW_PAGE_SETUP_FIELDS |
protected Form |
newPageForm |
protected String |
originalPath |
File |
pagesDir |
protected Map<String,List<String>> |
permissions |
PageActionRegistry |
registry |
protected AccessLevel |
testedAccessLevel |
protected Set<String> |
testedPermissions |
protected String |
testUserId |
protected String |
title |
protected Map<Serializable,String> |
users |
CONF_FORM_PREFIX, DEFAULT_LAYOUT_CONTAINER, PAGE_CONFIGURATION_FIELDS, PAGE_CONFIGURATION_FIELDS_NO_DETAIL, pageConfigurationForm, pageInstance, pageTemplate, PORTOFINO_PAGEACTION_EXCEPTION, portofinoConfiguration, returnUrl, script, serverInfo, templates
context
Constructor and Description |
---|
PageAdminAction() |
acceptsPathParameter, consumePathFragment, createTemplateSelectionProvider, forwardTo, forwardToPageActionError, forwardToPageActionNotConfigured, getActionAPIPath, getActionPath, getButtons, getConfiguration, getDefaultReturnUrl, getEmbeddedPageActions, getOgnlContext, getPageConfigurationForm, getPageDescription, getPages, getPageTemplate, getParent, getPortofinoConfiguration, getResourcePath, getReturnUrl, getScript, getSubResource, initEmbeddedPageActions, isMultipartRequest, prepareConfigurationForms, prepareScript, readPageConfigurationFromRequest, saveConfiguration, setPageConfigurationForm, setPageInstance, setPageTemplate, setReturnUrl, setScript, updatePageConfiguration, updateScript, updateTemplate, validatePageConfiguration
getContext, setContext
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getContext
setContext
public static final String copyright
protected String originalPath
public Dispatch dispatch
public File pagesDir
public PageActionRegistry registry
protected static final String[][] NEW_PAGE_SETUP_FIELDS
protected Form newPageForm
protected String title
protected List<EditChildPage> childPages
protected List<EditChildPage> detailChildPages
protected TableForm childPagesForm
protected TableForm detailChildPagesForm
protected String testUserId
protected Map<Serializable,String> users
protected AccessLevel testedAccessLevel
protected Form moveForm
protected Form copyForm
public Resolution preparePage()
PageAction
@Before public Resolution prepare()
public Resolution cancel()
cancel
in class AbstractPageAction
public Resolution updateLayout()
public Resolution newPage() throws Exception
Exception
public Resolution createPage()
public String getTitle()
public void setTitle(String title)
protected boolean checkPermissionsOnTargetPage(PageInstance targetPageInstance)
protected boolean checkPermissionsOnTargetPage(PageInstance targetPageInstance, AccessLevel accessLevel)
public Resolution deletePage()
public Page getPage()
getPage
in class AbstractPageAction
public PageInstance getPageInstance()
DispatchElement
getPageInstance
in interface DispatchElement
getPageInstance
in class AbstractPageAction
public Resolution movePage()
public Resolution copyPage()
protected Resolution copyPage(String destinationPagePath, String newName, boolean deleteOriginal)
protected String getClosestSafePath(PageInstance newParent, String newName)
public Resolution pageChildren()
protected void setupChildPages()
protected TableForm setupChildPagesForm(List<EditChildPage> childPages, File childrenDirectory, Layout layout, String prefix)
protected String[] getChildPagesFormFields()
public Resolution updatePageChildren()
protected boolean updatePageChildren(TableForm childPagesForm, List<EditChildPage> childPages, Layout layout, String[] order)
public List<EditChildPage> getChildPages()
public TableForm getChildPagesForm()
public List<EditChildPage> getDetailChildPages()
public TableForm getDetailChildPagesForm()
protected Resolution forwardToPageChildren()
public Resolution pagePermissions()
public Resolution testUserPermissions()
public String[] getSupportedPermissions()
protected Resolution forwardToPagePermissions()
protected void setupGroups()
public Resolution updatePagePermissions()
protected void updatePagePermissions(PageInstance page) throws Exception
Exception
public AccessLevel getLocalAccessLevel(Page currentPage, String groupId)
public Resolution confirmDelete()
public Resolution chooseNewLocation()
public Resolution copyPageDialog()
protected void buildMovePageForm()
protected void buildCopyPageForm()
public Form getMoveForm()
public Form getCopyForm()
public String getTestUserId()
public void setTestUserId(String testUserId)
public Map<Serializable,String> getUsers()
public AccessLevel getTestedAccessLevel()
public Form getNewPageForm()
public String getOriginalPath()
public void setOriginalPath(String originalPath)
public Dispatch getDispatch()
public String getCancelReturnUrl()