java.lang.Object
java.lang.Enum<Person.Field>
org.wso2.carbon.registry.social.api.people.userprofile.Person.Field
All Implemented Interfaces:
Serializable, Comparable<Person.Field>, java.lang.constant.Constable
Enclosing interface:
Person

public static enum Person.Field extends Enum<Person.Field>
The fields that represent the person object in json form.
  • Enum Constant Details

    • ABOUT_ME

      public static final Person.Field ABOUT_ME
      the json field for aboutMe.
    • ACCOUNTS

      public static final Person.Field ACCOUNTS
      the json field for accounts.
    • ACTIVITIES

      public static final Person.Field ACTIVITIES
      the json field for activities.
    • ADDRESSES

      public static final Person.Field ADDRESSES
      the json field for addresses.
    • AGE

      public static final Person.Field AGE
      the json field for age.
    • APP_DATA

      public static final Person.Field APP_DATA
      the json field for appData.
    • BODY_TYPE

      public static final Person.Field BODY_TYPE
      the json field for bodyType.
    • BOOKS

      public static final Person.Field BOOKS
      the json field for books.
    • CARS

      public static final Person.Field CARS
      the json field for cars.
    • CHILDREN

      public static final Person.Field CHILDREN
      the json field for children.
    • CURRENT_LOCATION

      public static final Person.Field CURRENT_LOCATION
      the json field for currentLocation.
    • BIRTHDAY

      public static final Person.Field BIRTHDAY
      the json field for birthday.
    • DISPLAY_NAME

      public static final Person.Field DISPLAY_NAME
      the json field for display name.
    • DRINKER

      public static final Person.Field DRINKER
      the json field for drinker.
    • EMAILS

      public static final Person.Field EMAILS
      the json field for emails.
    • ETHNICITY

      public static final Person.Field ETHNICITY
      the json field for ethnicity.
    • FASHION

      public static final Person.Field FASHION
      the json field for fashion.
    • FOOD

      public static final Person.Field FOOD
      the json field for food.
    • GENDER

      public static final Person.Field GENDER
      the json field for gender.
    • HAPPIEST_WHEN

      public static final Person.Field HAPPIEST_WHEN
      the json field for happiestWhen.
    • HAS_APP

      public static final Person.Field HAS_APP
      the json field for hasApp.
    • HEROES

      public static final Person.Field HEROES
      the json field for heroes.
    • HUMOR

      public static final Person.Field HUMOR
      the json field for humor.
    • ID

      public static final Person.Field ID
      the json field for id.
    • IMS

      public static final Person.Field IMS
      the json field for IM accounts.
    • INTERESTS

      public static final Person.Field INTERESTS
      the json field for interests.
    • JOB_INTERESTS

      public static final Person.Field JOB_INTERESTS
      the json field for jobInterests.
    • LANGUAGES_SPOKEN

      public static final Person.Field LANGUAGES_SPOKEN
      the json field for languagesSpoken.
    • LAST_UPDATED

      public static final Person.Field LAST_UPDATED
      the json field for updated.
    • LIVING_ARRANGEMENT

      public static final Person.Field LIVING_ARRANGEMENT
      the json field for livingArrangement.
    • LOOKING_FOR

      public static final Person.Field LOOKING_FOR
      the json field for lookingFor.
    • MOVIES

      public static final Person.Field MOVIES
      the json field for movies.
    • MUSIC

      public static final Person.Field MUSIC
      the json field for music.
    • NAME

      public static final Person.Field NAME
      the json field for name.
    • NETWORKPRESENCE

      public static final Person.Field NETWORKPRESENCE
      the json field for networkPresence.
    • NICKNAME

      public static final Person.Field NICKNAME
      the json field for nickname.
    • ORGANIZATIONS

      public static final Person.Field ORGANIZATIONS
      the json field for organiztions.
    • PETS

      public static final Person.Field PETS
      the json field for pets.
    • PHONE_NUMBERS

      public static final Person.Field PHONE_NUMBERS
      the json field for phoneNumbers.
    • PHOTOS

      public static final Person.Field PHOTOS
      the json field for photos.
    • POLITICAL_VIEWS

      public static final Person.Field POLITICAL_VIEWS
      the json field for politicalViews.
    • PREFERRED_USERNAME

      public static final Person.Field PREFERRED_USERNAME
      the json field for preferredUsername
    • PROFILE_SONG

      public static final Person.Field PROFILE_SONG
      the json field for profileSong.
    • PROFILE_URL

      public static final Person.Field PROFILE_URL
      the json field for profileUrl.
    • PROFILE_VIDEO

      public static final Person.Field PROFILE_VIDEO
      the json field for profileVideo.
    • QUOTES

      public static final Person.Field QUOTES
      the json field for quotes.
    • RELATIONSHIP_STATUS

      public static final Person.Field RELATIONSHIP_STATUS
      the json field for relationshipStatus.
    • RELIGION

      public static final Person.Field RELIGION
      the json field for religion.
    • ROMANCE

      public static final Person.Field ROMANCE
      the json field for romance.
    • SCARED_OF

      public static final Person.Field SCARED_OF
      the json field for scaredOf.
    • SEXUAL_ORIENTATION

      public static final Person.Field SEXUAL_ORIENTATION
      the json field for sexualOrientation.
    • SMOKER

      public static final Person.Field SMOKER
      the json field for smoker.
    • SPORTS

      public static final Person.Field SPORTS
      the json field for sports.
    • STATUS

      public static final Person.Field STATUS
      the json field for status.
    • TAGS

      public static final Person.Field TAGS
      the json field for tags.
    • THUMBNAIL_URL

      public static final Person.Field THUMBNAIL_URL
      the json field for thumbnailUrl.
    • UTC_OFFSET

      public static final Person.Field UTC_OFFSET
      the json field for utcOffset.
    • TURN_OFFS

      public static final Person.Field TURN_OFFS
      the json field for turnOffs.
    • TURN_ONS

      public static final Person.Field TURN_ONS
      the json field for turnOns.
    • TV_SHOWS

      public static final Person.Field TV_SHOWS
      the json field for tvShows.
    • URLS

      public static final Person.Field URLS
      the json field for urls.
  • Field Details

    • ALL_FIELDS

      public static final Set<String> ALL_FIELDS
      The set of all fields.
    • DEFAULT_FIELDS

      public static final Set<String> DEFAULT_FIELDS
      The set of default fields returned fields.
  • Method Details

    • values

      public static Person.Field[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static Person.Field 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
    • toString

      public String toString()
      emit the field as a json element.
      Overrides:
      toString in class Enum<Person.Field>
      Returns:
      the field name
    • getField

      public static Person.Field getField(String jsonString)
    • fromUrlString

      public static Person.Field fromUrlString(String urlString)
      Converts from a url string (usually passed in the fields= parameter) into the corresponding field enum.
      Parameters:
      urlString - The string to translate.
      Returns:
      The corresponding person field.