com.atlassian.mywork.rest
Class RestTestClient
java.lang.Object
com.atlassian.mywork.rest.RestTestClient
public class RestTestClient
- extends java.lang.Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RestTestClient
public RestTestClient()
RestTestClient
public RestTestClient(java.lang.String url,
java.lang.String username,
java.lang.String password)
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.