Class TaskCommentAndReactionDataPolicy
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.plugins.workspaces.datapolicy.AbstractCommentAndReactionDataPolicy
org.ametys.plugins.workspaces.tasks.datapolicy.TaskCommentAndReactionDataPolicy
- All Implemented Interfaces:
PersonalDataPolicy
,LogEnabled
,Serviceable
Data policy that anonymize task's comments made by an unknown user
-
Nested Class Summary
Nested classes/interfaces inherited from class org.ametys.plugins.workspaces.datapolicy.AbstractCommentAndReactionDataPolicy
AbstractCommentAndReactionDataPolicy.HandlingResult
Nested 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 String
Get the log category describing the objectprotected String
Get the primary type of object that holds commentsprotected boolean
handleComment
(javax.jcr.Node commentNode) Handle anonymization of commentMethods inherited from class org.ametys.plugins.workspaces.datapolicy.AbstractCommentAndReactionDataPolicy
getCommentsQuery, getObjectNodeAndCommentId, handleCommentReactions, handleComments, process, service
Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
Constructor Details
-
TaskCommentAndReactionDataPolicy
public TaskCommentAndReactionDataPolicy()
-
-
Method Details
-
getLogCategory
Description copied from class:AbstractCommentAndReactionDataPolicy
Get the log category describing the object- Specified by:
getLogCategory
in classAbstractCommentAndReactionDataPolicy
- Returns:
- the log category
-
getObjectPrimaryType
Description copied from class:AbstractCommentAndReactionDataPolicy
Get the primary type of object that holds comments- Specified by:
getObjectPrimaryType
in classAbstractCommentAndReactionDataPolicy
- Returns:
- the primary type
-
handleComment
Description copied from class:AbstractCommentAndReactionDataPolicy
Handle anonymization of comment- Specified by:
handleComment
in classAbstractCommentAndReactionDataPolicy
- Parameters:
commentNode
- the comment node- Returns:
- true if anomymization succeed, false otherwise
-