Class ViewSpacePermissionsAction

java.lang.Object
org.apache.struts2.ActionSupport
All Implemented Interfaces:
Evented<SpacePermissionsViewEvent>, BootstrapAware, WebInterface, 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

public class ViewSpacePermissionsAction extends AbstractPermissionsAction implements SpaceAware, SpaceAdministrative, Spaced, Evented<SpacePermissionsViewEvent>
See Also:
  • Field Details

  • Constructor Details

    • ViewSpacePermissionsAction

      public ViewSpacePermissionsAction()
  • Method Details

    • getEventToPublish

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

      public PermissionsAdministrator getPermissionsAdministrator()
      Specified by:
      getPermissionsAdministrator in interface PermissionsAware
    • populateAdministrator

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

      public boolean isAnonymousSpacePermissionWithoutGlobalPermission()
    • isAnyUserViewSpacePermissionEnabled

      public boolean isAnyUserViewSpacePermissionEnabled()
    • isUnlicensedGlobalPermissionEnabled

      public boolean isUnlicensedGlobalPermissionEnabled()
    • 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()