Class RestoreExistingTrashItemAction
- java.lang.Object
-
- com.opensymphony.xwork2.ActionSupport
-
- com.atlassian.confluence.core.ConfluenceActionSupport
-
- com.atlassian.confluence.spaces.actions.AbstractSpaceAction
-
- com.atlassian.confluence.pages.actions.RestoreExistingTrashItemAction
-
- All Implemented Interfaces:
WebInterface
,SpaceAdministrative
,Spaced
,MessageHolderAware
,com.opensymphony.xwork2.Action
,com.opensymphony.xwork2.interceptor.ValidationAware
,com.opensymphony.xwork2.LocaleProvider
,com.opensymphony.xwork2.TextProvider
,com.opensymphony.xwork2.Validateable
,Serializable
public class RestoreExistingTrashItemAction extends AbstractSpaceAction implements SpaceAdministrative
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected long
contentId
protected long
existingContentId
-
Fields inherited from class com.atlassian.confluence.spaces.actions.AbstractSpaceAction
key, notificationManager, space, spaceManager, themeManager, wikiStyleRenderer
-
Fields inherited from class com.atlassian.confluence.core.ConfluenceActionSupport
accessModeService, CANCEL, DEVMODE, eventManager, i18NBeanFactory, labelManager, languageManager, LICENSE_EXPIRED, LICENSE_USERS_EXCEEDED, messageHolder, permissionManager, permitted, personService, pluginAccessor, PREVIEW, settingsManager, spacePermissionManager, systemInformationService, userAccessor, webInterfaceManager
-
-
Constructor Summary
Constructors Constructor Description RestoreExistingTrashItemAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
doDefault()
Convenient Action execution method which defaults to returning INPUTString
doOverwrite()
String
doRenameAndRestore()
String
execute()
ContentEntityObject
getContentEntityObject()
long
getContentId()
ContentEntityObject
getExistingContentEntityObject()
long
getExistingContentId()
String
getNewTitle()
String
getRestoreAction()
String
getType()
protected boolean
hasInvalidTitleCharacters(String str)
boolean
isPermitted()
boolean
isRenamable()
void
setAttachmentManager(AttachmentManager attachmentManager)
void
setContentEntityManager(ContentEntityManager contentEntityManager)
void
setContentId(long contentId)
void
setExistingContentId(long existingContentId)
void
setNewTitle(String newTitle)
void
setPageManager(PageManager pageManager)
void
setRestoreAction(String restoreAction)
void
validate()
-
Methods inherited from class com.atlassian.confluence.spaces.actions.AbstractSpaceAction
getActionSpaceKey, getKey, getPermissionTypes, getSpace, getSpaceKey, getSpaceManager, getSubscribableName, getThemeManager, hasSpaceIA, isPersonalSpace, isUserWatchingSpace, isValidSpaceKey, setKey, setNotificationManager, setSpace, setSpaceManager, setThemeManager, setWikiStyleRenderer
-
Methods inherited from class com.atlassian.confluence.core.ConfluenceActionSupport
addActionError, addActionMessage, addFieldError, addPermissionTypeTo, addToHistory, formatFriendlyDate, getAccessMode, getActionName, getActionName, getAuthenticatedUser, getBootstrapManager, getBootstrapStatusProvider, getCancel, getCancelResult, getConfluenceAccessManager, getContentUiSupport, getContext, getCurrentRequest, getCurrentSession, getDateFormatSetting, getDateFormatter, getDefaultResourceBundle, getDefaultTimeZone, getDocBean, getDocLink, getEventManager, getFriendlyDateFormatter, getFrontendServiceURL, getGlobalSettings, getHelper, getI18n, getInstalledLanguages, getLabelManager, getLanguageJs, getLanguageManager, getLanguageUserFriendly, getLocale, getLocaleManager, getLocaleString, getMessageHolder, getNiceContentType, getPermissionManager, getPermittedEntitiesOf, getPermittedEntitiesOf, getPermittedEntitiesOf, getPersonService, getPreviousLoginDate, getRemoteUser, getSession, getSystemInformationService, getText, getText, getText, getText, getText, getText, getText, getText, getTextStatic, getTextStatic, getTextStrict, getTimeZone, getUserAccessor, getUserByName, getUserFullName, getUserHasBrowseUsersPermission, getUserHasLicensedAccess, getUserInterfaceState, getUserLocaleDefaultDatePattern, getUserProfilePicUrl, getWebInterfaceContext, getWebInterfaceManager, hasPermissionForSpace, isAnonymousUser, isCanceled, isDevMode, isEmailVisible, isExternalUserManagementEnabled, isLabelable, isPrintableVersion, isSkipAccessCheck, isUserStatusPluginEnabled, isUsingH2, isUsingHSQL, setAccessModeService, setApiDateFormatService, setApiPersonService, setBootstrapManager, setCancel, setConfluenceAccessManager, setContentUiSupport, setEventManager, setFormatSettingsManager, setI18NBean, setI18NBeanFactory, setLabelManager, setLanguageManager, setLocaleManager, setLoginManager, setMessageHolder, setPermissionManager, setPluginAccessor, setPreviousLoginDate, setServletRequestSupplier, setSettingsManager, setSpacePermissionManager, setSystemInformationService, setTimeZoneManager, setUserAccessor, setWebInterfaceManager, useSkipAccessCheck, withServletRequestSupplier
-
Methods inherited from class com.opensymphony.xwork2.ActionSupport
addActionError, addActionMessage, addFieldError, clearActionErrors, clearErrors, clearErrorsAndMessages, clearFieldErrors, clearMessages, clone, getActionErrors, getActionMessages, getContainer, getFieldErrors, getFormatted, getLocaleProvider, getText, getText, getTextProvider, getTexts, getTexts, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, hasKey, input, isValidLocale, isValidLocaleString, pause, setActionErrors, setActionMessages, setContainer, setFieldErrors
-
-
-
-
Method Detail
-
doDefault
public String doDefault() throws Exception
Description copied from class:ConfluenceActionSupport
Convenient Action execution method which defaults to returning INPUT- Overrides:
doDefault
in classConfluenceActionSupport
- Throws:
Exception
-
validate
public void validate()
- Specified by:
validate
in interfaceMessageHolderAware
- Specified by:
validate
in interfacecom.opensymphony.xwork2.Validateable
- Overrides:
validate
in classcom.opensymphony.xwork2.ActionSupport
-
hasInvalidTitleCharacters
protected boolean hasInvalidTitleCharacters(String str)
-
execute
public String execute() throws Exception
- Specified by:
execute
in interfacecom.opensymphony.xwork2.Action
- Overrides:
execute
in classcom.opensymphony.xwork2.ActionSupport
- Throws:
Exception
-
isPermitted
public boolean isPermitted()
- Overrides:
isPermitted
in classAbstractSpaceAction
-
doOverwrite
public String doOverwrite()
-
doRenameAndRestore
public String doRenameAndRestore()
-
isRenamable
public boolean isRenamable()
-
setPageManager
public void setPageManager(PageManager pageManager)
-
getNewTitle
public String getNewTitle()
-
setNewTitle
public void setNewTitle(String newTitle)
-
getRestoreAction
public String getRestoreAction()
-
setRestoreAction
public void setRestoreAction(String restoreAction)
-
setContentEntityManager
public void setContentEntityManager(ContentEntityManager contentEntityManager)
-
setAttachmentManager
public void setAttachmentManager(AttachmentManager attachmentManager)
-
getContentEntityObject
public ContentEntityObject getContentEntityObject()
-
getExistingContentEntityObject
public ContentEntityObject getExistingContentEntityObject()
-
getContentId
public long getContentId()
-
setContentId
public void setContentId(long contentId)
-
getExistingContentId
public long getExistingContentId()
-
setExistingContentId
public void setExistingContentId(long existingContentId)
-
getType
public String getType()
-
-