public enum BasicProfileField extends java.lang.Enum<BasicProfileField> implements ProfileField
| Type | Property and Description |
|---|---|
Property<java.lang.Boolean,?> |
hide
Returns the property which can be used to hide the field
|
| Enum Constant and Description |
|---|
ACCOUNT_NUMBER |
ADDRESS |
EMAIL |
FULL_NAME |
IMAGE |
LOGIN_NAME |
PHONE |
PROPERTY_NAME| Modifier and Type | Method and Description |
|---|---|
boolean |
allowManagePrivacy()
Returns whether this field allows users to manage privacy
|
java.lang.String |
getAlias()
Returns the first alias
|
java.util.Set<java.lang.String> |
getAliases() |
static BasicProfileField |
getByAlias(java.lang.String alias)
Returns a basic profile field by alias, or null if no match
|
Property<java.lang.Boolean,?> |
hideProperty()
Returns the property which can be used to hide the field
|
boolean |
isAllowedForOperator()
Returns whether this field is allowed for operators
|
boolean |
isSimple()
|
Property<java.lang.String,?> |
property()
Returns the property for simple profile fields, or null if not a simple profile field
|
boolean |
readOnly()
Returns whether this field is always read only (i.e., never typed by the user)
|
static java.util.Set<BasicProfileField> |
simple()
Returns the simple profile fields.
|
static BasicProfileField |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static BasicProfileField[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BasicProfileField FULL_NAME
public static final BasicProfileField LOGIN_NAME
public static final BasicProfileField EMAIL
public static final BasicProfileField PHONE
public static final BasicProfileField ADDRESS
public static final BasicProfileField ACCOUNT_NUMBER
public static final BasicProfileField IMAGE
public Property<java.lang.Boolean,?> hideProperty
public static BasicProfileField[] values()
for (BasicProfileField c : BasicProfileField.values()) System.out.println(c);
public static BasicProfileField valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic static BasicProfileField getByAlias(java.lang.String alias)
public static java.util.Set<BasicProfileField> simple()
isSimple()public boolean allowManagePrivacy()
public java.lang.String getAlias()
public java.util.Set<java.lang.String> getAliases()
public Property<java.lang.Boolean,?> hideProperty()
public boolean isAllowedForOperator()
public boolean isSimple()
LOGIN_NAME, FULL_NAME and
EMAIL.
All simple profile fields (and only them) have non-null property()public Property<java.lang.String,?> property()
public boolean readOnly()