Class ClassifiedAdsDataPolicy
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.plugins.classified.ads.ClassifiedAdsDataPolicy
- All Implemented Interfaces:
PersonalDataPolicy
,LogEnabled
,Serviceable
public class ClassifiedAdsDataPolicy
extends AbstractLogEnabled
implements PersonalDataPolicy, Serviceable
Data policy removing all the classified adds created by an unknown user after a delay
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.ametys.core.user.status.PersonalDataPolicy
PersonalDataPolicy.AnonymizationResult
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ContentDAO
The content DAOprotected AmetysObjectResolver
The Ametys object resolverstatic final String
The content type id -
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
-
CLASSIFIED_ADS_CONTENT_TYPE
The content type id- See Also:
-
_contentDAO
The content DAO -
_resolver
The Ametys object resolver
-
-
Constructor Details
-
ClassifiedAdsDataPolicy
public ClassifiedAdsDataPolicy()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
process
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
-