Interface IMarkerProvider


  • public interface IMarkerProvider
    This interface represents a provider of NotifyGru markers
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.lang.String getId()
      Gives the id.
      java.lang.String getTitleI18nKey()
      Gives the i18n key of the title
      java.util.Collection<InfoMarker> provideMarkerDescriptions​(java.lang.String solrTag, javax.servlet.http.HttpServletRequest request)
      Gives the marker descriptions
      java.util.Collection<InfoMarker> provideMarkerValues​(java.lang.String solrTag, java.lang.String uid)
      Provides the values of the markers.
      java.util.Map<java.lang.String,​java.lang.String> valueMarker​(java.lang.String marker, java.lang.String solrTag, java.lang.String uid)  
    • Method Detail

      • getId

        java.lang.String getId()

        Gives the id.

        The id is used to find which marker providers have to be used in the task. The id must be unique among the marker providers.

        Returns:
        the id
      • getTitleI18nKey

        java.lang.String getTitleI18nKey()
        Gives the i18n key of the title
        Returns:
        the i18n key of the title
      • provideMarkerDescriptions

        java.util.Collection<InfoMarker> provideMarkerDescriptions​(java.lang.String solrTag,
                                                                   javax.servlet.http.HttpServletRequest request)

        Gives the marker descriptions

        Used in the task configuration page (in order to add markers in rich texts for example)

        Returns:
        the marker descriptions
      • provideMarkerValues

        java.util.Collection<InfoMarker> provideMarkerValues​(java.lang.String solrTag,
                                                             java.lang.String uid)

        Provides the values of the markers.

        This method is used to replace the markers by the actual values of the resource when the notification id send.

        Parameters:
        request - the request
        Returns:
        the value of the markers
      • valueMarker

        java.util.Map<java.lang.String,​java.lang.String> valueMarker​(java.lang.String marker,
                                                                           java.lang.String solrTag,
                                                                           java.lang.String uid)