Interface ChatInfoViewContext

All Superinterfaces:
ChatProvider, IssueProvider, IssueViewContext, UserProvider, ViewContext
All Known Subinterfaces:
AgentChatEditorViewContext, AgentChatInfoViewContext, ArchiveAccessChatInfoViewContext, BacklogChatInfoViewContext, SearchResultChatInfoViewContext

public interface ChatInfoViewContext extends IssueViewContext, ChatProvider
This interface provides information and functionality for view context sensitive data and operations.
Since:
10.0.142
  • Method Summary

    Modifier and Type
    Method
    Description
    getViewUrl(String viewPath)
    This method should be used to prepare the chat info view url

    Methods inherited from interface com.novomind.ecom.api.iagent.provider.ChatProvider

    getChat

    Methods inherited from interface com.novomind.ecom.api.iagent.frontend.IssueViewContext

    getIssue

    Methods inherited from interface com.novomind.ecom.api.iagent.frontend.ViewContext

    getUser
  • Method Details

    • getViewUrl

      String getViewUrl(String viewPath)
      This method should be used to prepare the chat info view url
      Parameters:
      viewPath - the relative path to the view (.xhtml) or an absolute url. Supported formats: 1. Absolute path without protocol: //host.domain.com/... 2. Absolute path with protocol: http://host.domain.com/... https://host.domain.com/... 3. Relative path to .xhtml file: /chatinfo/helloworld/helloWorld.xhtml Example:
               public class HelloWorldChatInfoTab implements ChatInfoTabProvider {
                 @Override
                 public ChatInfoTab getChatInfoTab(ChatInfoViewContext context) {
                   return new ChatInfoTab(name, displayName, context.getViewUrl("/chatinfo/helloworld/helloWorld.xhtml"));
                 }
               }
               
      Returns:
      the correct url to render the view that can be passed to ChatInfoTab
      Since:
      10.0.142