Class ReportPermission

java.lang.Object
com.polarion.platform.security.Permission
com.polarion.platform.security.ReportPermission
All Implemented Interfaces:
IPermission

public class ReportPermission extends Permission
Report permission class.

Available permissions:

Modify implies read.
Version:
$Revision$ $Date$
Author:
Jiri Walek, Polarion Software
  • Field Details

  • Constructor Details

    • ReportPermission

      public ReportPermission(@NotNull String name)
      Constructor.
      Parameters:
      name - permission name
      Throws:
      IllegalArgumentException - if name is invalid
  • Method Details

    • getReadReportPermission

      @NotNull public static ReportPermission getReadReportPermission()
      Get read report permission com.polarion.report.read
      Controls if user has access to see reports - on dashboard, report pages, qcentre...
      Returns:
      ReportPermission
    • getUpdateReportPermission

      @NotNull public static ReportPermission getUpdateReportPermission()
      Get update report permission com.polarion.report.update
      Controls if user has access to update reports - on dashboard, report pages, qcentre...
      Returns:
      ReportPermission
    • getParentPermissions

      @NotNull public IPermission[] getParentPermissions()
      Description copied from interface: IPermission
      The collection of permissions, to which the decision about this permission is granted, if there is no record for exactly this permission.

      For permission to be granted, none of it's parents can be denied and at least one of them must be granted. The rest can be either undefined or granted.

      Specified by:
      getParentPermissions in interface IPermission
      Overrides:
      getParentPermissions in class Permission
      Returns:
      array of IPermissions (not null)