Enum BasicProfileField

    • Method Detail

      • values

        public static BasicProfileField[] 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 (BasicProfileField c : BasicProfileField.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static BasicProfileField 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 name
        NullPointerException - if the argument is null
      • getByAlias

        public static BasicProfileField getByAlias​(String alias)
        Returns a basic profile field by alias, or null if no match
      • allowManagePrivacy

        public boolean allowManagePrivacy()
        Returns whether this field allows users to manage privacy
      • canHide

        public boolean canHide()
        Returns whether this field can be hidden for other users
      • getAlias

        public String getAlias()
        Returns the first alias
      • getVariableKey

        public MessageKey getVariableKey()
      • getVariableName

        public String getVariableName()
      • hideProperty

        public Property<Boolean,​?> hideProperty()
        Returns the property which can be used to hide the field
      • isAllowedForOperator

        public boolean isAllowedForOperator()
        Returns whether this field is allowed for operators
      • isSimple

        public boolean isSimple()
        Returns true is this basic profile field is a simple one, that is, LOGIN_NAME, FULL_NAME and EMAIL. All simple profile fields (and only them) have non-null property()
      • property

        public Property<String,​?> property()
        Returns the property for simple profile fields, or null if not a simple profile field
      • readOnly

        public boolean readOnly()
        Returns whether this field is always read only (i.e., never typed by the user)