Class Avatar

  • All Implemented Interfaces:
    Serializable

    @Embeddable
    public class Avatar
    extends Object
    implements Serializable
    The Avatar class represents an avatar or profile picture for an entity. Entities that have an Avatar should implement the AvatarEntity interface. The avatar fields are intended to be "embedded" with the parent entity, such that each of these columns are added to the entity's database table.
    See Also:
    Serialized Form
    • Field Detail

      • IMAGE_TYPE_DEFAULT

        public static final int IMAGE_TYPE_DEFAULT
        The image is the original generated default.
        See Also:
        Constant Field Values
      • IMAGE_TYPE_MANUAL

        public static final int IMAGE_TYPE_MANUAL
        The image was manually uploaded by the user.
        See Also:
        Constant Field Values
      • IMAGE_TYPE_GRAVATAR

        public static final int IMAGE_TYPE_GRAVATAR
        The image was pulled from Gravatar.
        See Also:
        Constant Field Values
      • IMAGE_TYPE_GOOGLE

        public static final int IMAGE_TYPE_GOOGLE
        The image was pulled from Google Plus.
        See Also:
        Constant Field Values
    • Constructor Detail

      • Avatar

        public Avatar()
      • Avatar

        public Avatar​(String imageUrl,
                      String thumbUrl)
    • Method Detail

      • getImageUrl

        public String getImageUrl()
      • setImageUrl

        public void setImageUrl​(String imageUrl)
      • getThumbUrl

        public String getThumbUrl()
      • setThumbUrl

        public void setThumbUrl​(String thumbUrl)
      • getImageType

        public int getImageType()
      • setImageType

        public void setImageType​(int imageType)