Enum NameSearchField
- Object
-
- Enum<NameSearchField>
-
- NameSearchField
-
- All Implemented Interfaces:
Serializable
,Comparable<NameSearchField>
public enum NameSearchField extends Enum<NameSearchField>
User fields that can be searched when finding users by name.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description EMAIL
Look for occurrences of the search substring in the user's e-mail address.FIRSTNAME
Look for occurrences of the search substring in the user's first name.FIRSTNAME_LASTNAME
Look for occurrences of the search substring in the concatenation of the user's first name and last name.LASTNAME
Look for occurrences of the search substring in the user's last name.LASTNAME_FIRSTNAME
Look for occurrences of the search substring in the concatenation of the user's last name and first name.USERNAME
Look for occurrences of the search substring in the user's username.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getSortColumnName()
static NameSearchField
valueOf(String name)
Returns the enum constant of this type with the specified name.static NameSearchField[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
USERNAME
public static final NameSearchField USERNAME
Look for occurrences of the search substring in the user's username.
-
FIRSTNAME
public static final NameSearchField FIRSTNAME
Look for occurrences of the search substring in the user's first name.
-
LASTNAME
public static final NameSearchField LASTNAME
Look for occurrences of the search substring in the user's last name.
-
LASTNAME_FIRSTNAME
public static final NameSearchField LASTNAME_FIRSTNAME
Look for occurrences of the search substring in the concatenation of the user's last name and first name.
-
FIRSTNAME_LASTNAME
public static final NameSearchField FIRSTNAME_LASTNAME
Look for occurrences of the search substring in the concatenation of the user's first name and last name.
-
EMAIL
public static final NameSearchField EMAIL
Look for occurrences of the search substring in the user's e-mail address.
-
-
Method Detail
-
values
public static NameSearchField[] 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 (NameSearchField c : NameSearchField.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static NameSearchField valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getSortColumnName
public String getSortColumnName()
-
-