Class UserProfileImageURNProvider
java.lang.Object
com.iizix.server.user.UserProfileImageURNProvider
- All Implemented Interfaces:
IUserProfileImageURNProvider
The URN User Profile Image Provider singleton class.
A request resolves the picture of the user signed in to the calling thread's application session only (CC-FIX-URN-LOCKDOWN, ruling UR-1 of order 515, through UserProfileStringURNProvider.checkAccess(AuthenticatedUser, AuthenticatedUser, String)): a request that names another user is refused with that provider's one text. A request naming no user at all keeps answering the default picture, or null, as its createDefault flag says.
- Author:
- Christopher Mindus
Constructor Summary
ConstructorsMethod Summary
Modifier and TypeMethodDescriptionCreates an uninitialized profile image request.static UserProfileImageURNProviderGets the singleton instance.getProfileImage(IUserProfileImageRequest request) Gets the profile image for the user for the specified request.
Constructor Details
UserProfileImageURNProvider
public UserProfileImageURNProvider()
Method Details
getInstance
Gets the singleton instance.- Returns:
- The IURNUserProfileProvider instance.
createRequest
Creates an uninitialized profile image request.- Specified by:
createRequestin interfaceIUserProfileImageURNProvider- Returns:
- The uninitialized request.
getProfileImage
Gets the profile image for the user for the specified request. The image is created and cached in the requested size if not available.- Specified by:
getProfileImagein interfaceIUserProfileImageURNProvider- Parameters:
request- The request.- Returns:
- The image definition, or
nullif a profile image is not available. - Throws:
IOException- For file I/O errors.IllegalStateException- If the request state is not valid, e.g. required settings are not specified.