Class ThreadCommentAndReactionDataPolicy
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.plugins.workspaces.datapolicy.AbstractCommentAndReactionDataPolicy
org.ametys.plugins.workspaces.forum.datapolicy.ThreadCommentAndReactionDataPolicy
- All Implemented Interfaces:
PersonalDataPolicy,LogEnabled,Serviceable
Data policy that anonymize thread's comments and delete reactions made by an unknown user
-
Nested Class Summary
Nested classes/interfaces inherited from class org.ametys.plugins.workspaces.datapolicy.AbstractCommentAndReactionDataPolicy
AbstractCommentAndReactionDataPolicy.HandlingResultNested classes/interfaces inherited from interface org.ametys.core.user.status.PersonalDataPolicy
PersonalDataPolicy.AnonymizationResult -
Field Summary
Fields inherited from class org.ametys.plugins.workspaces.datapolicy.AbstractCommentAndReactionDataPolicy
_repository, _resolver, _userManager -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringGet the log category describing the objectprotected StringGet the primary type of object that holds commentsprotected booleanhandleComment(javax.jcr.Node commentNode) Handle anonymization of commentMethods inherited from class org.ametys.plugins.workspaces.datapolicy.AbstractCommentAndReactionDataPolicy
getCommentsQuery, getObjectNodeAndCommentId, handleCommentReactions, handleComments, process, serviceMethods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
Constructor Details
-
ThreadCommentAndReactionDataPolicy
public ThreadCommentAndReactionDataPolicy()
-
-
Method Details
-
getLogCategory
Description copied from class:AbstractCommentAndReactionDataPolicyGet the log category describing the object- Specified by:
getLogCategoryin classAbstractCommentAndReactionDataPolicy- Returns:
- the log category
-
handleComment
Description copied from class:AbstractCommentAndReactionDataPolicyHandle anonymization of comment- Specified by:
handleCommentin classAbstractCommentAndReactionDataPolicy- Parameters:
commentNode- the comment node- Returns:
- true if anomymization succeed, false otherwise
-
getObjectPrimaryType
Description copied from class:AbstractCommentAndReactionDataPolicyGet the primary type of object that holds comments- Specified by:
getObjectPrimaryTypein classAbstractCommentAndReactionDataPolicy- Returns:
- the primary type
-