Package org.ametys.plugins.core.ui.user
Interface ProfileImageProvider
-
- All Known Implementing Classes:
DefaultProfileImageProvider
,SafeProfileImageProvider
public interface ProfileImageProvider
Component providing images that are used for user profiles
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
ProfileImageProvider.UserProfileImage
Basic structure holding necessary data representing an user profile image
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ProfileImageProvider.UserProfileImage
getImage(UserIdentity user, String imageSource, int size, int maxSize)
Get the avatar
-
-
-
Method Detail
-
getImage
ProfileImageProvider.UserProfileImage getImage(UserIdentity user, String imageSource, int size, int maxSize) throws ProcessingException
Get the avatar- Parameters:
user
- The userimageSource
- The image source. Can be null to get the default onesize
- The size in px. Can be 0.maxSize
- The maxSize in px. Can be 0.- Returns:
- The image
- Throws:
ProcessingException
- If an error occurred
-
-