Class UserDirectoryImageAccessor
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.plugins.userdirectory.userdataprovider.UserDirectoryImageAccessor
- All Implemented Interfaces:
UserImageAccessor
,LogEnabled
The user image accessor that retrieves the image of a ud user
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
The type of image returned by this type of accessor -
Constructor Summary
ConstructorsConstructorDescriptionConstructor of User directory image accessor with a file -
Method Summary
Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
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 file
-
-
Method Details
-
getImage
Description copied from interface:UserImageAccessor
Get the image- Specified by:
getImage
in interfaceUserImageAccessor
- Parameters:
size
- The size in px. Can be 0.maxSize
- The maxSize in px. Can be 0.- Returns:
- The UserImage
-