Package org.minijax.dao
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 intIMAGE_TYPE_DEFAULTThe image is the original generated default.static intIMAGE_TYPE_GOOGLEThe image was pulled from Google Plus.static intIMAGE_TYPE_GRAVATARThe image was pulled from Gravatar.static intIMAGE_TYPE_MANUALThe image was manually uploaded by the user. -
Constructor Summary
-
Method Summary
Modifier and Type Method Description intgetImageType()java.lang.StringgetImageUrl()java.lang.StringgetThumbUrl()voidsetImageType(int imageType)voidsetImageUrl(java.lang.String imageUrl)voidsetThumbUrl(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_DEFAULTThe image is the original generated default.- See Also:
- Constant Field Values
-
IMAGE_TYPE_MANUAL
public static final int IMAGE_TYPE_MANUALThe image was manually uploaded by the user.- See Also:
- Constant Field Values
-
IMAGE_TYPE_GRAVATAR
public static final int IMAGE_TYPE_GRAVATARThe image was pulled from Gravatar.- See Also:
- Constant Field Values
-
IMAGE_TYPE_GOOGLE
public static final int IMAGE_TYPE_GOOGLEThe 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)
-