Class MonitorManager
- java.lang.Object
-
- lumis.portal.monitor.impl.MonitorManager
-
- All Implemented Interfaces:
IMonitorManager
,IMonitorManagerSPI
public class MonitorManager extends Object implements IMonitorManagerSPI
Implementation for theIMonitorManagerSPI
interface.- Since:
- 9.0.0
- Version:
- $Revision: 24622 $ $Date: 2021-07-29 01:47:56 -0300 (Thu, 29 Jul 2021) $
-
-
Field Summary
Fields Modifier and Type Field Description static 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(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(Collection<String> monitorUserIds)
Anonymizes the given monitor users.void
clearEventsCache(String eventId)
Clears the cache relative to the event with the given identifier.void
clearRequestRulesCache()
Clears the request rules cache.IMonitorValuesProvider
createMonitorUserValuesProviderForTrackId(String trackId)
Creates a new monitor values provider that returns the values for monitor user fields corresponding to the given track identifier.IMonitorValuesProvider
createMonitorUserValuesProviderForUserId(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(String userId)
Deletes monitor user.void
deleteUserActivities(String userId)
Delete monitor user activities.Collection<IMonitorEvent>
getAllEvents()
Returns all monitor events.Collection<IMonitorFieldGroup>
getAllFieldGroups()
Returns all monitor field groups.Collection<IMonitorField>
getAllFields()
Returns all monitor fields.String
getCurrentMonitorUserId()
Returns the identifier of the current monitor user.String
getCurrentMonitorUserTrackId()
Returns the track identifier of the current monitor user.IMonitorEventSPI
getEvent(String eventId)
Returns an unmodifiable event.MonitorEvent
getEventFromCache(String eventId)
Returns the event with the given identifier using the internal monitor manager events cache.IMonitorFieldSPI
getField(String fieldId)
Returns an unmodifiable field.IMonitorFieldGroup
getFieldGroup(String fieldGroupId)
Returns an unmodifiable field group.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.String
getMonitorUserIdByTrackId(String monitorUserTrackId)
Returns the user identifier for a track identifier.PrincipalConfig
getMonitorUserPrincipal(String principalId)
Returns the principal object that represents a monitor user.String
getMonitorUserTrackId(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(String userId, IUserConfigInitializer userConfigInitializer)
Provides a monitor user information toIUserConfigInitializer
.void
mergeMonitorUserDuringAuthentication(String httpSessionId, String srcMonitorUserId, 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(String srcMonitorUserId, String destMonitorUserId)
Merger monitor users.IMonitor
monitor(String eventId)
Returns the monitor for an event with the given identifier.IMonitor
monitor(String eventId, ITransaction transaction)
Returns the monitor for an event with the given identifier.boolean
monitorUserHasPortalUser(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(Collection<String> principalIds)
Schedule reindex of monitor users due to membership change.void
reindexMonitorUsers(Collection<String> monitorUserIds)
Reindex the given monitor users.void
restartExecutorService()
Restarts executor service.void
scheduleReindexMonitorUser(String id, 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(String requestField)
Sets the field used to calculated the monitor user's friendly id for portal users.boolean
shouldMonitorRequest(HttpServletRequest request)
Returns whether the given request should have the events monitored.void
shutdown()
Shutdowns the monitor manager.void
submit(Runnable command)
Executes the given task at some time in the future using monitor internal executor service.IMonitor
syncMonitor(String eventId)
Returns a synchronous monitor.void
updateAllEventsDocumentTypes()
Updates all events document types.void
updateAllMonitorEventDocumentTypes()
Deprecated.void
updateMonitorDefinition(Set<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 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(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(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(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(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(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
-
getField
public IMonitorFieldSPI getField(String fieldId) throws PortalException
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(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(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(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(Set<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(String id, 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(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(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 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 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(String httpSessionId, String srcMonitorUserId, 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 Collection<IMonitorEvent> getAllEvents()
Description copied from interface:IMonitorManagerSPI
Returns all monitor events.- Specified by:
getAllEvents
in interfaceIMonitorManagerSPI
- Returns:
- all monitor events.
-
getAllFields
public Collection<IMonitorField> getAllFields()
Description copied from interface:IMonitorManagerSPI
Returns all monitor fields.- Specified by:
getAllFields
in interfaceIMonitorManagerSPI
- Returns:
- all monitor fields.
-
getAllFieldGroups
public 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(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(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 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(Collection<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(String srcMonitorUserId, String destMonitorUserId) throws PortalException
Description copied from interface:IMonitorManagerSPI
Merger monitor users.- Specified by:
mergeMonitorUsers
in interfaceIMonitorManagerSPI
- Throws:
PortalException
-
monitorUserHasPortalUser
public boolean monitorUserHasPortalUser(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 String getMonitorUserTrackId(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 String getMonitorUserIdByTrackId(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(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(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(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(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(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(Collection<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(Collection<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
-
-