public class ProfileServiceImpl extends Object implements org.apache.unomi.api.services.ProfileService, org.osgi.framework.SynchronousBundleListener
| Constructor and Description |
|---|
ProfileServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
addAliasToProfile(String profileID,
String alias,
String clientID) |
void |
batchProfilesUpdate(org.apache.unomi.api.BatchUpdate update) |
void |
bundleChanged(org.osgi.framework.BundleEvent event) |
org.apache.unomi.api.Persona |
createPersona(String personaId) |
void |
delete(String profileId,
boolean persona) |
boolean |
deletePropertyType(String propertyId) |
String |
exportProfilesPropertiesToCsv(org.apache.unomi.api.query.Query query) |
org.apache.unomi.api.PartialList<org.apache.unomi.api.ProfileAlias> |
findProfileAliases(String profileId,
int offset,
int size,
String sortBy) |
org.apache.unomi.api.PartialList<org.apache.unomi.api.Profile> |
findProfilesByPropertyValue(String propertyName,
String propertyValue,
int offset,
int size,
String sortBy) |
org.apache.unomi.api.PartialList<org.apache.unomi.api.Session> |
findProfileSessions(String profileId) |
long |
getAllProfilesCount() |
Set<org.apache.unomi.api.PropertyType> |
getExistingProperties(String tag,
String itemType) |
Set<org.apache.unomi.api.PropertyType> |
getExistingProperties(String tag,
String itemType,
boolean systemTag) |
org.apache.unomi.api.PartialList<org.apache.unomi.api.Session> |
getPersonaSessions(String personaId,
int offset,
int size,
String sortBy) |
org.apache.unomi.api.PartialList<org.apache.unomi.api.Session> |
getProfileSessions(String profileId,
String query,
int offset,
int size,
String sortBy) |
org.apache.unomi.api.PropertyType |
getPropertyType(String id) |
Collection<org.apache.unomi.api.PropertyType> |
getPropertyTypeByMapping(String propertyName) |
Set<org.apache.unomi.api.PropertyType> |
getPropertyTypeBySystemTag(String tag) |
Set<org.apache.unomi.api.PropertyType> |
getPropertyTypeByTag(String tag) |
String |
getPropertyTypeMapping(String fromPropertyTypeId) |
Map<String,Collection<org.apache.unomi.api.PropertyType>> |
getTargetPropertyTypes() |
Collection<org.apache.unomi.api.PropertyType> |
getTargetPropertyTypes(String target) |
org.apache.unomi.api.Profile |
load(String profileId) |
org.apache.unomi.api.Persona |
loadPersona(String personaId) |
org.apache.unomi.api.PersonaWithSessions |
loadPersonaWithSessions(String personaId) |
org.apache.unomi.api.Session |
loadSession(String sessionId) |
org.apache.unomi.api.Session |
loadSession(String sessionId,
Date dateHint) |
boolean |
matchCondition(org.apache.unomi.api.conditions.Condition condition,
org.apache.unomi.api.Profile profile,
org.apache.unomi.api.Session session) |
org.apache.unomi.api.Profile |
mergeProfiles(org.apache.unomi.api.Profile masterProfile,
List<org.apache.unomi.api.Profile> profilesToMerge) |
void |
postConstruct() |
void |
preDestroy() |
void |
purgeEventItems(int existsNumberOfDays) |
void |
purgeMonthlyItems(int existsNumberOfMonths)
Deprecated.
|
void |
purgeProfiles(int inactiveNumberOfDays,
int existsNumberOfDays) |
void |
purgeSessionItems(int existsNumberOfDays) |
void |
refresh() |
void |
reloadPropertyTypes(boolean refresh) |
org.apache.unomi.api.ProfileAlias |
removeAliasFromProfile(String profileID,
String alias,
String clientID) |
void |
removeProfileSessions(String profileId) |
org.apache.unomi.api.Profile |
save(org.apache.unomi.api.Profile profile) |
org.apache.unomi.api.Profile |
saveOrMerge(org.apache.unomi.api.Profile profile) |
org.apache.unomi.api.Persona |
savePersona(org.apache.unomi.api.Persona profile) |
org.apache.unomi.api.PersonaWithSessions |
savePersonaWithSessions(org.apache.unomi.api.PersonaWithSessions personaToSave) |
org.apache.unomi.api.Session |
saveSession(org.apache.unomi.api.Session session) |
<T extends org.apache.unomi.api.Profile> |
search(org.apache.unomi.api.query.Query query,
Class<T> clazz) |
org.apache.unomi.api.PartialList<org.apache.unomi.api.Session> |
searchSessions(org.apache.unomi.api.query.Query query) |
void |
setBundleContext(org.osgi.framework.BundleContext bundleContext) |
void |
setDefinitionsService(org.apache.unomi.api.services.DefinitionsService definitionsService) |
void |
setForceRefreshOnSave(boolean forceRefreshOnSave) |
void |
setPersistenceService(org.apache.unomi.persistence.spi.PersistenceService persistenceService) |
void |
setPropertiesRefreshInterval(long propertiesRefreshInterval) |
boolean |
setPropertyType(org.apache.unomi.api.PropertyType property) |
void |
setPropertyTypeTarget(URL predefinedPropertyTypeURL,
org.apache.unomi.api.PropertyType propertyType) |
void |
setPurgeEventExistTime(Integer purgeEventExistTime) |
void |
setPurgeProfileExistTime(Integer purgeProfileExistTime) |
void |
setPurgeProfileInactiveTime(Integer purgeProfileInactiveTime) |
void |
setPurgeProfileInterval(Integer purgeProfileInterval) |
void |
setPurgeSessionExistTime(Integer purgeSessionExistTime) |
void |
setPurgeSessionsAndEventsTime(Integer purgeSessionsAndEventsTime)
Deprecated.
|
void |
setSchedulerService(org.apache.unomi.api.services.SchedulerService schedulerService) |
void |
setSegmentService(org.apache.unomi.api.services.SegmentService segmentService) |
public void setBundleContext(org.osgi.framework.BundleContext bundleContext)
public void setPersistenceService(org.apache.unomi.persistence.spi.PersistenceService persistenceService)
public void setDefinitionsService(org.apache.unomi.api.services.DefinitionsService definitionsService)
public void setSchedulerService(org.apache.unomi.api.services.SchedulerService schedulerService)
public void setSegmentService(org.apache.unomi.api.services.SegmentService segmentService)
public void setForceRefreshOnSave(boolean forceRefreshOnSave)
public void setPropertiesRefreshInterval(long propertiesRefreshInterval)
public void postConstruct()
public void preDestroy()
public void setPurgeProfileExistTime(Integer purgeProfileExistTime)
public void setPurgeProfileInactiveTime(Integer purgeProfileInactiveTime)
@Deprecated public void setPurgeSessionsAndEventsTime(Integer purgeSessionsAndEventsTime)
public void setPurgeProfileInterval(Integer purgeProfileInterval)
public void setPurgeSessionExistTime(Integer purgeSessionExistTime)
public void setPurgeEventExistTime(Integer purgeEventExistTime)
public void reloadPropertyTypes(boolean refresh)
public void purgeProfiles(int inactiveNumberOfDays,
int existsNumberOfDays)
purgeProfiles in interface org.apache.unomi.api.services.ProfileServicepublic void purgeSessionItems(int existsNumberOfDays)
purgeSessionItems in interface org.apache.unomi.api.services.ProfileServicepublic void purgeEventItems(int existsNumberOfDays)
purgeEventItems in interface org.apache.unomi.api.services.ProfileService@Deprecated public void purgeMonthlyItems(int existsNumberOfMonths)
purgeMonthlyItems in interface org.apache.unomi.api.services.ProfileServicepublic long getAllProfilesCount()
getAllProfilesCount in interface org.apache.unomi.api.services.ProfileServicepublic <T extends org.apache.unomi.api.Profile> org.apache.unomi.api.PartialList<T> search(org.apache.unomi.api.query.Query query,
Class<T> clazz)
search in interface org.apache.unomi.api.services.ProfileServicepublic org.apache.unomi.api.PartialList<org.apache.unomi.api.Session> searchSessions(org.apache.unomi.api.query.Query query)
searchSessions in interface org.apache.unomi.api.services.ProfileServicepublic boolean setPropertyType(org.apache.unomi.api.PropertyType property)
setPropertyType in interface org.apache.unomi.api.services.ProfileServicepublic boolean deletePropertyType(String propertyId)
deletePropertyType in interface org.apache.unomi.api.services.ProfileServicepublic Set<org.apache.unomi.api.PropertyType> getExistingProperties(String tag, String itemType)
getExistingProperties in interface org.apache.unomi.api.services.ProfileServicepublic Set<org.apache.unomi.api.PropertyType> getExistingProperties(String tag, String itemType, boolean systemTag)
getExistingProperties in interface org.apache.unomi.api.services.ProfileServicepublic String exportProfilesPropertiesToCsv(org.apache.unomi.api.query.Query query)
exportProfilesPropertiesToCsv in interface org.apache.unomi.api.services.ProfileServicepublic org.apache.unomi.api.PartialList<org.apache.unomi.api.Profile> findProfilesByPropertyValue(String propertyName, String propertyValue, int offset, int size, String sortBy)
findProfilesByPropertyValue in interface org.apache.unomi.api.services.ProfileServicepublic org.apache.unomi.api.Profile load(String profileId)
load in interface org.apache.unomi.api.services.ProfileServicepublic org.apache.unomi.api.Profile save(org.apache.unomi.api.Profile profile)
save in interface org.apache.unomi.api.services.ProfileServicepublic void addAliasToProfile(String profileID, String alias, String clientID)
addAliasToProfile in interface org.apache.unomi.api.services.ProfileServicepublic org.apache.unomi.api.ProfileAlias removeAliasFromProfile(String profileID, String alias, String clientID)
removeAliasFromProfile in interface org.apache.unomi.api.services.ProfileServicepublic org.apache.unomi.api.PartialList<org.apache.unomi.api.ProfileAlias> findProfileAliases(String profileId, int offset, int size, String sortBy)
findProfileAliases in interface org.apache.unomi.api.services.ProfileServicepublic org.apache.unomi.api.Profile saveOrMerge(org.apache.unomi.api.Profile profile)
saveOrMerge in interface org.apache.unomi.api.services.ProfileServicepublic org.apache.unomi.api.Persona savePersona(org.apache.unomi.api.Persona profile)
savePersona in interface org.apache.unomi.api.services.ProfileServicepublic void delete(String profileId, boolean persona)
delete in interface org.apache.unomi.api.services.ProfileServicepublic org.apache.unomi.api.Profile mergeProfiles(org.apache.unomi.api.Profile masterProfile,
List<org.apache.unomi.api.Profile> profilesToMerge)
mergeProfiles in interface org.apache.unomi.api.services.ProfileServicepublic org.apache.unomi.api.PartialList<org.apache.unomi.api.Session> getProfileSessions(String profileId, String query, int offset, int size, String sortBy)
getProfileSessions in interface org.apache.unomi.api.services.ProfileServicepublic String getPropertyTypeMapping(String fromPropertyTypeId)
getPropertyTypeMapping in interface org.apache.unomi.api.services.ProfileServicepublic org.apache.unomi.api.Session loadSession(String sessionId, Date dateHint)
loadSession in interface org.apache.unomi.api.services.ProfileServicepublic org.apache.unomi.api.Session loadSession(String sessionId)
loadSession in interface org.apache.unomi.api.services.ProfileServicepublic org.apache.unomi.api.Session saveSession(org.apache.unomi.api.Session session)
saveSession in interface org.apache.unomi.api.services.ProfileServicepublic org.apache.unomi.api.PartialList<org.apache.unomi.api.Session> findProfileSessions(String profileId)
findProfileSessions in interface org.apache.unomi.api.services.ProfileServicepublic void removeProfileSessions(String profileId)
removeProfileSessions in interface org.apache.unomi.api.services.ProfileServicepublic boolean matchCondition(org.apache.unomi.api.conditions.Condition condition,
org.apache.unomi.api.Profile profile,
org.apache.unomi.api.Session session)
matchCondition in interface org.apache.unomi.api.services.ProfileServicepublic void batchProfilesUpdate(org.apache.unomi.api.BatchUpdate update)
batchProfilesUpdate in interface org.apache.unomi.api.services.ProfileServicepublic org.apache.unomi.api.Persona loadPersona(String personaId)
loadPersona in interface org.apache.unomi.api.services.ProfileServicepublic org.apache.unomi.api.PersonaWithSessions loadPersonaWithSessions(String personaId)
loadPersonaWithSessions in interface org.apache.unomi.api.services.ProfileServicepublic org.apache.unomi.api.Persona createPersona(String personaId)
createPersona in interface org.apache.unomi.api.services.ProfileServicepublic Collection<org.apache.unomi.api.PropertyType> getTargetPropertyTypes(String target)
getTargetPropertyTypes in interface org.apache.unomi.api.services.ProfileServicepublic Map<String,Collection<org.apache.unomi.api.PropertyType>> getTargetPropertyTypes()
getTargetPropertyTypes in interface org.apache.unomi.api.services.ProfileServicepublic Set<org.apache.unomi.api.PropertyType> getPropertyTypeByTag(String tag)
getPropertyTypeByTag in interface org.apache.unomi.api.services.ProfileServicepublic Set<org.apache.unomi.api.PropertyType> getPropertyTypeBySystemTag(String tag)
getPropertyTypeBySystemTag in interface org.apache.unomi.api.services.ProfileServicepublic Collection<org.apache.unomi.api.PropertyType> getPropertyTypeByMapping(String propertyName)
getPropertyTypeByMapping in interface org.apache.unomi.api.services.ProfileServicepublic org.apache.unomi.api.PropertyType getPropertyType(String id)
getPropertyType in interface org.apache.unomi.api.services.ProfileServicepublic org.apache.unomi.api.PartialList<org.apache.unomi.api.Session> getPersonaSessions(String personaId, int offset, int size, String sortBy)
getPersonaSessions in interface org.apache.unomi.api.services.ProfileServicepublic org.apache.unomi.api.PersonaWithSessions savePersonaWithSessions(org.apache.unomi.api.PersonaWithSessions personaToSave)
savePersonaWithSessions in interface org.apache.unomi.api.services.ProfileServicepublic void setPropertyTypeTarget(URL predefinedPropertyTypeURL, org.apache.unomi.api.PropertyType propertyType)
setPropertyTypeTarget in interface org.apache.unomi.api.services.ProfileServicepublic void bundleChanged(org.osgi.framework.BundleEvent event)
bundleChanged in interface org.osgi.framework.BundleListenerpublic void refresh()
refresh in interface org.apache.unomi.api.services.ProfileServiceCopyright © 2014–2023 Apache Software Foundation. All rights reserved.