Class UserDirectoryImageAccessor
java.lang.Object
org.ametys.plugins.userdirectory.userdataprovider.UserDirectoryImageAccessor
- All Implemented Interfaces:
UserImageAccessor
The user image accessor that retrieves the image of a ud user
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe type of image returned by this type of accessor -
Constructor Summary
ConstructorsConstructorDescriptionUserDirectoryImageAccessor(File file, org.slf4j.Logger logger) Constructor of User directory image accessor with a file -
Method Summary
-
Field Details
-
USER_DIRECTORY_TYPE
The type of image returned by this type of accessor- See Also:
-
-
Constructor Details
-
UserDirectoryImageAccessor
Constructor of User directory image accessor with a file- Parameters:
file- The filelogger- The logger
-
-
Method Details
-
getImage
Description copied from interface:UserImageAccessorGet the image- Specified by:
getImagein interfaceUserImageAccessor- Parameters:
size- The size in px. Can be 0.maxSize- The maxSize in px. Can be 0.- Returns:
- The UserImage
-