Interface UserProfileService
-
- All Known Implementing Classes:
UserProfileServiceImpl
public interface UserProfileServiceA service to manage user profiles- Since:
- 5.5
- Author:
- Quentin Lamerand
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclearCache()Clears the user profile cache.ImporterConfiggetImporterConfig()Get the user profile XMap descriptor for the importer configDocumentModelgetUserProfile(DocumentModel userModel, CoreSession session)Get a DocumentModel containing both user and user profile schemasDocumentModelgetUserProfileDocument(String userName, CoreSession session)Get the profile of a specific user.DocumentModelgetUserProfileDocument(CoreSession session)Get the current user profile.
-
-
-
Method Detail
-
getUserProfileDocument
DocumentModel getUserProfileDocument(CoreSession session)
Get the current user profile. It's stored in its user workspace.- Parameters:
session- the current CoreSession- Returns:
- the user profile DocumentModel
-
getUserProfileDocument
DocumentModel getUserProfileDocument(String userName, CoreSession session)
Get the profile of a specific user. It's stored in its user workspace.- Parameters:
userName- the user namesession- the current CoreSession- Returns:
- the user profile DocumentModel
-
getUserProfile
DocumentModel getUserProfile(DocumentModel userModel, CoreSession session)
Get a DocumentModel containing both user and user profile schemas- Parameters:
userModel- the user DocumentModelsession- the current CoreSession- Returns:
- a SimpleDocumentModel with the two schemas
-
clearCache
void clearCache()
Clears the user profile cache.
-
getImporterConfig
ImporterConfig getImporterConfig()
Get the user profile XMap descriptor for the importer config- Returns:
- an XMap ImportConfig descriptor
-
-