Class AddMemberMailNotifierObserver

All Implemented Interfaces:
AsyncObserver, Observer, LogEnabled, PluginAware, Serviceable

Notifier to send mail to a newly added member of a workspace.
  • Constructor Details

  • Method Details

    • supports

      public boolean supports(Event event)
      Description copied from interface: Observer
      Checks if the event is supported. If true, the observe(Event) method will be called.
      Parameters:
      event - the event.
      Returns:
      true for observing this event, false otherwise.
    • observe

      public void observe(Event event, Map<String,Object> transientVars) throws Exception
      Description copied from interface: Observer
      Observes an event.
      Parameters:
      event - the event.
      transientVars - transientVars passed from one Observer to another when processing a single Event. This may allow optimizations between observers.
      Throws:
      Exception - if an error occurs. All exceptions will be logged but not propagated, as the observation mechanism should never fail.
    • getSubjectI18nizableText

      Gets the I18nizableText for subject of the mail
      Parameters:
      project - the project
      member - the member
      Returns:
      the subject
    • getSubjectI18nKey

      Gets the i18n subject key
      Returns:
      the i18n subject key
    • getSubjectParams

      protected List<String> getSubjectParams(Project project, JCRProjectMember member)
      Gets the i18n parameters for subject key
      Parameters:
      project - the project
      member - the member
      Returns:
      the i18n parameters
    • getBodyI18nizableText

      Gets the I18nizableText for body of the mail
      Parameters:
      project - the project
      member - the member
      Returns:
      the body
    • getBodyI18nKey

      protected String getBodyI18nKey()
      Gets the i18n body key
      Returns:
      the i18n body key
    • getBodyParams

      protected List<String> getBodyParams(Project project, JCRProjectMember jcrMember)
      Gets the i18n parameters for body key
      Parameters:
      project - the project
      jcrMember - the member
      Returns:
      the i18n parameters