Class ProfilePicture
- java.lang.Object
-
- edu.cnm.deepdive.albuquirky.model.entity.ProfilePicture
-
@Entity public class ProfilePicture extends Object
This is the Profile Picture entity, which represents the image stored in the database that is presented for the user on their profile page. It defines a creation timestamp, a filename, a file path, a file extension, and an ID for the userProfileit represents.
-
-
Constructor Summary
Constructors Constructor Description ProfilePicture()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetContentType()Gets the file extension for the profile picture.DategetCreated()Gets the creation timestamp for the profile picture.LonggetId()Gets the ID for the profile picture.StringgetName()The filename for the profile picture.StringgetPath()Gets the file path for the profile picture.ProfilegetUser()Gets the associatedProfilefor the profile picture.voidsetContentType(String contentType)Sets the file extension for the profile picture.voidsetCreated(Date created)Sets the creation timestamp for the profile picture.voidsetName(String name)Sets the profile picture's filename.voidsetPath(String path)Sets the file path for the profile picture.voidsetUser(Profile user)Sets the associatedProfilefor the profile picture.
-
-
-
Method Detail
-
getId
@NonNull public Long getId()
Gets the ID for the profile picture.- Returns:
- The ID.
-
getCreated
@NonNull public Date getCreated()
Gets the creation timestamp for the profile picture.- Returns:
- The profile picture creation timestamp.
-
setCreated
public void setCreated(@NonNull Date created)Sets the creation timestamp for the profile picture.- Parameters:
created- The updated timestamp.
-
getName
@NonNull public String getName()
The filename for the profile picture.- Returns:
- The profile picture's filename.
-
setName
public void setName(@NonNull String name)Sets the profile picture's filename.- Parameters:
name- The updated filename.
-
getPath
@NonNull public String getPath()
Gets the file path for the profile picture.- Returns:
- The current file path.
-
setPath
public void setPath(@NonNull String path)Sets the file path for the profile picture.- Parameters:
path- The updated file path.
-
getContentType
@NonNull public String getContentType()
Gets the file extension for the profile picture.- Returns:
- The current file extension.
-
setContentType
public void setContentType(@NonNull String contentType)Sets the file extension for the profile picture.- Parameters:
contentType- The updated file extension.
-
getUser
@NonNull public Profile getUser()
Gets the associatedProfilefor the profile picture.- Returns:
- The
Profileusing this profile picture.
-
-