Class EditSpacePermissionsAction

All Implemented Interfaces:
Evented<SpacePermissionsUpdateEvent>, BootstrapAware, WebInterface, EditPermissionsAware, PermissionsAware, SpaceAdministrative, SpaceAware, Spaced, 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

See Also:
  • Constructor Details

    • EditSpacePermissionsAction

      public EditSpacePermissionsAction()
  • Method Details

    • doAddBrowseSpacePermission

      public String doAddBrowseSpacePermission()
      Space action specfic
    • doDisableAnyUserViewSpacePermission

      public String doDisableAnyUserViewSpacePermission()
    • populateAdministrator

      public void populateAdministrator()
      Specified by:
      populateAdministrator in interface PermissionsAware
    • execute

      public String execute() throws Exception
      Description copied from interface: EditPermissionsAware
      Add and remove the permissions
      Specified by:
      execute in interface org.apache.struts2.action.Action
      Specified by:
      execute in interface EditPermissionsAware
      Overrides:
      execute in class org.apache.struts2.ActionSupport
      Returns:
      SUCCESS if completed
      Throws:
      Exception
    • getEventToPublish

      public SpacePermissionsUpdateEvent getEventToPublish(String result)
      Description copied from interface: Evented
      Gets the event to publish.
      Specified by:
      getEventToPublish in interface Evented<SpacePermissionsUpdateEvent>
      Parameters:
      result - the result of the action executing.
      Returns:
      the event. Can be null, in which case no event will be published.
    • setSpaceManager

      public void setSpaceManager(SpaceManager spaceManager)
    • isPermitted

      public boolean isPermitted()
      Description copied from class: ConfluenceActionSupport
      Overrides:
      isPermitted in class ConfluenceActionSupport
    • getGuardPermission

      public String getGuardPermission()
      Description copied from interface: PermissionsAware
      Obtains the relevant guard permission for the action
      Specified by:
      getGuardPermission in interface PermissionsAware
      Returns:
      the relevant guard permission for the action
    • getSpace

      public Space getSpace()
      Specified by:
      getSpace in interface Spaced
    • isViewPermissionRequired

      public boolean isViewPermissionRequired()
      Specified by:
      isViewPermissionRequired in interface SpaceAware
      Returns:
      true if the action requires view space permission
    • isSpaceRequired

      public boolean isSpaceRequired()
      Description copied from interface: SpaceAware
      If the action requires that the space be set before being run, then it should return true to this method. If the action requires a space, but no space is available, then the interceptor will automatically redirect to the 'pagenotfound' result
      Specified by:
      isSpaceRequired in interface SpaceAware
      Returns:
      true if the action requires a space in order to execute
    • setSpace

      public void setSpace(Space space)
      Description copied from interface: SpaceAware
      IOC method for setting the space on the action. This is called from the interceptor
      Specified by:
      setSpace in interface SpaceAware
      Parameters:
      space - the space that the action will be working on.
    • getKey

      public String getKey()
    • setKey

      public void setKey(String key)
    • setThemeManager

      public void setThemeManager(ThemeManager themeManager)
    • getThemeManager

      public ThemeManager getThemeManager()
    • hasSpaceSideBar

      public boolean hasSpaceSideBar()
      Tells whether the page has a Space IA bar on the left.
      Returns:
      true if the space bar is present.