Class BeCPGTemplateExtension

java.lang.Object
org.alfresco.repo.processor.BaseProcessorExtension
org.alfresco.repo.template.BaseTemplateProcessorExtension
fr.becpg.repo.template.BeCPGTemplateExtension
All Implemented Interfaces:
org.alfresco.processor.ProcessorExtension, org.alfresco.service.cmr.repository.TemplateProcessorExtension

public class BeCPGTemplateExtension extends org.alfresco.repo.template.BaseTemplateProcessorExtension

BeCPGTemplateExtension class.

Author:
matthieu
  • Field Details

    • authorityService

      private org.alfresco.service.cmr.security.AuthorityService authorityService
    • commentPermissionService

      private CommentPermissionService commentPermissionService
  • Constructor Details

    • BeCPGTemplateExtension

      public BeCPGTemplateExtension()
  • Method Details

    • setAuthorityService

      public void setAuthorityService(org.alfresco.service.cmr.security.AuthorityService authorityService)

      Setter for the field authorityService.

      Parameters:
      authorityService - a AuthorityService object
    • setCommentPermissionService

      public void setCommentPermissionService(CommentPermissionService commentPermissionService)

      Setter for the field commentPermissionService.

      Parameters:
      commentPermissionService - a CommentPermissionService object
    • isAccountEnabled

      public boolean isAccountEnabled(org.alfresco.repo.template.TemplateNode person)

      isAccountEnabled.

      Parameters:
      person - a TemplateNode object
      Returns:
      a boolean
    • isCurrentUserExternal

      public boolean isCurrentUserExternal()
    • canModifyComment

      public boolean canModifyComment(org.alfresco.repo.template.TemplateNode comment)
      Tells whether the current user can edit and delete a comment, see CommentPermissionService.
      Parameters:
      comment - the comment node
      Returns:
      false if the current user is an external user who did not post the comment, or if a comment permission plugin refuses it, true otherwise