Class UserProfileImageURNProvider

    • Constructor Detail

      • UserProfileImageURNProvider

        public UserProfileImageURNProvider()
    • Method Detail

      • getInstance

        public static UserProfileImageURNProvider getInstance()
        Gets the singleton instance.
        Returns:
        The IURNUserProfileProvider instance.
      • getProfileImage

        public RuntimeImageDefinition getProfileImage​(IUserProfileImageRequest request)
                                               throws java.io.IOException
        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:
        getProfileImage in interface IUserProfileImageURNProvider
        Parameters:
        request - The request.
        Returns:
        The image definition, or null if a profile image is not available.
        Throws:
        java.io.IOException - For file I/O errors.
        java.lang.IllegalStateException - If the request state is not valid, e.g. required settings are not specified.