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
CANCEL, DEVMODE, eventManager, i18NBeanFactory, labelManager, languageManager, LICENSE_EXPIRED, LICENSE_USERS_EXCEEDED, messageHolder, permissionManager, permitted, 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 |
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, isAdminUser, isPermitted, isPersonalSpace, isSuperUser, isUserWatchingSpace, isValidSpaceKey, setKey, setNotificationManager, setSpace, setSpaceManager, setThemeManager, setWikiStyleRenderer
addActionError, addActionMessage, addFieldError, addPermissionTypeTo, addToHistory, formatFriendlyDate, getActionName, getActionName, getAuthenticatedUser, getBootstrapManager, getCancel, getCancelResult, getConfluenceAccessManager, getContext, getCurrentRequest, getCurrentSession, getDateFormatSetting, getDateFormatter, getDefaultResourceBundle, getDefaultTimeZone, getDocLink, getEventManager, getFriendlyDateFormatter, getFrontendServiceURL, getGlobalSettings, getHelper, getI18n, getInstalledLanguages, getLabelManager, getLanguageManager, getLanguageUserFriendly, getLocale, getLocaleManager, getLocaleString, getMessageHolder, getNiceContentType, getPermissionManager, getPermittedEntitiesOf, getPermittedEntitiesOf, getPermittedEntitiesOf, getPreviousLoginDate, getRemoteUser, getSession, getSystemInformationService, getText, getText, getText, getText, getTextStatic, getTextStatic, getTextStrict, getTimeZone, getUser, getUserAccessor, getUserByName, getUserFullName, getUserHasLicensedAccess, getUserInterfaceState, getUserLocaleDefaultDatePattern, getUserProfilePicUrl, getWebInterfaceContext, getWebInterfaceManager, hasPermissionForSpace, isAnonymousUser, isCanceled, isDevMode, isEmailVisible, isExternalUserManagementEnabled, isLabelable, isPrintableVersion, isSharedMode, isSkipAccessCheck, isUserStatusPluginEnabled, isUsingH2, isUsingHSQL, setApiDateFormatService, setBootstrapManager, setCancel, setConfluenceAccessManager, setContentUiSupport, setEventManager, setFormatSettingsManager, setI18NBean, setI18NBeanFactory, setLabelManager, setLanguageManager, setLocaleManager, setLoginManager, setMessageHolder, setPermissionManager, setPluginAccessor, setPreviousLoginDate, setServletRequestSupplier, setSettingsManager, setSkipAccessCheck, setSpacePermissionManager, setSystemInformationService, setTimeZoneManager, setUserAccessor, setWebInterfaceManager
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 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–2017 Atlassian. All rights reserved.