PageRenderTime 57ms CodeModel.GetById 22ms RepoModel.GetById 0ms app.codeStats 0ms

/Atlassian.Jira/Remote/IJiraRemoteService.cs

https://bitbucket.org/yyo/atlassian.net-sdk-v2.0
C# | 131 lines | 122 code | 6 blank | 3 comment | 0 complexity | 5d5b3b3657fd63e1ff8462e787dba3b2 MD5 | raw file
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. namespace Atlassian.Jira.Remote
  6. {
  7. /// <summary>
  8. /// Abstract interactions with remote jira server
  9. /// </summary>
  10. public interface IJiraRemoteService
  11. {
  12. string Url { get; }
  13. string Login(string username, string password);
  14. string GetJsonFromJqlSearch(string jql, int startAt, int maxResults, string[] fields = null);
  15. int GetIssueCountFromJqlSearch(string jql);
  16. RemoteIssue[] GetIssuesFromJqlSearch(string token, string jqlSearch, int maxNumResults);
  17. RemoteIssue CreateIssue(string token, RemoteIssue newIssue);
  18. RemoteIssue CreateIssueWithParent(string token, RemoteIssue newIssue, string parentIssueKey);
  19. RemoteIssue UpdateIssue(string token, string key, RemoteFieldValue[] fields);
  20. RemoteAttachment[] GetAttachmentsFromIssue(string token, string key);
  21. bool AddBase64EncodedAttachmentsToIssue(string token, string key, string[] fileNames, string[] base64EncodedAttachmentData);
  22. RemoteComment[] GetCommentsFromIssue(string token, string key);
  23. void AddComment(string token, string key, RemoteComment comment);
  24. RemoteIssueType[] GetIssueTypes(string token, string projectId);
  25. RemotePriority[] GetPriorities(string token);
  26. RemoteResolution[] GetResolutions(string token);
  27. RemoteStatus[] GetStatuses(string token);
  28. RemoteVersion[] GetVersions(string token, string projectKey);
  29. RemoteComponent[] GetComponents(string token, string projectKey);
  30. RemoteField[] GetCustomFields(string token);
  31. RemoteField[] GetFieldsForEdit(string token, string key);
  32. RemoteWorklog AddWorklogAndAutoAdjustRemainingEstimate(string token, string key, RemoteWorklog worklog);
  33. RemoteWorklog AddWorklogAndRetainRemainingEstimate(string token, string key, RemoteWorklog worklog);
  34. RemoteWorklog AddWorklogWithNewRemainingEstimate(string token, string key, RemoteWorklog worklog, string newRemainingEstimate);
  35. RemoteWorklog[] GetWorkLogs(string token, string key);
  36. RemoteProject[] GetProjects(string token);
  37. RemoteFilter[] GetFavouriteFilters(string token);
  38. RemoteIssue[] GetIssuesFromFilterWithLimit(string token, string filterId, int offset, int maxResults);
  39. RemoteNamedObject[] GetAvailableActions(string token, string issueKey);
  40. RemoteIssue ProgressWorkflowAction(string token, string issueKey, string actionId, RemoteFieldValue[] remoteFieldValues);
  41. void DeleteWorklogAndAutoAdjustRemainingEstimate(string token, string in1);
  42. void DeleteWorklogAndRetainRemainingEstimate(string token, string worklogId);
  43. void DeleteWorklogWithNewRemainingEstimate(string token, string worklogId, string newRemainingEstimate);
  44. void AddActorsToProjectRole(string in0, string[] in1, RemoteProjectRole in2, RemoteProject in3, string in4);
  45. void AddDefaultActorsToProjectRole(string in0, string[] in1, RemoteProjectRole in2, string in3);
  46. RemotePermissionScheme AddPermissionTo(string in0, RemotePermissionScheme in1, RemotePermission in2, RemoteEntity in3);
  47. void AddUserToGroup(string in0, RemoteGroup in1, RemoteUser in2);
  48. RemoteVersion AddVersion(string in0, string in1, RemoteVersion in2);
  49. void ArchiveVersion(string in0, string in1, string in2, bool in3);
  50. RemoteGroup CreateGroup(string in0, string in1, RemoteUser in2);
  51. RemoteIssue CreateIssueWithSecurityLevel(string in0, RemoteIssue in1, long in2);
  52. RemotePermissionScheme CreatePermissionScheme(string in0, string in1, string in2);
  53. RemoteProject CreateProject(string in0, string in1, string in2, string in3, string in4, string in5, RemotePermissionScheme in6, RemoteScheme in7, RemoteScheme in8);
  54. RemoteProject CreateProjectFromObject(string in0, RemoteProject in1);
  55. RemoteProjectRole CreateProjectRole(string in0, RemoteProjectRole in1);
  56. RemoteUser CreateUser(string in0, string in1, string in2, string in3, string in4);
  57. void DeleteGroup(string in0, string in1, string in2);
  58. void DeleteIssue(string in0, string in1);
  59. RemotePermissionScheme DeletePermissionFrom(string in0, RemotePermissionScheme in1, RemotePermission in2, RemoteEntity in3);
  60. void DeletePermissionScheme(string in0, string in1);
  61. void DeleteProject(string in0, string in1);
  62. void DeleteProjectAvatar(string in0, long in1);
  63. void DeleteProjectRole(string in0, RemoteProjectRole in1, bool in2);
  64. void DeleteUser(string in0, string in1);
  65. RemoteComment EditComment(string in0, RemoteComment in1);
  66. RemotePermission[] GetAllPermissions(string in0);
  67. RemoteScheme[] GetAssociatedNotificationSchemes(string in0, RemoteProjectRole in1);
  68. RemoteScheme[] GetAssociatedPermissionSchemes(string in0, RemoteProjectRole in1);
  69. RemoteComment GetComment(string in0, long in1);
  70. RemoteComment[] GetComments(string in0, string in1);
  71. RemoteConfiguration GetConfiguration(string in0);
  72. RemoteRoleActors GetDefaultRoleActors(string in0, RemoteProjectRole in1);
  73. RemoteField[] GetFieldsForAction(string in0, string in1, string in2);
  74. RemoteGroup GetGroup(string in0, string in1);
  75. RemoteIssue GetIssue(string in0, string in1);
  76. RemoteIssue GetIssueById(string in0, string in1);
  77. long GetIssueCountForFilter(string in0, string in1);
  78. RemoteIssue[] GetIssuesFromTextSearchWithLimit(string in0, string in1, int in2, int in3);
  79. RemoteIssue[] GetIssuesFromTextSearchWithProject(string in0, string[] in1, string in2, int in3);
  80. RemoteIssueType[] GetIssueTypes(string in0);
  81. RemoteIssueType[] GetIssueTypesForProject(string in0, string in1);
  82. RemoteScheme[] GetNotificationSchemes(string in0);
  83. RemotePermissionScheme[] GetPermissionSchemes(string in0);
  84. RemoteAvatar GetProjectAvatar(string in0, string in1);
  85. RemoteAvatar[] GetProjectAvatars(string in0, string in1, bool in2);
  86. RemoteProject GetProjectById(string in0, long in1);
  87. RemoteProject GetProjectByKey(string in0, string in1);
  88. RemoteProjectRole GetProjectRole(string in0, long in1);
  89. RemoteProjectRoleActors GetProjectRoleActors(string in0, RemoteProjectRole in1, RemoteProject in2);
  90. RemoteProjectRole[] GetProjectRoles(string in0);
  91. RemoteProject[] GetProjectsNoSchemes(string in0);
  92. RemoteProject GetProjectWithSchemesById(string in0, long in1);
  93. DateTime GetResolutionDateById(string in0, long in1);
  94. DateTime GetResolutionDateByKey(string in0, string in1);
  95. RemoteSecurityLevel GetSecurityLevel(string in0, string in1);
  96. RemoteSecurityLevel[] GetSecurityLevels(string in0, string in1);
  97. RemoteScheme[] GetSecuritySchemes(string in0);
  98. RemoteServerInfo GetServerInfo(string in0);
  99. RemoteIssueType[] GetSubTaskIssueTypes(string in0);
  100. RemoteIssueType[] GetSubTaskIssueTypesForProject(string in0, string in1);
  101. RemoteUser GetUser(string in0, string in1);
  102. RemoteWorklog[] GetWorklogs(string in0, string in1);
  103. bool HasPermissionToCreateWorklog(string in0, string in1);
  104. bool HasPermissionToDeleteWorklog(string in0, string in1);
  105. bool HasPermissionToEditComment(string in0, RemoteComment in1);
  106. bool HasPermissionToUpdateWorklog(string in0, string in1);
  107. bool IsProjectRoleNameUnique(string in0, string in1);
  108. bool Logout(string in0);
  109. void RefreshCustomFields(string in0);
  110. void ReleaseVersion(string in0, string in1, RemoteVersion in2);
  111. void RemoveActorsFromProjectRole(string in0, string[] in1, RemoteProjectRole in2, RemoteProject in3, string in4);
  112. void RemoveAllRoleActorsByNameAndType(string in0, string in1, string in2);
  113. void RemoveAllRoleActorsByProject(string in0, RemoteProject in1);
  114. void RemoveDefaultActorsFromProjectRole(string in0, string[] in1, RemoteProjectRole in2, string in3);
  115. void RemoveUserFromGroup(string in0, RemoteGroup in1, RemoteUser in2);
  116. void SetNewProjectAvatar(string in0, string in1, string in2, string in3);
  117. void SetProjectAvatar(string in0, string in1, long in2);
  118. RemoteGroup UpdateGroup(string in0, RemoteGroup in1);
  119. RemoteProject UpdateProject(string in0, RemoteProject in1);
  120. void UpdateProjectRole(string in0, RemoteProjectRole in1);
  121. void UpdateWorklogAndAutoAdjustRemainingEstimate(string in0, RemoteWorklog in1);
  122. void UpdateWorklogAndRetainRemainingEstimate(string in0, RemoteWorklog in1);
  123. void UpdateWorklogWithNewRemainingEstimate(string in0, RemoteWorklog in1, string in2);
  124. }
  125. }