Package org.ametys.cms.datapolicy
Class ContentCommentAndReactionDataPolicy
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.cms.datapolicy.ContentCommentAndReactionDataPolicy
- All Implemented Interfaces:
PersonalDataPolicy
,LogEnabled
,Serviceable
public class ContentCommentAndReactionDataPolicy
extends AbstractLogEnabled
implements PersonalDataPolicy, Serviceable
Data policy that anonymize comments and reaction made by an unknown user
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.ametys.core.user.status.PersonalDataPolicy
PersonalDataPolicy.AnonymizationResult
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected CurrentUserProvider
The current user providerprotected I18nUtils
The i18n utilsprotected ModifiableContentHelper
The modifiable content helperprotected ObservationManager
The observation managerprotected javax.jcr.Repository
The repository providerprotected AmetysObjectResolver
The Ametys object resolver -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprocess
(UserStatusInfo userStatusInfo) Process the personal data of this user related to the policy.void
service
(ServiceManager manager) Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
Field Details
-
_currentUserProvider
The current user provider -
_modifiableContentHelper
The modifiable content helper -
_observationManager
The observation manager -
_repository
The repository provider -
_resolver
The Ametys object resolver -
_i18nUtils
The i18n utils
-
-
Constructor Details
-
ContentCommentAndReactionDataPolicy
public ContentCommentAndReactionDataPolicy()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
process
public PersonalDataPolicy.AnonymizationResult process(UserStatusInfo userStatusInfo) throws PersonalDataProcessingException Description copied from interface:PersonalDataPolicy
Process the personal data of this user related to the policy.- Specified by:
process
in interfacePersonalDataPolicy
- Parameters:
userStatusInfo
- information about the user to process- Returns:
- the process result
- Throws:
PersonalDataProcessingException
- if an error occurs
-