Class Avatar

java.lang.Object
org.minijax.dao.Avatar
All Implemented Interfaces:
java.io.Serializable

@Embeddable
public class Avatar
extends java.lang.Object
implements java.io.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 Summary

    Fields
    Modifier and Type Field Description
    static int IMAGE_TYPE_DEFAULT
    The image is the original generated default.
    static int IMAGE_TYPE_GOOGLE
    The image was pulled from Google Plus.
    static int IMAGE_TYPE_GRAVATAR
    The image was pulled from Gravatar.
    static int IMAGE_TYPE_MANUAL
    The image was manually uploaded by the user.
  • Constructor Summary

    Constructors
    Constructor Description
    Avatar()  
    Avatar​(java.lang.String imageUrl, java.lang.String thumbUrl)  
  • Method Summary

    Modifier and Type Method Description
    int getImageType()  
    java.lang.String getImageUrl()  
    java.lang.String getThumbUrl()  
    void setImageType​(int imageType)  
    void setImageUrl​(java.lang.String imageUrl)  
    void setThumbUrl​(java.lang.String thumbUrl)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • 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 Details

    • Avatar

      public Avatar()
    • Avatar

      public Avatar​(java.lang.String imageUrl, java.lang.String thumbUrl)
  • Method Details

    • getImageUrl

      public java.lang.String getImageUrl()
    • setImageUrl

      public void setImageUrl​(java.lang.String imageUrl)
    • getThumbUrl

      public java.lang.String getThumbUrl()
    • setThumbUrl

      public void setThumbUrl​(java.lang.String thumbUrl)
    • getImageType

      public int getImageType()
    • setImageType

      public void setImageType​(int imageType)