com.atlassian.mywork.rest
Class RestTestClient

java.lang.Object
  extended by com.atlassian.mywork.rest.RestTestClient

public class RestTestClient
extends java.lang.Object


Constructor Summary
RestTestClient()
           
RestTestClient(java.lang.String url, java.lang.String username, java.lang.String password)
           
 
Method Summary
 Notification createNotification(Notification notification)
           
 Task createOrUpdateTask(Task task)
           
 void deleteNotification(long id)
           
 void deleteTask(long id)
           
 void deleteTaskByGlobalId(java.lang.String username, java.lang.String globalId)
           
 JsonCount getCount()
           
 int getNewNotificationCount()
           
 Notification getNotification(long notificationId)
           
 java.util.List<JsonNotificationGroup> getNotificationGroups(int after)
           
 java.util.List<JsonNotificationGroup> getNotificationGroups(long after, long before, int limit)
           
 java.util.List<Notification> getNotifications()
           
 Rest getRest()
           
 Task getTask(long id)
           
 Task getTask(java.lang.String globalId)
           
 java.util.List<Task> getTasks()
           
 void moveBefore(long sourceId, java.lang.Long targetId)
           
 com.sun.jersey.api.client.WebResource resource(java.lang.String path)
           
 void setRead(java.lang.Long... ids)
           
 void setServiceSelectorTarget(java.lang.String target)
           
 void setStatus(long notificationId, Status status)
           
 void setTimeout(int timeout, int maxTimeout)
           
 void update(Task task)
           
 void updateTaskNotes(long taskId, java.lang.String notes)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RestTestClient

public RestTestClient()

RestTestClient

public RestTestClient(java.lang.String url,
                      java.lang.String username,
                      java.lang.String password)
Method Detail

resource

public com.sun.jersey.api.client.WebResource resource(java.lang.String path)

getRest

public Rest getRest()

getNotifications

public java.util.List<Notification> getNotifications()

getNotificationGroups

public java.util.List<JsonNotificationGroup> getNotificationGroups(int after)

getNotificationGroups

public java.util.List<JsonNotificationGroup> getNotificationGroups(long after,
                                                                   long before,
                                                                   int limit)

getNotification

public Notification getNotification(long notificationId)

createNotification

public Notification createNotification(Notification notification)

deleteNotification

public void deleteNotification(long id)

setStatus

public void setStatus(long notificationId,
                      Status status)

createOrUpdateTask

public Task createOrUpdateTask(Task task)

getTasks

public java.util.List<Task> getTasks()

getTask

public Task getTask(long id)

getTask

public Task getTask(java.lang.String globalId)

update

public void update(Task task)

updateTaskNotes

public void updateTaskNotes(long taskId,
                            java.lang.String notes)
                     throws java.io.IOException
Throws:
java.io.IOException

deleteTask

public void deleteTask(long id)

deleteTaskByGlobalId

public void deleteTaskByGlobalId(java.lang.String username,
                                 java.lang.String globalId)
                          throws java.io.UnsupportedEncodingException
Throws:
java.io.UnsupportedEncodingException

moveBefore

public void moveBefore(long sourceId,
                       java.lang.Long targetId)

setRead

public void setRead(java.lang.Long... ids)

getNewNotificationCount

public int getNewNotificationCount()

getCount

public JsonCount getCount()

setTimeout

public void setTimeout(int timeout,
                       int maxTimeout)

setServiceSelectorTarget

public void setServiceSelectorTarget(java.lang.String target)


Copyright © 2013 Atlassian. All Rights Reserved.