Partager via


PrincipalType Class

public final class PrincipalType
extends ExpandableStringEnum<PrincipalType>

Principal Type of the sever administrator.

Field Summary

Modifier and Type Field and Description
static final PrincipalType APPLICATION

Static value Application for PrincipalType.

static final PrincipalType GROUP

Static value Group for PrincipalType.

static final PrincipalType USER

Static value User for PrincipalType.

Constructor Summary

Constructor Description
PrincipalType()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of PrincipalType value.

Method Summary

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

Creates or finds a PrincipalType from its string representation.

static Collection<PrincipalType> values()

Gets known PrincipalType values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

APPLICATION

public static final PrincipalType APPLICATION

Static value Application for PrincipalType.

GROUP

public static final PrincipalType GROUP

Static value Group for PrincipalType.

USER

public static final PrincipalType USER

Static value User for PrincipalType.

Constructor Details

PrincipalType

@Deprecated
public PrincipalType()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of PrincipalType value.

Method Details

fromString

public static PrincipalType fromString(String name)

Creates or finds a PrincipalType from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding PrincipalType.

values

public static Collection values()

Gets known PrincipalType values.

Returns:

known PrincipalType values.

Applies to