Class UserDataProviderExtensionPoint
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.runtime.plugin.component.AbstractThreadSafeComponentExtensionPoint<UserDataProvider>
org.ametys.runtime.plugin.component.AbstractThreadSafeComponentPrioritizableExtensionPoint<UserDataProvider>
org.ametys.runtime.plugin.component.AbstractThreadSafeComponentPrioritizableSupporterExtensionPoint<UserDataProvider,String>
org.ametys.core.user.dataprovider.UserDataProviderExtensionPoint
- All Implemented Interfaces:
LogEnabled
,ExtensionPoint<UserDataProvider>
,Disposable
,Initializable
,Component
,Contextualizable
,Serviceable
,ThreadSafe
public class UserDataProviderExtensionPoint
extends AbstractThreadSafeComponentPrioritizableSupporterExtensionPoint<UserDataProvider,String>
Extension point for retrieving user data
-
Field Summary
FieldsFields inherited from class org.ametys.runtime.plugin.component.AbstractThreadSafeComponentExtensionPoint
_cocoonManager, _context, _manager
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetProviderFor
(User user, String dataId) Get the provider for the data and the usergetValue
(UserIdentity userIdentity, String dataId) Get the value of the data for the userGet the value of the data for the uservoid
service
(ServiceManager manager) Methods inherited from class org.ametys.runtime.plugin.component.AbstractThreadSafeComponentPrioritizableSupporterExtensionPoint
_getSupportingExtensions, getFirstSupportingExtension, getSupportingExtensions
Methods inherited from class org.ametys.runtime.plugin.component.AbstractThreadSafeComponentPrioritizableExtensionPoint
getComparator, getExtensionsIds, initializeExtensions, sortPriorityAscending
Methods inherited from class org.ametys.runtime.plugin.component.AbstractThreadSafeComponentExtensionPoint
addComponent, addExtension, contextualize, dispose, getExtension, hasExtension, initialize
Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
Field Details
-
ROLE
The role
-
-
Constructor Details
-
UserDataProviderExtensionPoint
public UserDataProviderExtensionPoint()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Overrides:
service
in classAbstractThreadSafeComponentExtensionPoint<UserDataProvider>
- Throws:
ServiceException
-
getValue
Get the value of the data for the user- Parameters:
user
- The user, can be nulldataId
- The id of the wanted data- Returns:
- The value of the data or null if there is no value or if the user given is null
-
getValue
Get the value of the data for the user- Parameters:
userIdentity
- The user identity, can be nulldataId
- The id of the wanted data- Returns:
- The value of the data or null if there is no value or if the user given is null
-
getProviderFor
Get the provider for the data and the user- Parameters:
user
- The userdataId
- The data wanted- Returns:
- The
UserDataProvider
that is going to provide the data
-