Class UserProfileServiceImpl
java.lang.Object
org.nuxeo.runtime.model.DefaultComponent
org.nuxeo.ecm.user.center.profile.UserProfileServiceImpl
- All Implemented Interfaces:
UserProfileService,Adaptable,Component,Extensible,TimestampedService
Implementation of
UserProfileService.- Since:
- 5.5
- Author:
- Quentin Lamerand
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Integerprotected static final Integerprotected static final Integerstatic final StringFields inherited from class org.nuxeo.runtime.model.DefaultComponent
lastModified, name -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidClears the user profile cache.intThe component notification order forComponent.start(ComponentContext).Get the user profile XMap descriptor for the importer configgetUserProfile(DocumentModel userModel, CoreSession session) Get a DocumentModel containing both user and user profile schemasgetUserProfileDocument(String userName, CoreSession session) Get the profile of a specific user.getUserProfileDocument(CoreSession session) Get the current user profile.voidregisterContribution(Object contribution, String extensionPoint, ComponentInstance contributor) protected voidvoidstart(ComponentContext context) Start the component.voidunregisterContribution(Object contribution, String extensionPoint, ComponentInstance contributor) Methods inherited from class org.nuxeo.runtime.model.DefaultComponent
activate, addRuntimeMessage, addRuntimeMessage, deactivate, getAdapter, getDescriptor, getDescriptors, getLastModified, getRegistry, register, registerExtension, setLastModified, setModifiedNow, setName, stop, unregister, unregisterExtension
-
Field Details
-
CACHE_CONCURRENCY_LEVEL
-
CACHE_TIMEOUT
-
CACHE_MAXIMUM_SIZE
-
CONFIG_EP
- See Also:
-
profileUidCache
-
-
Constructor Details
-
UserProfileServiceImpl
public UserProfileServiceImpl()
-
-
Method Details
-
getUserProfileDocument
Description copied from interface:UserProfileServiceGet the current user profile. It's stored in its user workspace.- Specified by:
getUserProfileDocumentin interfaceUserProfileService- Parameters:
session- the current CoreSession- Returns:
- the user profile DocumentModel
-
getUserProfileDocument
Description copied from interface:UserProfileServiceGet the profile of a specific user. It's stored in its user workspace.- Specified by:
getUserProfileDocumentin interfaceUserProfileService- Parameters:
userName- the user namesession- the current CoreSession- Returns:
- the user profile DocumentModel
-
getUserProfile
Description copied from interface:UserProfileServiceGet a DocumentModel containing both user and user profile schemas- Specified by:
getUserProfilein interfaceUserProfileService- Parameters:
userModel- the user DocumentModelsession- the current CoreSession- Returns:
- a SimpleDocumentModel with the two schemas
-
clearCache
public void clearCache()Description copied from interface:UserProfileServiceClears the user profile cache.- Specified by:
clearCachein interfaceUserProfileService
-
getImporterConfig
Description copied from interface:UserProfileServiceGet the user profile XMap descriptor for the importer config- Specified by:
getImporterConfigin interfaceUserProfileService- Returns:
- an XMap ImportConfig descriptor
-
getApplicationStartedOrder
public int getApplicationStartedOrder()Description copied from interface:ComponentThe component notification order forComponent.start(ComponentContext).Components are notified in increasing order. Order 1000 is the default order for components that don't care. Order 100 is the repository initialization.
- Specified by:
getApplicationStartedOrderin interfaceComponent- Returns:
- the order, 1000 by default
-
start
Description copied from interface:ComponentStart the component. This method is called after all the components were resolved and activated- Specified by:
startin interfaceComponent- Overrides:
startin classDefaultComponent
-
scheduleImport
protected void scheduleImport() -
registerContribution
public void registerContribution(Object contribution, String extensionPoint, ComponentInstance contributor) - Overrides:
registerContributionin classDefaultComponent
-
unregisterContribution
public void unregisterContribution(Object contribution, String extensionPoint, ComponentInstance contributor) - Overrides:
unregisterContributionin classDefaultComponent
-