Package org.ametys.core.userpref
Class UserPreferenceDataPolicy
java.lang.Object
org.ametys.core.userpref.UserPreferenceDataPolicy
- All Implemented Interfaces:
PersonalDataPolicy
,Serviceable
- Direct Known Subclasses:
FOUserPreferenceDataPolicy
Data policy handling the personal data stored in user preferences.
The handling consist in a removal of all user preferences referencing the identity
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.ametys.core.user.status.PersonalDataPolicy
PersonalDataPolicy.AnonymizationResult
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ServiceManager
the service managerprotected UserPreferencesManager
the user preference extension point -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprocess
(UserStatusInfo userStatus) Process the personal data of this user related to the policy.void
service
(ServiceManager manager)
-
Field Details
-
_serviceManager
the service manager -
_userPrefManager
the user preference extension point
-
-
Constructor Details
-
UserPreferenceDataPolicy
public UserPreferenceDataPolicy()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
process
public PersonalDataPolicy.AnonymizationResult process(UserStatusInfo userStatus) throws PersonalDataProcessingException Description copied from interface:PersonalDataPolicy
Process the personal data of this user related to the policy.- Specified by:
process
in interfacePersonalDataPolicy
- Parameters:
userStatus
- information about the user to process- Returns:
- the process result
- Throws:
PersonalDataProcessingException
- if an error occurs
-