Package org.ametys.plugins.core.ui.user
Enum DefaultProfileImageProvider.ProfileImageSource
- java.lang.Object
-
- java.lang.Enum<DefaultProfileImageProvider.ProfileImageSource>
-
- org.ametys.plugins.core.ui.user.DefaultProfileImageProvider.ProfileImageSource
-
- All Implemented Interfaces:
Serializable
,Comparable<DefaultProfileImageProvider.ProfileImageSource>
- Enclosing class:
- DefaultProfileImageProvider
public static enum DefaultProfileImageProvider.ProfileImageSource extends Enum<DefaultProfileImageProvider.ProfileImageSource>
Profile image source enum
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BASE64
Image stored in base64DEFAULT
The default imageGRAVATAR
GravatarINITIALS
Image with the initialLOCALIMAGE
Local imagesUPLOAD
Uploaded imageUSERPREF
To be extracted from userprefUSERSMANAGER
Provided by the users manager
-
Constructor Summary
Constructors Modifier Constructor Description private
ProfileImageSource()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DefaultProfileImageProvider.ProfileImageSource
valueOf(String name)
Returns the enum constant of this type with the specified name.static DefaultProfileImageProvider.ProfileImageSource[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
LOCALIMAGE
public static final DefaultProfileImageProvider.ProfileImageSource LOCALIMAGE
Local images
-
GRAVATAR
public static final DefaultProfileImageProvider.ProfileImageSource GRAVATAR
Gravatar
-
USERSMANAGER
public static final DefaultProfileImageProvider.ProfileImageSource USERSMANAGER
Provided by the users manager
-
INITIALS
public static final DefaultProfileImageProvider.ProfileImageSource INITIALS
Image with the initial
-
UPLOAD
public static final DefaultProfileImageProvider.ProfileImageSource UPLOAD
Uploaded image
-
BASE64
public static final DefaultProfileImageProvider.ProfileImageSource BASE64
Image stored in base64
-
USERPREF
public static final DefaultProfileImageProvider.ProfileImageSource USERPREF
To be extracted from userpref
-
DEFAULT
public static final DefaultProfileImageProvider.ProfileImageSource DEFAULT
The default image
-
-
Constructor Detail
-
ProfileImageSource
private ProfileImageSource()
-
-
Method Detail
-
values
public static DefaultProfileImageProvider.ProfileImageSource[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (DefaultProfileImageProvider.ProfileImageSource c : DefaultProfileImageProvider.ProfileImageSource.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DefaultProfileImageProvider.ProfileImageSource valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-