public class RestoreExistingTrashItemAction extends AbstractSpaceAction implements SpaceAdministrative
Modifier and Type | Field and Description |
---|---|
protected long |
contentId |
protected long |
existingContentId |
key, notificationManager, space, spaceManager, themeManager, wikiStyleRenderer
accessModeService, CANCEL, DEVMODE, eventManager, i18NBeanFactory, labelManager, languageManager, LICENSE_EXPIRED, LICENSE_USERS_EXCEEDED, messageHolder, permissionManager, permitted, personService, pluginAccessor, PREVIEW, settingsManager, spacePermissionManager, userAccessor, webInterfaceManager
Constructor and Description |
---|
RestoreExistingTrashItemAction() |
Modifier and Type | Method and Description |
---|---|
String |
doDefault()
Default webwork action execution method.
|
String |
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() |
getKey, getPermissionTypes, getSpace, getSpaceKey, getSubscribableName, getThemeManager, hasSpaceIA, isPersonalSpace, isUserWatchingSpace, isValidSpaceKey, setKey, setNotificationManager, setSpace, setSpaceManager, setThemeManager, setWikiStyleRenderer
addActionError, addActionMessage, addFieldError, addPermissionTypeTo, addToHistory, formatFriendlyDate, getAccessMode, getActionName, getActionName, getAuthenticatedUser, getBootstrapManager, getCancel, getCancelResult, getConfluenceAccessManager, getContext, getCurrentRequest, getCurrentSession, getDateFormatSetting, getDateFormatter, getDefaultResourceBundle, getDefaultTimeZone, 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, 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, setSkipAccessCheck, setSpacePermissionManager, setSystemInformationService, setTimeZoneManager, setUserAccessor, setWebInterfaceManager, withServletRequestSupplier
addActionError, addActionMessage, addFieldError, getActionErrors, getActionMessages, getErrorMessages, getErrors, getFieldErrors, getText, getTexts, getTexts, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, setActionErrors, setActionMessages, setFieldErrors
public String doDefault() throws Exception
ConfluenceActionSupport
doDefault
in class ConfluenceActionSupport
Exception
- if something goes wrongpublic void validate()
validate
in interface MessageHolderAware
validate
in interface com.opensymphony.xwork.Validateable
validate
in class com.opensymphony.xwork.ActionSupport
protected boolean hasInvalidTitleCharacters(String str)
public String execute() throws Exception
execute
in interface com.opensymphony.xwork.Action
execute
in class com.opensymphony.xwork.ActionSupport
Exception
public boolean isPermitted()
isPermitted
in class AbstractSpaceAction
public String doOverwrite()
public String doRenameAndRestore()
public boolean isRenamable()
public void setPageManager(PageManager pageManager)
public String getNewTitle()
public void setNewTitle(String newTitle)
public String getRestoreAction()
public void setRestoreAction(String restoreAction)
public void setContentEntityManager(ContentEntityManager contentEntityManager)
public void setAttachmentManager(AttachmentManager attachmentManager)
public ContentEntityObject getContentEntityObject()
public ContentEntityObject getExistingContentEntityObject()
public long getContentId()
public void setContentId(long contentId)
public long getExistingContentId()
public void setExistingContentId(long existingContentId)
public String getType()
Copyright © 2003–2021 Atlassian. All rights reserved.