public interface ChangeRequestService
Modifier and Type | Method and Description |
---|---|
Boolean |
acceptChangeRequest(String spaceName,
String repositoryAlias,
Long changeRequestId)
Accepts the change request.
|
void |
addComment(String spaceName,
String repositoryAlias,
Long changeRequestId,
String text)
Adds a comment to the change request comment list.
|
void |
closeChangeRequest(String spaceName,
String repositoryAlias,
Long changeRequestId)
Closes the change request.
|
ChangeRequestCountSummary |
countChangeRequests(String spaceName,
String repositoryAlias)
Retrieves the number of change requests that the user is able to visualize.
|
ChangeRequest |
createChangeRequest(String spaceName,
String repositoryAlias,
String sourceBranch,
String targetBranch,
String summary,
String description)
Creates a change request and stores it into the tracking system.
|
void |
deleteChangeRequests(String spaceName,
String repositoryAlias,
String associatedBranchName)
Deletes all change requests associated with the given branch.
|
void |
deleteComment(String spaceName,
String repositoryAlias,
Long changeRequestId,
Long commentId)
Deletes a comment from the change request comment list.
|
ChangeRequest |
getChangeRequest(String spaceName,
String repositoryAlias,
Long changeRequestId)
Retrieves the change request with the given id.
|
List<ChangeRequest> |
getChangeRequests(String spaceName,
String repositoryAlias)
Retrieves the list of change requests that the user is able to visualize.
|
PaginatedChangeRequestList |
getChangeRequests(String spaceName,
String repositoryAlias,
Integer page,
Integer pageSize,
List<ChangeRequestStatus> statusList,
String filter)
Retrieves the list of change requests that the user is able to visualize.
|
PaginatedChangeRequestList |
getChangeRequests(String spaceName,
String repositoryAlias,
Integer page,
Integer pageSize,
String filter)
Retrieves the list of change requests that the user is able to visualize.
|
List<ChangeRequest> |
getChangeRequests(String spaceName,
String repositoryAlias,
List<ChangeRequestStatus> statusList)
Retrieves the list of change requests that the user is able to visualize.
|
List<ChangeRequest> |
getChangeRequests(String spaceName,
String repositoryAlias,
List<ChangeRequestStatus> statusList,
String filter)
Retrieves the list of change requests that the user is able to visualize.
|
List<ChangeRequest> |
getChangeRequests(String spaceName,
String repositoryAlias,
String filter)
Retrieves the list of change requests that the user is able to visualize.
|
PaginatedChangeRequestCommentList |
getComments(String spaceName,
String repositoryAlias,
Long changeRequestId,
Integer page,
Integer pageSize)
Obtains all the comments associated with a change request.
|
List<ChangeRequestDiff> |
getDiff(String spaceName,
String repositoryAlias,
Long changeRequestId)
Obtains differences between branches involved in the given change request.
|
List<ChangeRequestDiff> |
getDiff(String spaceName,
String repositoryAlias,
String sourceBranch,
String targetBranch)
Obtains differences between branches.
|
void |
rejectChangeRequest(String spaceName,
String repositoryAlias,
Long changeRequestId)
Rejects the change request.
|
void |
reopenChangeRequest(String spaceName,
String repositoryAlias,
Long changeRequestId)
Reopens the change request.
|
Boolean |
revertChangeRequest(String spaceName,
String repositoryAlias,
Long changeRequestId)
Reverts the change request.
|
void |
updateChangeRequestDescription(String spaceName,
String repositoryAlias,
Long changeRequestId,
String updatedDescription)
Updates the change request description.
|
void |
updateChangeRequestSummary(String spaceName,
String repositoryAlias,
Long changeRequestId,
String updatedSummary)
Updates the change request summary.
|
ChangeRequest createChangeRequest(String spaceName, String repositoryAlias, String sourceBranch, String targetBranch, String summary, String description)
spaceName
- the space containing the origin repositoryrepositoryAlias
- the repository aliassourceBranch
- the branch where you want to get pulledtargetBranch
- the branch where you want impact your changessummary
- the short summary of the change requestdescription
- the description of the change requestList<ChangeRequest> getChangeRequests(String spaceName, String repositoryAlias)
spaceName
- the space containing the origin repositoryrepositoryAlias
- the repository aliasList<ChangeRequest> getChangeRequests(String spaceName, String repositoryAlias, String filter)
spaceName
- the space containing the origin repositoryrepositoryAlias
- the repository aliasfilter
- a string to filter the resultsList<ChangeRequest> getChangeRequests(String spaceName, String repositoryAlias, List<ChangeRequestStatus> statusList)
spaceName
- the space containing the origin repositoryrepositoryAlias
- the repository aliasstatusList
- change request status to filter the resultsList<ChangeRequest> getChangeRequests(String spaceName, String repositoryAlias, List<ChangeRequestStatus> statusList, String filter)
spaceName
- the space containing the origin repositoryrepositoryAlias
- the repository aliasstatusList
- change request status to filter the resultsfilter
- a string to filter the resultsPaginatedChangeRequestList getChangeRequests(String spaceName, String repositoryAlias, Integer page, Integer pageSize, String filter)
spaceName
- the space containing the origin repositoryrepositoryAlias
- the repository aliaspage
- the desired pagepageSize
- the size of the pagefilter
- a string to filter the resultsPaginatedChangeRequestList getChangeRequests(String spaceName, String repositoryAlias, Integer page, Integer pageSize, List<ChangeRequestStatus> statusList, String filter)
spaceName
- the space containing the origin repositoryrepositoryAlias
- the repository aliaspage
- the desired pagepageSize
- the size of the pagestatusList
- change request status to filter the resultsfilter
- a string to filter the resultsChangeRequest getChangeRequest(String spaceName, String repositoryAlias, Long changeRequestId)
spaceName
- the space containing the origin repositoryrepositoryAlias
- the repository used as a filterchangeRequestId
- the id of the change requestChangeRequestCountSummary countChangeRequests(String spaceName, String repositoryAlias)
spaceName
- the space containing the origin repositoryrepositoryAlias
- the repository aliasList<ChangeRequestDiff> getDiff(String spaceName, String repositoryAlias, String sourceBranch, String targetBranch)
spaceName
- the space containing the origin repositoryrepositoryAlias
- the origin repositorysourceBranch
- the source branchtargetBranch
- the target branchList<ChangeRequestDiff> getDiff(String spaceName, String repositoryAlias, Long changeRequestId)
spaceName
- the space containing the origin repositoryrepositoryAlias
- the origin repositorychangeRequestId
- the id of the change requestvoid deleteChangeRequests(String spaceName, String repositoryAlias, String associatedBranchName)
spaceName
- the space containing the origin repositoryrepositoryAlias
- the origin repositoryassociatedBranchName
- branch namevoid rejectChangeRequest(String spaceName, String repositoryAlias, Long changeRequestId)
spaceName
- the space containing the origin repositoryrepositoryAlias
- the repository used as a filterchangeRequestId
- the id of the change requestBoolean acceptChangeRequest(String spaceName, String repositoryAlias, Long changeRequestId)
spaceName
- the space containing the origin repositoryrepositoryAlias
- the repository used as a filterchangeRequestId
- the id of the change requestBoolean revertChangeRequest(String spaceName, String repositoryAlias, Long changeRequestId)
spaceName
- the space containing the origin repositoryrepositoryAlias
- the repository used as a filterchangeRequestId
- the id of the change requestvoid closeChangeRequest(String spaceName, String repositoryAlias, Long changeRequestId)
spaceName
- the space containing the origin repositoryrepositoryAlias
- the repository used as a filterchangeRequestId
- the id of the change requestvoid reopenChangeRequest(String spaceName, String repositoryAlias, Long changeRequestId)
spaceName
- the space containing the origin repositoryrepositoryAlias
- the repository used as a filterchangeRequestId
- the id of the change requestvoid updateChangeRequestSummary(String spaceName, String repositoryAlias, Long changeRequestId, String updatedSummary)
spaceName
- the space containing the origin repositoryrepositoryAlias
- the repository used as a filterchangeRequestId
- the id of the change requestupdatedSummary
- updated summary of the change requestvoid updateChangeRequestDescription(String spaceName, String repositoryAlias, Long changeRequestId, String updatedDescription)
spaceName
- the space containing the origin repositoryrepositoryAlias
- the repository used as a filterchangeRequestId
- the id of the change requestupdatedDescription
- updated description of the change requestPaginatedChangeRequestCommentList getComments(String spaceName, String repositoryAlias, Long changeRequestId, Integer page, Integer pageSize)
spaceName
- the space containing the origin repositoryrepositoryAlias
- the repository used as a filterchangeRequestId
- the id of the change requestpage
- the desired pagepageSize
- the size of the pagevoid addComment(String spaceName, String repositoryAlias, Long changeRequestId, String text)
spaceName
- the space containing the origin repositoryrepositoryAlias
- the repository used as a filterchangeRequestId
- the id of the change requesttext
- the comment textvoid deleteComment(String spaceName, String repositoryAlias, Long changeRequestId, Long commentId)
spaceName
- the space containing the origin repositoryrepositoryAlias
- the repository used as a filterchangeRequestId
- the id of the change requestcommentId
- the id of the commentCopyright © 2012–2019 JBoss by Red Hat. All rights reserved.