LockLevel Class

public final class LockLevel
extends ExpandableStringEnum<LockLevel>

The level of the lock. Possible values are: NotSpecified, CanNotDelete, ReadOnly. CanNotDelete means authorized users are able to read and modify the resources, but not delete. ReadOnly means authorized users can only read from a resource, but they can't modify or delete it.

Field Summary

Modifier and Type Field and Description
static final LockLevel CAN_NOT_DELETE

Static value CanNotDelete for LockLevel.

static final LockLevel NOT_SPECIFIED

Static value NotSpecified for LockLevel.

static final LockLevel READ_ONLY

Static value ReadOnly for LockLevel.

Constructor Summary

Constructor Description
LockLevel()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of LockLevel value.

Method Summary

Modifier and Type Method and Description
static LockLevel fromString(String name)

Creates or finds a LockLevel from its string representation.

static Collection<LockLevel> values()

Gets known LockLevel values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

CAN_NOT_DELETE

public static final LockLevel CAN_NOT_DELETE

Static value CanNotDelete for LockLevel.

NOT_SPECIFIED

public static final LockLevel NOT_SPECIFIED

Static value NotSpecified for LockLevel.

READ_ONLY

public static final LockLevel READ_ONLY

Static value ReadOnly for LockLevel.

Constructor Details

LockLevel

@Deprecated
public LockLevel()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of LockLevel value.

Method Details

fromString

public static LockLevel fromString(String name)

Creates or finds a LockLevel from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding LockLevel.

values

public static Collection values()

Gets known LockLevel values.

Returns:

known LockLevel values.

Applies to