Class EditGlobalPermissionsAction

    • Constructor Detail

      • EditGlobalPermissionsAction

        public EditGlobalPermissionsAction()
    • Method Detail

      • execute

        public String execute()
                       throws Exception
        Description copied from interface: EditPermissionsAware
        Add and remove the permissions
        Specified by:
        execute in interface com.opensymphony.xwork2.Action
        Specified by:
        execute in interface EditPermissionsAware
        Overrides:
        execute in class com.opensymphony.xwork2.ActionSupport
        Returns:
        SUCCESS if completed
        Throws:
        Exception
      • canSetPermissionOnUser

        public boolean canSetPermissionOnUser​(String permission,
                                              String username)
        Determines whether the logged in user can set the permission for the user. Used by velocity
        Parameters:
        permission - permission to be set
        username - user for permission
        Returns:
        true if permission can be set, false otherwise
      • canSetPermissionOnGroup

        public boolean canSetPermissionOnGroup​(String permission,
                                               String groupName)
        Determines whether the logged in user can set the permission for the group. Used by velocity
        Parameters:
        permission - permission to be set
        groupName - group for permission
        Returns:
        true if permission can be set, false otherwise
      • isConfluenceAdministratorsGroup

        public boolean isConfluenceAdministratorsGroup​(String groupName)
        Determines whether the group is confluence administrators
        Parameters:
        groupName - the group to check
        Returns:
        true if permission can be set, false otherwise
      • canSetSystemAdministratorPermission

        public boolean canSetSystemAdministratorPermission()
        Determines whether the logged in user can set the system admin permission. Used by velocity
        Returns:
        true if permission can be set, false otherwise
      • isAllowAnyLicensing

        public boolean isAllowAnyLicensing()
      • isAllowPerGroupLicensing

        public boolean isAllowPerGroupLicensing()
      • isAllowPerUserLicensing

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