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.AbstractPageAction
              extended by com.atlassian.confluence.pages.actions.AbstractPageChangeAction
                  extended by com.atlassian.confluence.pages.actions.HandleNameConflictsAction
All Implemented Interfaces:
PageAware, TinyUrlAware, WebInterface, 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 AbstractPageChangeAction

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.atlassian.confluence.pages.actions.AbstractPageChangeAction
suggestedContentToBeRefactored
 
Fields inherited from class com.atlassian.confluence.pages.actions.AbstractPageAction
captchaManager, contentPermissionManager, expertView, incomingLinks, isXHtml, linkManager, MARKUP, pageManager, PREVIEW, RICHTEXT, spaceManager, wysiwygConverter
 
Fields inherited from class com.atlassian.confluence.core.ConfluenceActionSupport
CANCEL, DEVMODE, eventManager, i18NBeanFactory, labelManager, languageManager, LICENSE_EXPIRED, LICENSE_USERS_EXCEEDED, permissionManager, permitted, 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)
           
 
Methods inherited from class com.atlassian.confluence.pages.actions.AbstractPageChangeAction
getNewPageTitle, getNewSpace, getNewSpaceKey, getSuggestedContentToBeRefactored, isPermitted, pageAlreadyExists, setNewPageTitle, setNewSpaceKey
 
Methods inherited from class com.atlassian.confluence.pages.actions.AbstractPageAction
displayDatePath, extractPageTitle, extractSpaceKey, generateAncestryBreadcrumbs, getAvailableSpaces, getBeanKey, getBlogPost, getCaptchaId, getCaptchaManager, getEditor, getEditorVersion, getExpertView, getHelper, getIncomingLinks, getMARKUP, getMode, getNextPost, getPage, getPageId, getPermissionTypes, getPermittedChildren, getPostingDate, getPostingDay, getPostingDayOfMonth, getPostingMonth, getPostingMonthNumeric, getPostingYear, getPREVIEW, getPreviousPost, getPreviousVersion, getRICHTEXT, getShowMarkup, getSpace, getSpaceKey, getSpaceManager, getSubscribableName, getSuggestedLabels, getSupportWysiwyg, getTinyUrl, getTitle, getUseWysiwyg, getWebInterfaceContext, getXhtml, hasAttachFilePermissions, hasInvalidTitleCharacters, hasPermittedChildren, hasSetPagePermissionsPermission, hasViewPagePermission, isLatestVersionRequired, isPageRequired, isSpaceAdmin, isViewPermissionRequired, setBreadcrumbsManager, setCaptchaId, setCaptchaManager, setConfluenceWysiwygConverter, setContentPermissionManager, setEditorManager, setLinkManager, setMode, setPage, setPageManager, setPostingDate, setSpaceManager, setXhtml
 
Methods inherited from class com.atlassian.confluence.core.ConfluenceActionSupport
addActionError, addFieldError, addPermissionTypeTo, addToHistory, formatFriendlyDate, getActionName, getBootstrapManager, getCancelResult, getDateFormatter, getDefaultResourceBundle, getEventManager, getFriendlyDateFormatter, getGlobalHelper, getGlobalSettings, getI18n, getInstalledLanguages, getLabelManager, getLanguageManager, getLanguageUserFriendly, getLocale, getLocaleManager, getLocaleString, getNiceContentType, getPermittedEntitiesOf, getPermittedEntitiesOf, getPermittedEntitiesOf, getPreviousLoginDate, getRandom, getRemoteUser, getSession, getSpaceHelper, getText, getText, getText, getText, getTextStatic, getTextStatic, getTextStrict, getTimeZone, getUser, getUserAccessor, getUserFullName, getUserInterfaceState, getWebInterfaceManager, hasPermissionForSpace, isAnonymousUser, isCanceled, isDevMode, isEmailVisible, isExternalUserManagementEnabled, isLabelable, isPermissionCheck, isPermittedAsString, isPrintableVersion, isUsingHSQL, setBootstrapManager, setCancel, setEventManager, setFormatSettingsManager, setI18NBean, setI18NBeanFactory, setLabelManager, setLanguageManager, setLocaleManager, setPermissionCheck, setPermissionManager, setPreviousLoginDate, setSettingsManager, setSpacePermissionManager, 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

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:
Throws:
java.lang.Exception

execute

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

getTextBoxName

public java.lang.String getTextBoxName(AbstractPage page)

getPagesWithNameConflicts

public java.util.List getPagesWithNameConflicts()

getEditPageBean

public EditPageBean getEditPageBean()


Copyright © 2003-2008 Atlassian Pty Ltd. All Rights Reserved.