com.sap.sl.sdk.authoring.businesslayer
Enum AccessLevel

java.lang.Object
  extended by java.lang.Enum<AccessLevel>
      extended by com.sap.sl.sdk.authoring.businesslayer.AccessLevel
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<AccessLevel>

public enum AccessLevel
extends java.lang.Enum<AccessLevel>

A representation of the literals of the 'Access Level' enumeration, and methods to use them.

The security access level of an object restricts use of the object to users with the appropriate object-access level granted. See the BI platform Administrator Guide for more information about object-access levels.


Enum Constant Summary
CONFIDENTIAL
          The 'CONFIDENTIAL' literal object.
CONTROLLED
          The 'CONTROLLED' literal object.
PRIVATE
          The 'PRIVATE' literal object.
PUBLIC
          The 'PUBLIC' literal object.
RESTRICTED
          The 'RESTRICTED' literal object.
 
Field Summary
static int CONFIDENTIAL_VALUE
          The 'CONFIDENTIAL' literal value.
static int CONTROLLED_VALUE
          The 'CONTROLLED' literal value.
static int PRIVATE_VALUE
          The 'PRIVATE' literal value.
static int PUBLIC_VALUE
          The 'PUBLIC' literal value.
static int RESTRICTED_VALUE
          The 'RESTRICTED' literal value.
static java.util.List<AccessLevel> VALUES
          A public read-only list of all the 'Access Level' enumerators.
 
Method Summary
static AccessLevel get(int value)
          Returns the 'Access Level' literal with the specified integer value.
static AccessLevel get(java.lang.String literal)
          Returns the 'Access Level' literal with the specified literal value.
static AccessLevel getByName(java.lang.String name)
          Returns the 'Access Level' literal with the specified name.
 java.lang.String getLiteral()
          Returns the string representation of the enumerator.
 java.lang.String getName()
          Returns the literal name of the enumerator.
 int getValue()
          Returns the literal integer value of the enumerator.
 java.lang.String toString()
          Returns the literal value of the enumerator, which is its string representation.
static AccessLevel valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static AccessLevel[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

PUBLIC

public static final AccessLevel PUBLIC
The 'PUBLIC' literal object.

This literal represents the Public access level for business objects.

See Also:
PUBLIC_VALUE

CONTROLLED

public static final AccessLevel CONTROLLED
The 'CONTROLLED' literal object.

This literal represents the Controlled access level for business objects.

See Also:
CONTROLLED_VALUE

RESTRICTED

public static final AccessLevel RESTRICTED
The 'RESTRICTED' literal object.

This literal represents the Restricted access level for business objects.

See Also:
RESTRICTED_VALUE

CONFIDENTIAL

public static final AccessLevel CONFIDENTIAL
The 'CONFIDENTIAL' literal object.

This literal represents the Confidential access level for business objects.

See Also:
CONFIDENTIAL_VALUE

PRIVATE

public static final AccessLevel PRIVATE
The 'PRIVATE' literal object.

This literal represents the Private access level for business objects.

See Also:
PRIVATE_VALUE
Field Detail

PUBLIC_VALUE

public static final int PUBLIC_VALUE
The 'PUBLIC' literal value.

See Also:
PUBLIC, Constant Field Values

CONTROLLED_VALUE

public static final int CONTROLLED_VALUE
The 'CONTROLLED' literal value.

See Also:
CONTROLLED, Constant Field Values

RESTRICTED_VALUE

public static final int RESTRICTED_VALUE
The 'RESTRICTED' literal value.

See Also:
RESTRICTED, Constant Field Values

CONFIDENTIAL_VALUE

public static final int CONFIDENTIAL_VALUE
The 'CONFIDENTIAL' literal value.

See Also:
CONFIDENTIAL, Constant Field Values

PRIVATE_VALUE

public static final int PRIVATE_VALUE
The 'PRIVATE' literal value.

See Also:
PRIVATE, Constant Field Values

VALUES

public static final java.util.List<AccessLevel> VALUES
A public read-only list of all the 'Access Level' enumerators.

Method Detail

values

public static AccessLevel[] 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 (AccessLevel c : AccessLevel.values())
    System.out.println(c);

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

valueOf

public static AccessLevel valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

get

public static AccessLevel get(java.lang.String literal)
Returns the 'Access Level' literal with the specified literal value.

Parameters:
literal - The enumerator literal as a string
Returns:
An AccessLevel object

getByName

public static AccessLevel getByName(java.lang.String name)
Returns the 'Access Level' literal with the specified name.

Parameters:
name - The literal name of the enumerator
Returns:
An AccessLevel object

get

public static AccessLevel get(int value)
Returns the 'Access Level' literal with the specified integer value.

Parameters:
value - The literal integer value of the enumerator
Returns:
An AccessLevel object

getValue

public int getValue()
Returns the literal integer value of the enumerator.

Returns:
An integer that represents the literal

getName

public java.lang.String getName()
Returns the literal name of the enumerator.

Returns:
A String that represents the literal name

getLiteral

public java.lang.String getLiteral()
Returns the string representation of the enumerator.

Returns:
A String that represents the enumerator

toString

public java.lang.String toString()
Returns the literal value of the enumerator, which is its string representation.

Overrides:
toString in class java.lang.Enum<AccessLevel>
Returns:
A String that represents the literal


© Copyright 2016 SAP SE or an SAP affiliate company. All rights reserved.