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
Modifier and TypeFieldDescriptionprotected static final Integer
protected static final Integer
protected static final Integer
static final String
Fields inherited from class org.nuxeo.runtime.model.DefaultComponent
lastModified, name
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Clears the user profile cache.int
The 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.void
registerContribution
(Object contribution, String extensionPoint, ComponentInstance contributor) protected void
void
start
(ComponentContext context) Start the component.void
unregisterContribution
(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:UserProfileService
Get the current user profile. It's stored in its user workspace.- Specified by:
getUserProfileDocument
in interfaceUserProfileService
- Parameters:
session
- the current CoreSession- Returns:
- the user profile DocumentModel
-
getUserProfileDocument
Description copied from interface:UserProfileService
Get the profile of a specific user. It's stored in its user workspace.- Specified by:
getUserProfileDocument
in interfaceUserProfileService
- Parameters:
userName
- the user namesession
- the current CoreSession- Returns:
- the user profile DocumentModel
-
getUserProfile
Description copied from interface:UserProfileService
Get a DocumentModel containing both user and user profile schemas- Specified by:
getUserProfile
in interfaceUserProfileService
- Parameters:
userModel
- the user DocumentModelsession
- the current CoreSession- Returns:
- a SimpleDocumentModel with the two schemas
-
clearCache
public void clearCache()Description copied from interface:UserProfileService
Clears the user profile cache.- Specified by:
clearCache
in interfaceUserProfileService
-
getImporterConfig
Description copied from interface:UserProfileService
Get the user profile XMap descriptor for the importer config- Specified by:
getImporterConfig
in interfaceUserProfileService
- Returns:
- an XMap ImportConfig descriptor
-
getApplicationStartedOrder
public int getApplicationStartedOrder()Description copied from interface:Component
The 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:
getApplicationStartedOrder
in interfaceComponent
- Returns:
- the order, 1000 by default
-
start
Description copied from interface:Component
Start the component. This method is called after all the components were resolved and activated- Specified by:
start
in interfaceComponent
- Overrides:
start
in classDefaultComponent
-
scheduleImport
protected void scheduleImport() -
registerContribution
public void registerContribution(Object contribution, String extensionPoint, ComponentInstance contributor) - Overrides:
registerContribution
in classDefaultComponent
-
unregisterContribution
public void unregisterContribution(Object contribution, String extensionPoint, ComponentInstance contributor) - Overrides:
unregisterContribution
in classDefaultComponent
-