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 ContentDAOThe content DAOprotected AmetysObjectResolverThe Ametys object resolverstatic final StringThe content type id -
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
-
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:
servicein interfaceServiceable- Throws:
ServiceException
-
process
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
-