Class User.UserImage

java.lang.Object
org.ametys.core.user.User.UserImage
Enclosing class:
User<T extends UserFactory>

public static class User.UserImage extends Object
Basic structure holding necessary data representing an user profile image
  • Constructor Details

    • UserImage

      public UserImage(InputStream inputstream, String filename, Long length, Long lastModified, String type)
      Constructor
      Parameters:
      inputstream - The image input stream
      filename - The file name or null if unknown
      length - The file length if known
      lastModified - The last modified date
      type - The type name of the source of the image to compute a cache key
  • Method Details

    • getType

      public String getType()
      Retrieve the type name of the source of the image to compute a cache key
      Returns:
      the type
    • getInputstream

      Retrieves the input stream
      Returns:
      the input stream
    • getFilename

      public String getFilename()
      Retrieves the filename
      Returns:
      the filename or null if not defined
    • getLength

      public Long getLength()
      Retrieves the length
      Returns:
      the length or null or -1 if unknown
    • getLastModified

      Retrieve the last modified date.
      Returns:
      The last modified date. Can be null if unknown.