com.atlassian.confluence.pages.actions
Class HandleNameConflictsAction

java.lang.Object
  extended by com.opensymphony.xwork.ActionSupport
      extended by com.atlassian.confluence.core.ConfluenceActionSupport
          extended by com.atlassian.confluence.pages.actions.AbstractPageAwareAction
              extended by com.atlassian.confluence.pages.actions.HandleNameConflictsAction
All Implemented Interfaces:
PageAware, WebInterface, com.opensymphony.webwork.interceptor.ParameterAware, com.opensymphony.xwork.Action, com.opensymphony.xwork.LocaleProvider, com.opensymphony.xwork.TextProvider, com.opensymphony.xwork.Validateable, com.opensymphony.xwork.ValidationAware, java.io.Serializable

public class HandleNameConflictsAction
extends AbstractPageAwareAction
implements com.opensymphony.webwork.interceptor.ParameterAware

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.atlassian.confluence.pages.actions.AbstractPageAwareAction
contentPermissionManager, spaceManager
 
Fields inherited from class com.atlassian.confluence.core.ConfluenceActionSupport
CANCEL, DEVMODE, eventManager, i18NBeanFactory, labelManager, languageManager, LICENSE_EXPIRED, LICENSE_USERS_EXCEEDED, permissionManager, permitted, pluginAccessor, PREVIEW, settingsManager, spacePermissionManager, userAccessor, webInterfaceManager
 
Fields inherited from class com.opensymphony.xwork.ActionSupport
LOG
 
Fields inherited from interface com.opensymphony.xwork.Action
ERROR, INPUT, LOGIN, NONE, SUCCESS
 
Constructor Summary
HandleNameConflictsAction()
           
 
Method Summary
 java.lang.String doDefault()
          when a user attempts to move a page, they are redirected first to this action which checks whether there are any naming conflicts

if no space key is provided this action dispatches back to the move page action to show a validation error otherwise it works out the conflicting pages and display them.

 java.lang.String execute()
           
 EditPageBean getEditPageBean()
           
 java.util.List getPagesWithNameConflicts()
           
 java.lang.String getTextBoxName(AbstractPage page)
           
 void setPageManager(PageManager pageManager)
           
 void setParameters(java.util.Map parameters)
           
 
Methods inherited from class com.atlassian.confluence.pages.actions.AbstractPageAwareAction
getPage, getPageId, getSpace, getSpaceKey, getTitle, hasViewPagePermission, isLatestVersionRequired, isPageRequired, isPermitted, isViewPermissionRequired, setContentPermissionManager, setPage, setSpaceManager
 
Methods inherited from class com.atlassian.confluence.core.ConfluenceActionSupport
addActionError, addFieldError, addPermissionTypeTo, addToHistory, formatFriendlyDate, getActionName, getActionName, getBootstrapManager, getCancelResult, getContext, getDateFormatter, getDefaultResourceBundle, getDocLink, getEventManager, getFriendlyDateFormatter, getGlobalSettings, getHelper, getI18n, getInstalledLanguages, getLabelManager, getLanguageManager, getLanguageUserFriendly, getLocale, getLocaleManager, getLocaleString, getNiceContentType, getPermissionTypes, getPermittedEntitiesOf, getPermittedEntitiesOf, getPermittedEntitiesOf, getPreviousLoginDate, getRandom, getRemoteUser, getSession, getSystemInformationService, getText, getText, getText, getText, getTextStatic, getTextStatic, getTextStrict, getTimeZone, getUser, getUserAccessor, getUserFullName, getUserInterfaceState, getWebInterfaceContext, getWebInterfaceManager, hasPermissionForSpace, isAnonymousUser, isCanceled, isDevMode, isEmailVisible, isExternalUserManagementEnabled, isLabelable, isPermissionCheck, isPermittedAsString, isPrintableVersion, isSharedMode, isUserStatusPluginEnabled, isUsingHSQL, setBootstrapManager, setCancel, setEventManager, setFormatSettingsManager, setI18NBean, setI18NBeanFactory, setLabelManager, setLanguageManager, setLocaleManager, setPermissionCheck, setPermissionManager, setPluginAccessor, setPreviousLoginDate, setSettingsManager, setSpacePermissionManager, setSystemInformationService, setUserAccessor, setWebInterfaceManager
 
Methods inherited from class com.opensymphony.xwork.ActionSupport
addActionError, addActionMessage, addFieldError, getActionErrors, getActionMessages, getErrorMessages, getErrors, getFieldErrors, getText, getTexts, getTexts, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, setActionErrors, setActionMessages, setFieldErrors, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HandleNameConflictsAction

public HandleNameConflictsAction()
Method Detail

setParameters

public void setParameters(java.util.Map parameters)
Specified by:
setParameters in interface com.opensymphony.webwork.interceptor.ParameterAware

setPageManager

public void setPageManager(PageManager pageManager)

doDefault

public java.lang.String doDefault()
                           throws java.lang.Exception
when a user attempts to move a page, they are redirected first to this action which checks whether there are any naming conflicts

if no space key is provided this action dispatches back to the move page action to show a validation error otherwise it works out the conflicting pages and display them.

if there are no conflicting names, this will send it straight off to either the confirm move hierarchy page (if moving hierarchy) or straight to renaming the page

Overrides:
doDefault in class ConfluenceActionSupport
Returns:
the action result
Throws:
java.lang.Exception - if something goes wrong

execute

public java.lang.String execute()
                         throws java.lang.Exception
Specified by:
execute in interface com.opensymphony.xwork.Action
Overrides:
execute in class com.opensymphony.xwork.ActionSupport
Throws:
java.lang.Exception

getTextBoxName

public java.lang.String getTextBoxName(AbstractPage page)

getPagesWithNameConflicts

public java.util.List getPagesWithNameConflicts()

getEditPageBean

public EditPageBean getEditPageBean()


Copyright © 2003-2011 Atlassian. All Rights Reserved.