次の方法で共有


PermissionType Class

public final class PermissionType
extends ExpandableStringEnum<PermissionType>

The allowed permission.

Field Summary

Modifier and Type Field and Description
static final PermissionType PUBLISHER

Static value Publisher for PermissionType.

static final PermissionType SUBSCRIBER

Static value Subscriber for PermissionType.

Constructor Summary

Constructor Description
PermissionType()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of PermissionType value.

Method Summary

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

Creates or finds a PermissionType from its string representation.

static Collection<PermissionType> values()

Gets known PermissionType values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

PUBLISHER

public static final PermissionType PUBLISHER

Static value Publisher for PermissionType.

SUBSCRIBER

public static final PermissionType SUBSCRIBER

Static value Subscriber for PermissionType.

Constructor Details

PermissionType

@Deprecated
public PermissionType()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of PermissionType value.

Method Details

fromString

public static PermissionType fromString(String name)

Creates or finds a PermissionType from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding PermissionType.

values

public static Collection<PermissionType> values()

Gets known PermissionType values.

Returns:

known PermissionType values.

Applies to