com.atlassian.mywork.host.service
Class AppLinkHelper

java.lang.Object
  extended by com.atlassian.mywork.host.service.AppLinkHelper

public class AppLinkHelper
extends java.lang.Object


Constructor Summary
AppLinkHelper(LocalNotificationService notificationService, com.atlassian.applinks.host.spi.InternalHostApplication internalHostApplication, com.atlassian.sal.api.message.I18nResolver i18nResolver)
           
 
Method Summary
protected  void createNotification(java.lang.String username, com.atlassian.applinks.api.ApplicationLink applicationLink, com.atlassian.applinks.api.AuthorisationURIGenerator authorisationURIGenerator)
           
<T> T
execute(java.lang.String username, com.atlassian.applinks.api.ApplicationLink appLink, java.lang.String url, com.google.common.base.Function<com.atlassian.applinks.api.ApplicationLinkRequest,com.atlassian.applinks.api.ApplicationLinkRequest> processRequest, com.google.common.base.Function<com.atlassian.sal.api.net.Response,T> processResponse, com.google.common.base.Function<com.atlassian.applinks.api.AuthorisationURIGenerator,T> processCredentialsRequired)
           
<T> T
execute(java.lang.String username, com.atlassian.applinks.api.ApplicationLink appLink, java.lang.String url, com.google.common.base.Function<com.atlassian.applinks.api.ApplicationLinkRequest,com.atlassian.applinks.api.ApplicationLinkRequest> processRequest, com.google.common.base.Function<com.atlassian.sal.api.net.Response,T> processResponse, com.google.common.base.Function<com.atlassian.applinks.api.AuthorisationURIGenerator,T> processCredentialsRequired, com.atlassian.sal.api.net.Request.MethodType type)
           
<T> T
execute(java.lang.String username, com.atlassian.applinks.api.ApplicationLink appLink, java.lang.String url, com.google.common.base.Function<com.atlassian.sal.api.net.Response,T> f2)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AppLinkHelper

public AppLinkHelper(LocalNotificationService notificationService,
                     com.atlassian.applinks.host.spi.InternalHostApplication internalHostApplication,
                     com.atlassian.sal.api.message.I18nResolver i18nResolver)
Method Detail

execute

public <T> T execute(java.lang.String username,
                     com.atlassian.applinks.api.ApplicationLink appLink,
                     java.lang.String url,
                     com.google.common.base.Function<com.atlassian.sal.api.net.Response,T> f2)
          throws com.atlassian.sal.api.net.ResponseException
Throws:
com.atlassian.sal.api.net.ResponseException

execute

public <T> T execute(java.lang.String username,
                     com.atlassian.applinks.api.ApplicationLink appLink,
                     java.lang.String url,
                     com.google.common.base.Function<com.atlassian.applinks.api.ApplicationLinkRequest,com.atlassian.applinks.api.ApplicationLinkRequest> processRequest,
                     com.google.common.base.Function<com.atlassian.sal.api.net.Response,T> processResponse,
                     com.google.common.base.Function<com.atlassian.applinks.api.AuthorisationURIGenerator,T> processCredentialsRequired)
          throws com.atlassian.sal.api.net.ResponseException
Throws:
com.atlassian.sal.api.net.ResponseException

execute

public <T> T execute(java.lang.String username,
                     com.atlassian.applinks.api.ApplicationLink appLink,
                     java.lang.String url,
                     com.google.common.base.Function<com.atlassian.applinks.api.ApplicationLinkRequest,com.atlassian.applinks.api.ApplicationLinkRequest> processRequest,
                     com.google.common.base.Function<com.atlassian.sal.api.net.Response,T> processResponse,
                     com.google.common.base.Function<com.atlassian.applinks.api.AuthorisationURIGenerator,T> processCredentialsRequired,
                     com.atlassian.sal.api.net.Request.MethodType type)
          throws com.atlassian.sal.api.net.ResponseException
Throws:
com.atlassian.sal.api.net.ResponseException

createNotification

protected void createNotification(java.lang.String username,
                                  com.atlassian.applinks.api.ApplicationLink applicationLink,
                                  com.atlassian.applinks.api.AuthorisationURIGenerator authorisationURIGenerator)


Copyright © 2012 Atlassian. All Rights Reserved.