Class RemoveUserAction
- java.lang.Object
-
- com.opensymphony.xwork2.ActionSupport
-
- com.atlassian.confluence.core.ConfluenceActionSupport
-
- com.atlassian.confluence.user.actions.AbstractUsersAction
-
- com.atlassian.confluence.user.actions.RemoveUserAction
-
- All Implemented Interfaces:
WebInterface
,ExternalUserManagementAware
,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 RemoveUserAction extends AbstractUsersAction implements ExternalUserManagementAware
Action for removing a user. This gets quite complicated as we have to make sure the user really is able to be removed.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.atlassian.confluence.user.actions.AbstractUsersAction
user, userKey, username
-
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, userAccessor, webInterfaceManager
-
-
Constructor Summary
Constructors Constructor Description RemoveUserAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description String
doDefault()
Convenient Action execution method which defaults to returning INPUTString
execute()
@Nullable String
getPersonalSpaceKey()
Returns the key of the user's personal space if that space exists.String
getTaskId()
List
getUserCommentedSpaces()
Deprecated.since 6.13.0 UseSpaceManager.getSpacesContainingCommentsBy(String)
instead.List<String>
getUserContentCleanupInformation()
A human-readable list of content that will be removed or modified by the deletion of this user.List
getUserEditedSpaces()
Deprecated.since 6.13.0 UseSpaceManager.getSpacesContainingPagesEditedBy(String)
instead.List
getUserOwnedSpaces()
Deprecated.since 6.13.0 UseSpaceManager.getAuthoredSpacesByUser(String)
instead.boolean
hasPersonalSpace()
boolean
isUserRemovable()
void
setEventPublisher(com.atlassian.event.api.EventPublisher eventPublisher)
void
setSpaceManager(SpaceManager spaceManager)
-
Methods inherited from class com.atlassian.confluence.user.actions.AbstractUsersAction
getRemoteUsername, getUrlEncodeUsername, getUser, getUserKey, getUsername, isLicensedToAddMoreUsers, isPermitted, setUserKey, setUsername
-
Methods inherited from class com.atlassian.confluence.core.ConfluenceActionSupport
addActionError, addActionMessage, addFieldError, addPermissionTypeTo, addToHistory, formatFriendlyDate, getAccessMode, getActionName, getActionName, getAuthenticatedUser, getBootstrapManager, getBootstrapStatusProvider, 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, getPermissionTypes, 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, setApiContentUiSupport, 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
-
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, validate
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.opensymphony.xwork2.LocaleProvider
isValidLocale, isValidLocaleString
-
Methods inherited from interface com.atlassian.confluence.validation.MessageHolderAware
validate
-
-
-
-
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
-
execute
public String execute() throws Exception
- Specified by:
execute
in interfacecom.opensymphony.xwork2.Action
- Overrides:
execute
in classcom.opensymphony.xwork2.ActionSupport
- Throws:
Exception
-
setSpaceManager
public void setSpaceManager(SpaceManager spaceManager)
-
isUserRemovable
public boolean isUserRemovable()
-
hasPersonalSpace
public boolean hasPersonalSpace()
-
getPersonalSpaceKey
public @Nullable String getPersonalSpaceKey()
Returns the key of the user's personal space if that space exists. Returns null if the user has no personal space.
-
getUserOwnedSpaces
@Deprecated public List getUserOwnedSpaces()
Deprecated.since 6.13.0 UseSpaceManager.getAuthoredSpacesByUser(String)
instead.- Returns:
- list of spaces that the user to be removed has edited content in, excluding the user's personal space, if one exists
-
getUserEditedSpaces
@Deprecated public List getUserEditedSpaces()
Deprecated.since 6.13.0 UseSpaceManager.getSpacesContainingPagesEditedBy(String)
instead.
-
getUserCommentedSpaces
@Deprecated public List getUserCommentedSpaces()
Deprecated.since 6.13.0 UseSpaceManager.getSpacesContainingCommentsBy(String)
instead.
-
getTaskId
public String getTaskId()
-
getUserContentCleanupInformation
public List<String> getUserContentCleanupInformation()
A human-readable list of content that will be removed or modified by the deletion of this user.- Returns:
- a list of i18n'd strings listing the consequences of removing this user.
-
setEventPublisher
public void setEventPublisher(com.atlassian.event.api.EventPublisher eventPublisher)
-
-