Interface MentionService

  • All Superinterfaces:
    BaseAPIService

    public interface MentionService
    extends BaseAPIService
    Fornece acesso aos serviços de menções.
    Since:
    1.5.13
    • Method Detail

      • formatText

        String formatText​(String text,
                          String formatPattern)
                   throws NamingException
        Formats a text with mentions acording to the given pattern. Type @[alias] in the formatPattern to replace with the mentioned's alias. Type @[name] in the formatPattern to replace with the mentioned's name.
        Parameters:
        text - text with mentions
        formatPattern - pattern to format the mentions inside the text
        Throws:
        NamingException
      • formatText

        String formatText​(Long objectId,
                          String objectClass,
                          String text,
                          String formatPattern)
                   throws NamingException
        Formats a text with mentions acording to the given pattern. Type @[alias] in the formatPattern to replace with the mentioned's alias. Type @[name] in the formatPattern to replace with the mentioned's name.
        Parameters:
        objectId - id of the object that has made the mentions
        objectClass - class of the object that has made the mentions
        text - text with mentions
        formatPattern - pattern to format the mentions inside the text
        Throws:
        NamingException