Enum Class ProjectAction

java.lang.Object
java.lang.Enum<ProjectAction>
com.atlassian.jira.bc.project.ProjectAction
All Implemented Interfaces:
Serializable, Comparable<ProjectAction>, Constable

public enum ProjectAction extends Enum<ProjectAction>
Represents the different actions a users wants to perform on a project.
  • Enum Constant Details

    • VIEW_PROJECT

      public static final ProjectAction VIEW_PROJECT
      The user is able to see the project. This does not mean the user can edit the project or even view its issues.
    • VIEW_ARCHIVED_PROJECT

      public static final ProjectAction VIEW_ARCHIVED_PROJECT
      The user is able to see the archived project. This does not mean the user can edit the project or even view its issues.
    • VIEW_ISSUES

      public static final ProjectAction VIEW_ISSUES
      Able to view the issues for the passed project.
    • EDIT_PROJECT_CONFIG

      public static final ProjectAction EDIT_PROJECT_CONFIG
      Able to configure the project specific configuration.
    • VIEW_PROJECT_CONFIG

      public static final ProjectAction VIEW_PROJECT_CONFIG
      Able to see the project specific configuration.
    • ARCHIVE_PROJECT

      public static final ProjectAction ARCHIVE_PROJECT
      Able to archive the project.
    • DELETE_PROJECT

      public static final ProjectAction DELETE_PROJECT
      Able to delete the project.
    • EDIT_PROJECT_KEY

      public static final ProjectAction EDIT_PROJECT_KEY
      Able to configure the project specific configuration with the project key.
    • EDIT_PROJECT_CONFIG_EXTENDED

      public static final ProjectAction EDIT_PROJECT_CONFIG_EXTENDED
      Able to configure the project specific configuration which requires "extended project admin" permission.
  • Method Details

    • values

      public static ProjectAction[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static ProjectAction valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getErrorKey

      public String getErrorKey()
    • hasPermissionPredicate

      public boolean hasPermissionPredicate()
    • hasPermission

      public boolean hasPermission(PermissionManager permissionManager, ApplicationUser user, Project project)