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 CurrentUserProviderThe current user providerprotected I18nUtilsThe i18n utilsprotected ModifiableContentHelperThe modifiable content helperprotected ObservationManagerThe observation managerprotected javax.jcr.RepositoryThe repository providerprotected AmetysObjectResolverThe Ametys object resolver -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprocess(UserStatusInfo userStatusInfo) Process the personal data of this user related to the policy.voidservice(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:
servicein interfaceServiceable- Throws:
ServiceException
-
process
public PersonalDataPolicy.AnonymizationResult process(UserStatusInfo userStatusInfo) throws PersonalDataProcessingException Description copied from interface:PersonalDataPolicyProcess the personal data of this user related to the policy.- Specified by:
processin interfacePersonalDataPolicy- Parameters:
userStatusInfo- information about the user to process- Returns:
- the process result
- Throws:
PersonalDataProcessingException- if an error occurs
-