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
Modifier and TypeInterfaceDescriptionstatic class
Basic structure holding necessary data representing an user profile image -
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetImage
(UserIdentity user, String imageSource, int size, int maxSize) Get the avatar
-
Field Details
-
ROLE
Avalon role
-
-
Method Details
-
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
-