Class 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 user Profile it represents.
    • Constructor Detail

      • ProfilePicture

        public ProfilePicture()
    • 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 associated Profile for the profile picture.
        Returns:
        The Profile using this profile picture.
      • setUser

        public void setUser​(@NonNull
                            Profile user)
        Sets the associated Profile for the profile picture.
        Parameters:
        user - The new Profile using this profile picture.