Package com.atlassian.jira.bc.project
Enum Class ProjectAction
- All Implemented Interfaces:
Serializable
,Comparable<ProjectAction>
,Constable
Represents the different actions a users wants to perform on a project.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionAble to archive the project.Able to delete the project.Able to configure the project specific configuration.Able to configure the project specific configuration which requires "extended project admin" permission.Able to configure the project specific configuration with the project key.The user is able to see the archived project.Able to view the issues for the passed project.The user is able to see the project.Able to see the project specific configuration. -
Method Summary
Modifier and TypeMethodDescriptionboolean
hasPermission
(PermissionManager permissionManager, ApplicationUser user, Project project) boolean
static ProjectAction
Returns the enum constant of this class with the specified name.static ProjectAction[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
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
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
Able to view the issues for the passed project. -
EDIT_PROJECT_CONFIG
Able to configure the project specific configuration. -
VIEW_PROJECT_CONFIG
Able to see the project specific configuration. -
ARCHIVE_PROJECT
Able to archive the project. -
DELETE_PROJECT
Able to delete the project. -
EDIT_PROJECT_KEY
Able to configure the project specific configuration with the project key. -
EDIT_PROJECT_CONFIG_EXTENDED
Able to configure the project specific configuration which requires "extended project admin" permission.
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-
getErrorKey
-
hasPermissionPredicate
public boolean hasPermissionPredicate() -
hasPermission
public boolean hasPermission(PermissionManager permissionManager, ApplicationUser user, Project project)
-