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, name| Constructor and Description |
|---|
UserProfileServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
clearCache()
Clears the user profile cache.
|
int |
getApplicationStartedOrder()
The component notification order for
Component.applicationStarted(org.nuxeo.runtime.model.ComponentContext). |
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) |
protected void |
scheduleImport() |
void |
start(ComponentContext context)
Start the component.
|
void |
unregisterContribution(Object contribution,
String extensionPoint,
ComponentInstance contributor) |
activate, deactivate, getAdapter, getDescriptor, getDescriptors, getLastModified, getRegistry, register, registerExtension, setLastModified, setModifiedNow, setName, stop, unregister, unregisterExtensionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitapplicationStartedprotected 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)
UserProfileServicegetUserProfileDocument in interface UserProfileServicepublic DocumentModel getUserProfileDocument(String userName, CoreSession session)
UserProfileServicegetUserProfileDocument in interface UserProfileServicepublic DocumentModel getUserProfile(DocumentModel userModel, CoreSession session)
UserProfileServicegetUserProfile in interface UserProfileServicepublic void clearCache()
UserProfileServiceclearCache in interface UserProfileServicepublic ImporterConfig getImporterConfig()
UserProfileServicegetImporterConfig in interface UserProfileServicepublic int getApplicationStartedOrder()
ComponentComponent.applicationStarted(org.nuxeo.runtime.model.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.
getApplicationStartedOrder in interface Componentpublic void start(ComponentContext context)
Componentstart in interface Componentstart in class DefaultComponentprotected void scheduleImport()
public void registerContribution(Object contribution, String extensionPoint, ComponentInstance contributor)
registerContribution in class DefaultComponentpublic void unregisterContribution(Object contribution, String extensionPoint, ComponentInstance contributor)
unregisterContribution in class DefaultComponentCopyright © 2019 Nuxeo. All rights reserved.