Interface MailInfoViewContext
- All Superinterfaces:
IssueProvider,IssueViewContext,MessageInfo,TicketProvider,UserProvider,ViewContext
- All Known Subinterfaces:
AgentBacklogMailInfoViewContext,AgentDraftMailInfoViewContext,AgentEditorMailInfoViewContext,AgentMailEditorViewContext,AgentMailInfoViewContext,AgentOutgoingMailInfoViewContext,AgentPhoneTicketMailInfoViewContext,AgentQuickCaseMailInfoViewContext,ArchiveAccessMailInfoViewContext,BacklogMailInfoViewContext,ClaimMailInfoViewContext,ExternalReplyMailInfoViewContext,IncomingMailInfoViewContext,OutgoingMailInfoViewContext,SearchResultMailInfoViewContext
This interface provides information and functionality for view context sensitive data and operations.
- Since:
- 10.0.16
-
Method Summary
Modifier and TypeMethodDescriptiongetViewUrl(String viewPath) This method should be used to prepare the mail info view urlMethods inherited from interface com.novomind.ecom.api.iagent.frontend.IssueViewContext
getIssueMethods inherited from interface com.novomind.ecom.api.imail.model.MessageInfo
getTicketIdMethods inherited from interface com.novomind.ecom.api.imail.provider.TicketProvider
getTicketMethods inherited from interface com.novomind.ecom.api.iagent.frontend.ViewContext
getUser
-
Method Details
-
getViewUrl
This method should be used to prepare the mail 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: /mailinfo/helloworld/helloWorldBacklog.xhtml Example:public class HelloWorldMailInfoTab implements MailInfoTabProvider { @Override public MailInfoTab getMailInfoTab(MailInfoViewContext context) { return new MailInfoTab(name, displayName, context.getViewUrl("/mailinfo/helloworld/helloWorld.xhtml")); } }- Returns:
- the correct url to render the view that can be passed to
MailInfoTab - Since:
- 10.0.16
-