Package org.ametys.core.user
Class User.UserImage
java.lang.Object
org.ametys.core.user.User.UserImage
- Enclosing class:
User<T extends UserFactory>
Basic structure holding necessary data representing an user profile image
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionRetrieves the filenameRetrieves the input streamRetrieve the last modified date.Retrieves the lengthgetType()
Retrieve the type name of the source of the image to compute a cache key
-
Constructor Details
-
UserImage
public UserImage(InputStream inputstream, String filename, Long length, Long lastModified, String type) Constructor- Parameters:
inputstream
- The image input streamfilename
- The file name or null if unknownlength
- The file length if knownlastModified
- The last modified datetype
- The type name of the source of the image to compute a cache key
-
-
Method Details
-
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
Retrieves the filename- Returns:
- the filename or null if not defined
-
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.
-