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

Application.

static final PrincipalType GROUP

Group.

static final PrincipalType USER

User.

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

Application.

GROUP

public static final PrincipalType GROUP

Group.

USER

public static final PrincipalType USER

User.

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<PrincipalType> values()

Gets known PrincipalType values.

Returns:

known PrincipalType values.

Applies to