com.atlassian.mywork.host.rest
Class ActionResource
java.lang.Object
com.atlassian.mywork.host.rest.ActionResource
public class ActionResource
- extends java.lang.Object
Direct endpoint for inline actions, will then forward to the correct client or run locally.
Currently this relies on clients being registered as application links, and storing the ID on each notification.
|
Method Summary |
javax.ws.rs.core.Response |
execute(javax.servlet.http.HttpServletRequest request,
org.codehaus.jackson.JsonNode action)
Executes an inline action for a specific notification. |
javax.ws.rs.core.Response |
executeTask(javax.servlet.http.HttpServletRequest request,
org.codehaus.jackson.JsonNode action)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ActionResource
public ActionResource(com.atlassian.sal.api.user.UserManager userManager,
LocalNotificationService notificationService,
LocalTaskService taskService,
com.atlassian.applinks.host.spi.HostApplication hostApplication,
ActionServiceSelector actionService,
com.atlassian.applinks.api.ApplicationLinkService applicationLinkService,
AppLinkHelper appLinkHelper)
execute
public javax.ws.rs.core.Response execute(@Context
javax.servlet.http.HttpServletRequest request,
org.codehaus.jackson.JsonNode action)
- Executes an inline action for a specific notification.
Returning a resultUrl is optional, and will allow the action to link to object created by this action,
such as a new comment.
executeTask
public javax.ws.rs.core.Response executeTask(@Context
javax.servlet.http.HttpServletRequest request,
org.codehaus.jackson.JsonNode action)
Copyright © 2012 Atlassian. All Rights Reserved.