Class EditSpacePermissionsAdministrator

All Implemented Interfaces:
EditPermissionsAdministrator, PermissionsAdministrator

public class EditSpacePermissionsAdministrator extends AbstractEditPermissionsAdministrator
Since:
7.17
  • Constructor Details

  • Method Details

    • getAdministrativePermissionType

      public String getAdministrativePermissionType()
      Description copied from interface: EditPermissionsAdministrator
      Returns the top level permission type applicable to the current scope. That is, the permission that must exist at least once per space, or globally.
      Returns:
      top level permission type
    • removeAllPermissions

      public void removeAllPermissions(Set<SpacePermission> permissionsToRemove)
      Description copied from interface: EditPermissionsAdministrator
      Removes the given set of permissions if the current user has permission to do so, otherwise does nothing silently.
      Specified by:
      removeAllPermissions in interface EditPermissionsAdministrator
      Overrides:
      removeAllPermissions in class AbstractEditPermissionsAdministrator
      Parameters:
      permissionsToRemove - the permission you want rid of.
    • addPermission

      public void addPermission(SpacePermission permissionToAdd)
      Description copied from interface: EditPermissionsAdministrator
      Adds the given permission if the current user has permission to do so, otherwise does nothing silently.
      Parameters:
      permissionToAdd - the permission you want rid of.
    • createUserGuardPermission

      public SpacePermission createUserGuardPermission(String guardPermission, ConfluenceUser user)
      Description copied from interface: EditPermissionsAdministrator
      Creates the relevant guard permission for the user
      Parameters:
      guardPermission - - the name of the guard permission to create
      user - - name of the user to add the permission to
      Returns:
      spacepermission object for the user
    • createGroupGuardPermission

      public SpacePermission createGroupGuardPermission(String guardPermission, String groupName)
      Description copied from interface: EditPermissionsAdministrator
      Creates the relevant guard permission for the group
      Parameters:
      guardPermission - - the name of the guard permission to create
      groupName - - name of group to add the permission to
      Returns:
      spacepermission object for the user
    • getInitialPermissionsFromForm

      public Collection<SpacePermission> getInitialPermissionsFromForm(Map requestParams)
      Description copied from interface: EditPermissionsAdministrator
      Retrieve the permissions initial state
      Returns:
      initial state
    • getRequestedPermissionsFromForm

      public Collection<SpacePermission> getRequestedPermissionsFromForm(Map requestParams)
      Description copied from interface: EditPermissionsAdministrator
      Retrieve the state of the permissions requested by the user
      Returns:
      requested state
    • buildPermissionsFromWebForm

      public Collection<SpacePermission> buildPermissionsFromWebForm(Map formParameters, String parameterQualifier)
      Description copied from interface: EditPermissionsAdministrator
      Given a map containing the web form parameters from a permissions edit, return the list of global permissions that are represented by the form
      Parameters:
      formParameters - the map of form parameters
      parameterQualifier - distinguishes the set of parameters from other sets of parameters used to represent permissions in the same form.
      Returns:
      a list of the permissions in the form
    • setSpace

      public void setSpace(Space space)