public interface WGPersonalisationDatabaseCore extends WGDatabaseCore
WGDatabaseCore
implementations that also provide storage of user profiles for personalisation.
WGDatabase wraps implementations of this interface and uses them to communicate with WGA personalisation databases for user profile stores.
WGDatabaseCore implementations should be "thread-safe", so they should expect that they will be concurrently used by multiple threads.Modifier and Type | Method and Description |
---|---|
WGDocumentCore |
createUserProfile(java.lang.String name,
int type)
Called to create a new user profile.
|
java.util.Iterator<java.lang.String> |
getAllUserProfileNames()
Returns the names of all user profiles stored inthe database
|
WGDocumentCore |
getUserProfile(java.lang.String name)
Retrieves a user profile for the given name
|
java.util.List<java.lang.String> |
queryUserProfileNames(java.lang.String type,
java.lang.String query,
java.util.Map params)
Queries a user profile database for stored profiles, based on their data.
|
beginTransaction, beginUpdate, callBackendService, clearSessionCache, close, closeSession, commitTransaction, convertFileNameForAttaching, createContent, createCopy, createDesignDocument, createStructEntry, fastAccess, getACL, getAllContent, getAllContentKeys, getChildEntries, getContentByKey, getContentByName, getContentCount, getContentStorePatchLevel, getContentStoreVersion, getDedicatedWorkflowEngine, getDesignObject, getDesignObjects, getDummyContent, getExtensionData, getExtensionDataNames, getIncomingRelations, getNativeObject, getParentEntry, getRevision, getRevisionDate, getRoles, getRootEntries, getServerName, getStructEntryByKey, getStructEntryByName, getTitle, getTypeName, getUpdateLogs, hasFeature, isBackendServiceSupported, isContentTypeUsed, isLanguageUsed, isMemberOfUserList, moveStructEntry, open, openSession, parseStructKey, query, refresh, removeExtensionData, resultIsFalse, resultIsTrue, rollbackTransaction, setCurrentSession, writeExtensionData
WGDocumentCore getUserProfile(java.lang.String name) throws WGAPIException
name
- name of the requested user profileWGAPIException
WGDocumentCore createUserProfile(java.lang.String name, int type) throws WGAPIException
name
- The name, that the caller wants for the new profile. If null, the implementation should create a name.type
- The type, that the caller wants to assign the profile. Possible values chosen by personalisation implementationWGAPIException
java.util.List<java.lang.String> queryUserProfileNames(java.lang.String type, java.lang.String query, java.util.Map params) throws WGAPIException
type
- Type of query. WGAPI implementations may define different profile query types.query
- Query to use for searching user profilesparams
- Parameters for the query.WGQueryException
WGAPIException
java.util.Iterator<java.lang.String> getAllUserProfileNames() throws WGAPIException
WGAPIException