Class MonitorManager
- java.lang.Object
-
- lumis.portal.monitor.impl.MonitorManager
-
- All Implemented Interfaces:
IMonitorManager
,IMonitorManagerSPI
public class MonitorManager extends java.lang.Object implements IMonitorManagerSPI
Implementation for theIMonitorManagerSPI
interface.- Since:
- 9.0.0
- Version:
- $Revision$ $Date$
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
BIG_DATA_ANONYMIZATION_STRING_VALUE
-
Fields inherited from interface lumis.portal.monitor.IMonitorManagerSPI
FRIENDLY_ID_FIELD_EMAIL, FRIENDLY_ID_FIELD_ID, FRIENDLY_ID_FIELD_LOGIN
-
-
Constructor Summary
Constructors Constructor Description MonitorManager()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
addMonitorUser(UserConfig userConfig)
Adds a new monitor user to persistence.void
anonymizeAllMonitorUser()
Anonymizes all monitor users without consent.void
anonymizeMonitorUser(java.lang.String monitorUserId)
Anonymizes the given monitor user.static void
anonymizeMonitorUserPendingData(MonitorUser monitorUser)
Anonymizes data for the given user that should be anonimized but it is not.void
anonymizeMonitorUsers(java.util.Collection<java.lang.String> monitorUserIds)
Anonymizes the given monitor users.void
clearEventsCache(java.lang.String eventId)
Clears the cache relative to the event with the given identifier.void
clearRequestRulesCache()
Clears the request rules cache.IMonitorValuesProvider
createMonitorUserValuesProviderForTrackId(java.lang.String trackId)
Creates a new monitor values provider that returns the values for monitor user fields corresponding to the given track identifier.IMonitorValuesProvider
createMonitorUserValuesProviderForUserId(java.lang.String monitorUserId)
Creates a new monitor values provider that returns the values for monitor user fields corresponding to the given user identifier.void
deleteMonitorElementsFromServiceInstance(ServiceInstanceConfig serviceInstance)
Deletes events, fields and field groups of the given service instance.void
deleteMonitorUser(java.lang.String userId)
Deletes monitor user.void
deleteUserActivities(java.lang.String userId)
Delete monitor user activities.java.util.Collection<IMonitorEvent>
getAllEvents()
Returns all monitor events.java.util.Collection<IMonitorFieldGroup>
getAllFieldGroups()
Returns all monitor field groups.java.util.Collection<IMonitorField>
getAllFields()
Returns all monitor fields.java.lang.String
getCurrentMonitorUserId()
Returns the identifier of the current monitor user.java.lang.String
getCurrentMonitorUserTrackId()
Returns the track identifier of the current monitor user.IMonitorEventSPI
getEvent(java.lang.String eventId)
Returns an unmodifiable event.MonitorEvent
getEventFromCache(java.lang.String eventId)
Returns the event with the given identifier using the internal monitor manager events cache.IMonitorFieldSPI
getField(java.lang.String fieldId)
Deprecated.IMonitorFieldSPI
getFieldFromCache(java.lang.String fieldId)
Returns the field with the given identifier using the internal monitor manager fields cache.IMonitorFieldGroup
getFieldGroup(java.lang.String fieldGroupId)
Returns an unmodifiable field group.java.lang.String
getFriendlyIdUserField()
Returns the field used to calculated the monitor user's friendly id for portal users.lumis.portal.monitor.impl.MonitorContext
getMonitorContext()
Returns the current monitor context.java.lang.String
getMonitorUserIdByTrackId(java.lang.String monitorUserTrackId)
Returns the user identifier for a track identifier.PrincipalConfig
getMonitorUserPrincipal(java.lang.String principalId)
Returns the principal object that represents a monitor user.java.lang.String
getMonitorUserTrackId(java.lang.String monitorUserId)
Returns the track identifier for a monitor user.IMonitorStatistics
getStatistics()
Returns statistics about monitoring framework.void
init()
Initializes the monitor manager.void
initializeMonitoringData(ITransaction transaction)
Method called during portal database initialization to populate the monitoring related data.void
initializeMonitorRequestRules()
Initializes the monitor request rules.void
loadMonitorUserInfo(java.lang.String userId, IUserConfigInitializer userConfigInitializer)
Provides a monitor user information toIUserConfigInitializer
.void
mergeMonitorUserDuringAuthentication(java.lang.String httpSessionId, java.lang.String srcMonitorUserId, java.lang.String destMonitorUserId)
Merges a monitor user to another, because a http session identified as the first monitor user was authenticated as the second monitor user.void
mergeMonitorUsers(java.lang.String srcMonitorUserId, java.lang.String destMonitorUserId)
Merger monitor users.IMonitor
monitor(java.lang.String eventId)
Returns the monitor for an event with the given identifier.IMonitor
monitor(java.lang.String eventId, ITransaction transaction)
Returns the monitor for an event with the given identifier.boolean
monitorUserHasPortalUser(java.lang.String monitorUserId)
Returns whether the monitor user with the given identifier has a portal user.protected void
persistFieldRecursively(org.hibernate.Session session, IMonitorField field)
Persist the given field and any inner fields recursively.void
reindexAllMonitorUser()
Reindex all monitor users and their event data.void
reindexGroupMember(java.util.Collection<java.lang.String> principalIds)
Schedule reindex of monitor users due to membership change.void
reindexMonitorUsers(java.util.Collection<java.lang.String> monitorUserIds)
Reindex the given monitor users.void
restartExecutorService()
Restarts executor service.void
scheduleReindexMonitorUser(java.lang.String id, java.lang.Long visitorId)
Schedules the reindexing of the monitor user with the given identifier on big data after the commit of the current transaction.void
setFriendlyIdUserField(java.lang.String requestField)
Sets the field used to calculated the monitor user's friendly id for portal users.boolean
shouldMonitorRequest(javax.servlet.http.HttpServletRequest request)
Returns whether the given request should have the events monitored.void
shutdown()
Shutdowns the monitor manager.void
submit(java.lang.Runnable command)
Executes the given task at some time in the future using monitor internal executor service.IMonitor
syncMonitor(java.lang.String eventId)
Returns a synchronous monitor.void
updateAllEventsDocumentTypes()
Updates all events document types.void
updateAllMonitorEventDocumentTypes()
Deprecated.void
updateMonitorDefinition(java.util.Set<java.lang.String> definitionPaths)
Updates the monitor definition from the given file paths.void
updateMonitorUser(UserConfig userConfig, UserConfig originalUserConfig)
Updates the data stored in a monitor user with the corresponding data on a portal user.void
updateMonitorUserDocumentType(IBigDataRepository repository)
Updates monitor user document types.void
upgradeEventData()
Schedules the upgrade of event data in BigData.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface lumis.portal.monitor.IMonitorManagerSPI
updateMonitorUserDocumentType
-
-
-
-
Field Detail
-
BIG_DATA_ANONYMIZATION_STRING_VALUE
public static final java.lang.String BIG_DATA_ANONYMIZATION_STRING_VALUE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getStatistics
public IMonitorStatistics getStatistics()
Description copied from interface:IMonitorManagerSPI
Returns statistics about monitoring framework.- Specified by:
getStatistics
in interfaceIMonitorManagerSPI
- Returns:
- statistics about monitoring framework.
-
getMonitorContext
public lumis.portal.monitor.impl.MonitorContext getMonitorContext()
Description copied from interface:IMonitorManager
Returns the current monitor context.- Specified by:
getMonitorContext
in interfaceIMonitorManager
- Specified by:
getMonitorContext
in interfaceIMonitorManagerSPI
- Returns:
- the current monitor context, or null if there is no current monitor context.
-
monitor
public IMonitor monitor(java.lang.String eventId) throws PortalException
Description copied from interface:IMonitorManager
Returns the monitor for an event with the given identifier.The call to this method is equivalent of
monitor(eventId, null)
.- Specified by:
monitor
in interfaceIMonitorManager
- Parameters:
eventId
- the event identifier.- Returns:
- the monitor.
- Throws:
PortalException
- See Also:
IMonitor
,IMonitorManager.monitor(String, ITransaction)
-
monitor
public IMonitor monitor(java.lang.String eventId, ITransaction transaction) throws PortalException
Description copied from interface:IMonitorManager
Returns the monitor for an event with the given identifier.If no event with the given identifier exists then a warn message will be generated in the LumisXP log.
If no event with the given identifier exists or if the event is disabled then a dummy monitor object will be returned (a
IMonitor
implementation that will not persist any data).If the given transaction is not
null
, the monitoring data will be saved after the transaction has terminated (either by a successful commit or by a rollback) and the monitor has beenclosed
.If the given transaction is
null
, the monitoring data will be saved when the monitor has beenclosed
.If the given transaction is not
null
, values for transaction result fields will provided automatically if the event has any of those fields.- Specified by:
monitor
in interfaceIMonitorManager
- Parameters:
eventId
- the event identifier.transaction
- the transaction the given monitor will be bound to.- Returns:
- the monitor.
- Throws:
PortalException
- See Also:
IMonitor
-
syncMonitor
public IMonitor syncMonitor(java.lang.String eventId) throws PortalException
Description copied from interface:IMonitorManagerSPI
Returns a synchronous monitor.- Specified by:
syncMonitor
in interfaceIMonitorManagerSPI
- Parameters:
eventId
- the event identifier- Returns:
- a synchronous monitor.
- Throws:
PortalException
- See Also:
IMonitorManager.monitor(String)
-
getEvent
public IMonitorEventSPI getEvent(java.lang.String eventId) throws PortalException
Description copied from interface:IMonitorManager
Returns an unmodifiable event.- Specified by:
getEvent
in interfaceIMonitorManager
- Parameters:
eventId
- the event's identifier.- Returns:
- an unmodifiable event.
- Throws:
PortalObjectNotFoundException
- if no event with such id was found.PortalException
-
getEventFromCache
public MonitorEvent getEventFromCache(java.lang.String eventId) throws PortalException
Description copied from interface:IMonitorManagerSPI
Returns the event with the given identifier using the internal monitor manager events cache. This method is intended to be the most performance efficient possible. It is more efficient thanIMonitorManager.getEvent(String)
, but the the event returned here is detached.- Specified by:
getEventFromCache
in interfaceIMonitorManagerSPI
- Parameters:
eventId
- the event identifier.- Returns:
- the detached event, or
null
if no event with the given identifier was found. - Throws:
PortalException
-
getFieldFromCache
public IMonitorFieldSPI getFieldFromCache(java.lang.String fieldId) throws PortalException
Description copied from interface:IMonitorManagerSPI
Returns the field with the given identifier using the internal monitor manager fields cache. This method is intended to be the most performance efficient possible. It is more efficient thanIMonitorManager.getField(String)
, but the the field returned here is detached. UnlikeIMonitorManager.getField(String)
, this method returnsnull
if the field is not found (instead of throwingPortalObjectNotFoundException
).- Specified by:
getFieldFromCache
in interfaceIMonitorManagerSPI
- Parameters:
fieldId
- the field identifier- Returns:
- the detached field or
null
if no such field was found. - Throws:
PortalException
-
getField
@Deprecated public IMonitorFieldSPI getField(java.lang.String fieldId) throws PortalException
Deprecated.Description copied from interface:IMonitorManager
Returns an unmodifiable field.- Specified by:
getField
in interfaceIMonitorManager
- Parameters:
fieldId
- the field's identifier.- Returns:
- an unmodifiable field.
- Throws:
PortalObjectNotFoundException
- if no field with such id was found.PortalException
-
clearEventsCache
public void clearEventsCache(java.lang.String eventId) throws PortalException
Description copied from interface:IMonitorManagerSPI
Clears the cache relative to the event with the given identifier.- Specified by:
clearEventsCache
in interfaceIMonitorManagerSPI
- Parameters:
eventId
- the event identifier.- Throws:
PortalException
-
initializeMonitoringData
public void initializeMonitoringData(ITransaction transaction) throws PortalException
Description copied from interface:IMonitorManagerSPI
Method called during portal database initialization to populate the monitoring related data.- Specified by:
initializeMonitoringData
in interfaceIMonitorManagerSPI
- Parameters:
transaction
- the transaction for persistence access.- Throws:
PortalException
-
persistFieldRecursively
protected void persistFieldRecursively(org.hibernate.Session session, IMonitorField field)
Persist the given field and any inner fields recursively.- Parameters:
session
- the session.field
- the field.- Since:
- 10.2.0
-
init
public void init()
Description copied from interface:IMonitorManagerSPI
Initializes the monitor manager.- Specified by:
init
in interfaceIMonitorManagerSPI
-
shutdown
public void shutdown()
Description copied from interface:IMonitorManagerSPI
Shutdowns the monitor manager.- Specified by:
shutdown
in interfaceIMonitorManagerSPI
-
submit
public void submit(java.lang.Runnable command)
Description copied from interface:IMonitorManagerSPI
Executes the given task at some time in the future using monitor internal executor service.- Specified by:
submit
in interfaceIMonitorManagerSPI
- Parameters:
command
- the runnable task.
-
restartExecutorService
public void restartExecutorService()
Description copied from interface:IMonitorManagerSPI
Restarts executor service.- Specified by:
restartExecutorService
in interfaceIMonitorManagerSPI
-
getFieldGroup
public IMonitorFieldGroup getFieldGroup(java.lang.String fieldGroupId) throws PortalException
Description copied from interface:IMonitorManager
Returns an unmodifiable field group.- Specified by:
getFieldGroup
in interfaceIMonitorManager
- Parameters:
fieldGroupId
- the field group's identifier.- Returns:
- an unmodifiable field group.
- Throws:
PortalObjectNotFoundException
- if no such field group was found.PortalException
-
updateMonitorDefinition
public void updateMonitorDefinition(java.util.Set<java.lang.String> definitionPaths) throws PortalException
Description copied from interface:IMonitorManagerSPI
Updates the monitor definition from the given file paths. The files will be read from the class loader.- Specified by:
updateMonitorDefinition
in interfaceIMonitorManagerSPI
- Parameters:
definitionPaths
- the definition paths.- Throws:
PortalException
-
updateAllEventsDocumentTypes
public void updateAllEventsDocumentTypes() throws PortalException
Description copied from interface:IMonitorManagerSPI
Updates all events document types. Ignores the events that doesn't have the document types created.- Specified by:
updateAllEventsDocumentTypes
in interfaceIMonitorManagerSPI
- Throws:
PortalException
-
scheduleReindexMonitorUser
public void scheduleReindexMonitorUser(java.lang.String id, java.lang.Long visitorId) throws PortalException
Description copied from interface:IMonitorManagerSPI
Schedules the reindexing of the monitor user with the given identifier on big data after the commit of the current transaction.- Specified by:
scheduleReindexMonitorUser
in interfaceIMonitorManagerSPI
- Parameters:
id
- the monitor user identifier.visitorId
- the monitor user visitor identifier.- Throws:
PortalException
-
createMonitorUserValuesProviderForUserId
public IMonitorValuesProvider createMonitorUserValuesProviderForUserId(java.lang.String monitorUserId)
Description copied from interface:IMonitorManagerSPI
Creates a new monitor values provider that returns the values for monitor user fields corresponding to the given user identifier. This provider will persist a monitor user when requested for values if no monitor user with the given identifier exists.- Specified by:
createMonitorUserValuesProviderForUserId
in interfaceIMonitorManagerSPI
- Parameters:
monitorUserId
- the monitor user identifier.- Returns:
- the monitor values provider.
-
createMonitorUserValuesProviderForTrackId
public IMonitorValuesProvider createMonitorUserValuesProviderForTrackId(java.lang.String trackId)
Description copied from interface:IMonitorManagerSPI
Creates a new monitor values provider that returns the values for monitor user fields corresponding to the given track identifier. This provider will persist a monitor user when requested for values if no monitor user with the given identifier exists.- Specified by:
createMonitorUserValuesProviderForTrackId
in interfaceIMonitorManagerSPI
- Parameters:
trackId
- the monitor user track identifier.- Returns:
- the monitor values provider.
-
getCurrentMonitorUserId
public java.lang.String getCurrentMonitorUserId()
Description copied from interface:IMonitorManager
Returns the identifier of the current monitor user.- Specified by:
getCurrentMonitorUserId
in interfaceIMonitorManager
- Returns:
- the monitor user identifier, or
null
if it is not set.
-
getCurrentMonitorUserTrackId
public java.lang.String getCurrentMonitorUserTrackId()
Description copied from interface:IMonitorManagerSPI
Returns the track identifier of the current monitor user.- Specified by:
getCurrentMonitorUserTrackId
in interfaceIMonitorManagerSPI
- Returns:
- the monitor user track identifier, or
null
if it is not set.
-
addMonitorUser
public void addMonitorUser(UserConfig userConfig) throws PortalException
Description copied from interface:IMonitorManagerSPI
Adds a new monitor user to persistence.- Specified by:
addMonitorUser
in interfaceIMonitorManagerSPI
- Parameters:
userConfig
- the portal user.- Throws:
PortalException
-
updateMonitorUser
public void updateMonitorUser(UserConfig userConfig, UserConfig originalUserConfig) throws PortalException
Description copied from interface:IMonitorManagerSPI
Updates the data stored in a monitor user with the corresponding data on a portal user.- Specified by:
updateMonitorUser
in interfaceIMonitorManagerSPI
- Parameters:
userConfig
- the portal user with the updated information.- Throws:
PortalException
-
mergeMonitorUserDuringAuthentication
public void mergeMonitorUserDuringAuthentication(java.lang.String httpSessionId, java.lang.String srcMonitorUserId, java.lang.String destMonitorUserId) throws PortalException
Description copied from interface:IMonitorManagerSPI
Merges a monitor user to another, because a http session identified as the first monitor user was authenticated as the second monitor user.This method uses its own transaction for this operation.
If the source monitor user has some identification (an associated portal user or friendlyId set) then a partial merge will be performed. Otherwise a full merge will be performed.
A partial merge will move non-authenticated event data that belongs to the specified HTTP session and the source monitor user to the destination monitor user.
A full merge will move all event data that belongs to the source monitor user to the destination monitor user, will copy source monitor user's properties to the destination monitor user (but will not overwrite data of destination monitor user's portal user as per monitor user standard behavior) and will delete the source monitor user.
- Specified by:
mergeMonitorUserDuringAuthentication
in interfaceIMonitorManagerSPI
- Parameters:
httpSessionId
- http session identifier used for partial merge.srcMonitorUserId
- the monitor user that will be merged to another.destMonitorUserId
- the monitor user destination of the merge.- Throws:
PortalException
-
getAllEvents
public java.util.Collection<IMonitorEvent> getAllEvents()
Description copied from interface:IMonitorManagerSPI
Returns all monitor events.- Specified by:
getAllEvents
in interfaceIMonitorManagerSPI
- Returns:
- all monitor events.
-
getAllFields
public java.util.Collection<IMonitorField> getAllFields()
Description copied from interface:IMonitorManagerSPI
Returns all monitor fields.- Specified by:
getAllFields
in interfaceIMonitorManagerSPI
- Returns:
- all monitor fields.
-
getAllFieldGroups
public java.util.Collection<IMonitorFieldGroup> getAllFieldGroups()
Description copied from interface:IMonitorManagerSPI
Returns all monitor field groups.- Specified by:
getAllFieldGroups
in interfaceIMonitorManagerSPI
- Returns:
- all monitor field groups.
-
shouldMonitorRequest
public boolean shouldMonitorRequest(javax.servlet.http.HttpServletRequest request) throws PortalException
Description copied from interface:IMonitorManagerSPI
Returns whether the given request should have the events monitored.- Specified by:
shouldMonitorRequest
in interfaceIMonitorManagerSPI
- Parameters:
request
- the request.- Returns:
- whether the given request should have the events monitored.
- Throws:
PortalException
-
initializeMonitorRequestRules
public void initializeMonitorRequestRules() throws PortalException
Description copied from interface:IMonitorManagerSPI
Initializes the monitor request rules.- Specified by:
initializeMonitorRequestRules
in interfaceIMonitorManagerSPI
- Throws:
PortalException
-
clearRequestRulesCache
public void clearRequestRulesCache() throws PortalException
Description copied from interface:IMonitorManagerSPI
Clears the request rules cache.- Specified by:
clearRequestRulesCache
in interfaceIMonitorManagerSPI
- Throws:
PortalException
-
reindexAllMonitorUser
public void reindexAllMonitorUser() throws PortalException
Description copied from interface:IMonitorManagerSPI
Reindex all monitor users and their event data.- Specified by:
reindexAllMonitorUser
in interfaceIMonitorManagerSPI
- Throws:
PortalException
-
setFriendlyIdUserField
public void setFriendlyIdUserField(java.lang.String requestField) throws PortalException
Description copied from interface:IMonitorManagerSPI
Sets the field used to calculated the monitor user's friendly id for portal users.Note: this method uses its own transaction.
- Specified by:
setFriendlyIdUserField
in interfaceIMonitorManagerSPI
- Parameters:
requestField
- one ofIMonitorManagerSPI.FRIENDLY_ID_FIELD_ID
,IMonitorManagerSPI.FRIENDLY_ID_FIELD_LOGIN
,IMonitorManagerSPI.FRIENDLY_ID_FIELD_EMAIL
, the identifier of aUserAttribute
ornull
to indicate no friendly id.- Throws:
PortalException
-
getFriendlyIdUserField
public java.lang.String getFriendlyIdUserField() throws PortalException
Description copied from interface:IMonitorManagerSPI
Returns the field used to calculated the monitor user's friendly id for portal users.- Specified by:
getFriendlyIdUserField
in interfaceIMonitorManagerSPI
- Returns:
- the friendly identifier field. One of
IMonitorManagerSPI.FRIENDLY_ID_FIELD_ID
,IMonitorManagerSPI.FRIENDLY_ID_FIELD_LOGIN
,IMonitorManagerSPI.FRIENDLY_ID_FIELD_EMAIL
, the identifier of aUserAttribute
ornull
to indicate no friendly id. - Throws:
PortalException
-
reindexGroupMember
public void reindexGroupMember(java.util.Collection<java.lang.String> principalIds) throws PortalException
Description copied from interface:IMonitorManagerSPI
Schedule reindex of monitor users due to membership change.- Specified by:
reindexGroupMember
in interfaceIMonitorManagerSPI
- Parameters:
principalIds
- the principal identifiers where all monitor users that belongs to them must be reindexed.- Throws:
PortalException
- if the reindexing could not be scheduled.
-
upgradeEventData
public void upgradeEventData() throws PortalException
Description copied from interface:IMonitorManagerSPI
Schedules the upgrade of event data in BigData.- Specified by:
upgradeEventData
in interfaceIMonitorManagerSPI
- Throws:
PortalException
-
mergeMonitorUsers
public void mergeMonitorUsers(java.lang.String srcMonitorUserId, java.lang.String destMonitorUserId) throws PortalException
Description copied from interface:IMonitorManagerSPI
Merger monitor users.- Specified by:
mergeMonitorUsers
in interfaceIMonitorManagerSPI
- Throws:
PortalException
-
monitorUserHasPortalUser
public boolean monitorUserHasPortalUser(java.lang.String monitorUserId)
Description copied from interface:IMonitorManagerSPI
Returns whether the monitor user with the given identifier has a portal user.- Specified by:
monitorUserHasPortalUser
in interfaceIMonitorManagerSPI
- Parameters:
monitorUserId
- the monitor user identifier.- Returns:
true
if the corresponding monitor user has a portal user,false
if the monitor user does not have a portal user or if it was not found.
-
getMonitorUserTrackId
public java.lang.String getMonitorUserTrackId(java.lang.String monitorUserId)
Description copied from interface:IMonitorManagerSPI
Returns the track identifier for a monitor user.- Specified by:
getMonitorUserTrackId
in interfaceIMonitorManagerSPI
- Parameters:
monitorUserId
- the monitor user identifier.- Returns:
- the track identifier, or
null
if no such monitor user is available.
-
getMonitorUserIdByTrackId
public java.lang.String getMonitorUserIdByTrackId(java.lang.String monitorUserTrackId)
Description copied from interface:IMonitorManagerSPI
Returns the user identifier for a track identifier.- Specified by:
getMonitorUserIdByTrackId
in interfaceIMonitorManagerSPI
- Parameters:
monitorUserTrackId
- the track identifier.- Returns:
- the user identifier, or
null
if no such track identifier is unavailable.
-
deleteMonitorUser
public void deleteMonitorUser(java.lang.String userId)
Description copied from interface:IMonitorManagerSPI
Deletes monitor user. This is to be used internally when a portal user will be deleted.- Specified by:
deleteMonitorUser
in interfaceIMonitorManagerSPI
- Parameters:
userId
- the user identifier.
-
deleteUserActivities
public void deleteUserActivities(java.lang.String userId) throws PortalException
Description copied from interface:IMonitorManagerSPI
Delete monitor user activities.- Specified by:
deleteUserActivities
in interfaceIMonitorManagerSPI
- Parameters:
userId
- the user identifier.- Throws:
PortalException
-
loadMonitorUserInfo
public void loadMonitorUserInfo(java.lang.String userId, IUserConfigInitializer userConfigInitializer) throws PortalException
Description copied from interface:IMonitorManagerSPI
Provides a monitor user information toIUserConfigInitializer
.- Specified by:
loadMonitorUserInfo
in interfaceIMonitorManagerSPI
- Parameters:
userId
- the user identifier.userConfigInitializer
- the initializer.- Throws:
PortalException
-
getMonitorUserPrincipal
public PrincipalConfig getMonitorUserPrincipal(java.lang.String principalId)
Description copied from interface:IMonitorManagerSPI
Returns the principal object that represents a monitor user.- Specified by:
getMonitorUserPrincipal
in interfaceIMonitorManagerSPI
- Parameters:
principalId
- the principal identifier.- Returns:
- the principal or
null
if no such monitor user exists.
-
updateAllMonitorEventDocumentTypes
@Deprecated public void updateAllMonitorEventDocumentTypes() throws PortalException
Deprecated.Description copied from interface:IMonitorManagerSPI
Updates all monitor event document types. Ignores the events that doesn't have the document types created.- Specified by:
updateAllMonitorEventDocumentTypes
in interfaceIMonitorManagerSPI
- Throws:
PortalException
-
updateMonitorUserDocumentType
public void updateMonitorUserDocumentType(IBigDataRepository repository) throws PortalException
Description copied from interface:IMonitorManagerSPI
Updates monitor user document types. Ignores the events that doesn't have the document types created.- Specified by:
updateMonitorUserDocumentType
in interfaceIMonitorManagerSPI
- Parameters:
repository
- the big data repository to use.- Throws:
PortalException
-
anonymizeAllMonitorUser
public void anonymizeAllMonitorUser() throws PortalException
Description copied from interface:IMonitorManagerSPI
Anonymizes all monitor users without consent.- Specified by:
anonymizeAllMonitorUser
in interfaceIMonitorManagerSPI
- Throws:
PortalException
-
anonymizeMonitorUserPendingData
public static void anonymizeMonitorUserPendingData(MonitorUser monitorUser) throws PortalException
Anonymizes data for the given user that should be anonimized but it is not.- Parameters:
monitorUser
- the monitor user to perform the operation.- Throws:
PortalException
- Since:
- 12.3.0
-
anonymizeMonitorUser
public void anonymizeMonitorUser(java.lang.String monitorUserId) throws PortalException
Description copied from interface:IMonitorManagerSPI
Anonymizes the given monitor user. Any consents in the given user will be removed.- Specified by:
anonymizeMonitorUser
in interfaceIMonitorManagerSPI
- Parameters:
monitorUserId
- the monitor user identifier.- Throws:
PortalException
-
anonymizeMonitorUsers
public void anonymizeMonitorUsers(java.util.Collection<java.lang.String> monitorUserIds) throws PortalException
Description copied from interface:IMonitorManagerSPI
Anonymizes the given monitor users. Any consents in the given user will be removed. This operation will be performed in background.- Specified by:
anonymizeMonitorUsers
in interfaceIMonitorManagerSPI
- Parameters:
monitorUserIds
- the monitor user identifiers.- Throws:
PortalException
-
reindexMonitorUsers
public void reindexMonitorUsers(java.util.Collection<java.lang.String> monitorUserIds) throws PortalException
Description copied from interface:IMonitorManagerSPI
Reindex the given monitor users.- Specified by:
reindexMonitorUsers
in interfaceIMonitorManagerSPI
- Parameters:
monitorUserIds
- the monitor user identifiers.- Throws:
PortalException
-
deleteMonitorElementsFromServiceInstance
public void deleteMonitorElementsFromServiceInstance(ServiceInstanceConfig serviceInstance)
Description copied from interface:IMonitorManagerSPI
Deletes events, fields and field groups of the given service instance.- Specified by:
deleteMonitorElementsFromServiceInstance
in interfaceIMonitorManagerSPI
- Parameters:
serviceInstance
- the service instance
-
-