Class RemoveUserAction

java.lang.Object
org.apache.struts2.ActionSupport
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, org.apache.struts2.action.Action, org.apache.struts2.interceptor.ValidationAware, org.apache.struts2.Validateable

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:
  • Constructor Details

    • RemoveUserAction

      public RemoveUserAction()
  • Method Details

    • doDefault

      public String doDefault() throws Exception
      Description copied from class: ConfluenceActionSupport
      Convenient Action execution method which defaults to returning INPUT
      Overrides:
      doDefault in class ConfluenceActionSupport
      Throws:
      Exception
    • execute

      public String execute() throws Exception
      Specified by:
      execute in interface org.apache.struts2.action.Action
      Overrides:
      execute in class org.apache.struts2.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 Use com.atlassian.confluence.spaces.SpaceManager#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 Use com.atlassian.confluence.spaces.SpaceManager#getSpacesContainingPagesEditedBy(String) instead.
    • getUserCommentedSpaces

      @Deprecated public List getUserCommentedSpaces()
      Deprecated.
      since 6.13.0 Use com.atlassian.confluence.spaces.SpaceManager#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.