Class DefaultImageUserDataProvider
java.lang.Object
org.ametys.core.user.dataprovider.DefaultImageUserDataProvider
- All Implemented Interfaces:
UserDataProvider,Prioritizable,Supporter<String>,Serviceable
A user data provider which returns the defaults image for a
User-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ProfileImageProviderThe Default profile image providerFields inherited from interface org.ametys.core.user.dataprovider.UserDataProvider
MAX_PRIORITY, MIN_PRIORITY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintGet the priority for the component.Get the value for a data and a uservoidservice(ServiceManager manager) booleanCheck if an element is supportedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.ametys.core.user.dataprovider.UserDataProvider
hasValue
-
Field Details
-
_imageProvider
The Default profile image provider
-
-
Constructor Details
-
DefaultImageUserDataProvider
public DefaultImageUserDataProvider()
-
-
Method Details
-
service
- Specified by:
servicein interfaceServiceable- Throws:
ServiceException
-
getPriority
Description copied from interface:PrioritizableGet the priority for the component. On components usingPrioritizableinterface, each implementation define the order. In most cases, less is the number, more prior is the component.- Specified by:
getPriorityin interfacePrioritizable- Returns:
- the priority
-
supports
Description copied from interface:SupporterCheck if an element is supported -
getValue
Description copied from interface:UserDataProviderGet the value for a data and a user- Specified by:
getValuein interfaceUserDataProvider- Parameters:
user- TheUserdataId- The id of the data wanted- Returns:
- The value of the data for the user, can be null
-