public class UserProfileServiceImpl extends DefaultComponent implements UserProfileService
UserProfileService
.UserProfileService
Modifier and Type | Field and Description |
---|---|
protected static Integer |
CACHE_CONCURRENCY_LEVEL |
protected static Integer |
CACHE_MAXIMUM_SIZE |
protected static Integer |
CACHE_TIMEOUT |
static String |
CONFIG_EP |
protected com.google.common.cache.Cache<String,String> |
profileUidCache |
lastModified
Constructor and Description |
---|
UserProfileServiceImpl() |
Modifier and Type | Method and Description |
---|---|
void |
applicationStarted(ComponentContext context)
Notify the component that Nuxeo Framework finished starting all Nuxeo bundles.
|
void |
clearCache()
Clears the user profile cache.
|
ImporterConfig |
getImporterConfig()
Get the user profile XMap descriptor for the importer config
|
DocumentModel |
getUserProfile(DocumentModel userModel,
CoreSession session)
Get a DocumentModel containing both user and user profile schemas
|
DocumentModel |
getUserProfileDocument(CoreSession session)
Get the current user profile.
|
DocumentModel |
getUserProfileDocument(String userName,
CoreSession session)
Get the profile of a specific user.
|
void |
registerContribution(Object contribution,
String extensionPoint,
ComponentInstance contributor) |
void |
unregisterContribution(Object contribution,
String extensionPoint,
ComponentInstance contributor) |
activate, deactivate, getAdapter, getApplicationStartedOrder, getLastModified, registerExtension, setLastModified, setModifiedNow, unregisterExtension
protected static final Integer CACHE_CONCURRENCY_LEVEL
protected static final Integer CACHE_TIMEOUT
protected static final Integer CACHE_MAXIMUM_SIZE
public static final String CONFIG_EP
protected final com.google.common.cache.Cache<String,String> profileUidCache
public UserProfileServiceImpl()
public DocumentModel getUserProfileDocument(CoreSession session)
UserProfileService
getUserProfileDocument
in interface UserProfileService
public DocumentModel getUserProfileDocument(String userName, CoreSession session)
UserProfileService
getUserProfileDocument
in interface UserProfileService
public DocumentModel getUserProfile(DocumentModel userModel, CoreSession session)
UserProfileService
getUserProfile
in interface UserProfileService
public void clearCache()
UserProfileService
clearCache
in interface UserProfileService
public ImporterConfig getImporterConfig()
UserProfileService
getImporterConfig
in interface UserProfileService
public void applicationStarted(ComponentContext context)
Component
applicationStarted
in interface Component
applicationStarted
in class DefaultComponent
public void registerContribution(Object contribution, String extensionPoint, ComponentInstance contributor)
registerContribution
in class DefaultComponent
public void unregisterContribution(Object contribution, String extensionPoint, ComponentInstance contributor)
unregisterContribution
in class DefaultComponent
Copyright © 2015 Nuxeo SA. All rights reserved.