com.atlassian.jira.config.managedconfiguration
Enum ConfigurationItemAccessLevel

java.lang.Object
  extended by java.lang.Enum<ConfigurationItemAccessLevel>
      extended by com.atlassian.jira.config.managedconfiguration.ConfigurationItemAccessLevel
All Implemented Interfaces:
Serializable, Comparable<ConfigurationItemAccessLevel>

@PublicApi
public enum ConfigurationItemAccessLevel
extends Enum<ConfigurationItemAccessLevel>

These values define the different access levels that exist for altering a ManagedConfigurationItem.

Note: this setting does not affect configuration changes made at the API level. It only determines the visibility/access of configuration options within JIRA's administration interface.

Since:
v5.2
See Also:
ManagedConfigurationItem, ManagedConfigurationItemService.doesUserHavePermission(com.atlassian.crowd.embedded.api.User, ManagedConfigurationItem)

Enum Constant Summary
ADMIN
          Administrators or system administrators are permitted to alter the item's configuration from the JIRA administration interface.
LOCKED
          No user is permitted to alter the item's configuration from the JIRA administration interface.
SYS_ADMIN
          Only system administrators are permitted to alter the item's configuration from the JIRA administration interface.
 
Method Summary
static ConfigurationItemAccessLevel valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ConfigurationItemAccessLevel[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

LOCKED

public static final ConfigurationItemAccessLevel LOCKED
No user is permitted to alter the item's configuration from the JIRA administration interface.


SYS_ADMIN

public static final ConfigurationItemAccessLevel SYS_ADMIN
Only system administrators are permitted to alter the item's configuration from the JIRA administration interface.


ADMIN

public static final ConfigurationItemAccessLevel ADMIN
Administrators or system administrators are permitted to alter the item's configuration from the JIRA administration interface. However they will be shown a message saying that the item is "managed".

Method Detail

values

public static ConfigurationItemAccessLevel[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (ConfigurationItemAccessLevel c : ConfigurationItemAccessLevel.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static ConfigurationItemAccessLevel valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
NullPointerException - if the argument is null


Copyright © 2002-2013 Atlassian. All Rights Reserved.