Interface ProjectApi
public interface ProjectApi
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classstatic classstatic classProjectApi.ListRefsRequest<T extends RefInfo>static class -
Method Summary
Modifier and TypeMethodDescriptionaccess()Look up a branch by refname.branches()children()children(boolean recursive) children(int limit) Lookup a commit by itsObjectIdstring.commitsIn(Collection<String> commits, Collection<String> refs) config()config(ConfigInput in) create()create(ProjectInput in) Lookup a dashboard by its name.Get the project's default dashboard.voiddefaultDashboard(String name) Set the project's default dashboard.voidvoidvoidget()head()Get the name of the branch to whichHEADpoints.voidSet the project'sHEAD.voidindex(boolean indexChildren) Reindex the project and children in caseindexChildrenis specified.voidReindexes all changes of the project.labels()voidlabels(BatchLabelInput input) Adds, updates and deletes label definitions in a batch.labelsReview(BatchLabelInput input) Same aslabels(BatchLabelInput), but creates a change with required updates.parent()Get the name of the project's parent.voidSet the project's parent.voidRemove the project's default dashboard.submitRequirement(String name) voidAdds, updates and deletes submit requirements definitions in a batch.Creates a change with required submit requirements updates.Look up a tag by refname.tags()
-
Method Details
-
create
- Throws:
RestApiException
-
create
- Throws:
RestApiException
-
get
- Throws:
RestApiException
-
description
- Throws:
RestApiException
-
description
- Throws:
RestApiException
-
access
- Throws:
RestApiException
-
access
- Throws:
RestApiException
-
accessChange
- Throws:
RestApiException
-
checkAccess
- Throws:
RestApiException
-
check
- Throws:
RestApiException
-
config
- Throws:
RestApiException
-
config
- Throws:
RestApiException
-
configReview
- Throws:
RestApiException
-
commitsIn
Map<String,Set<String>> commitsIn(Collection<String> commits, Collection<String> refs) throws RestApiException - Throws:
RestApiException
-
branches
ProjectApi.ListRefsRequest<BranchInfo> branches() -
tags
ProjectApi.ListRefsRequest<TagInfo> tags() -
deleteBranches
- Throws:
RestApiException
-
deleteTags
- Throws:
RestApiException
-
children
- Throws:
RestApiException
-
children
- Throws:
RestApiException
-
children
- Throws:
RestApiException
-
child
- Throws:
RestApiException
-
branch
Look up a branch by refname.Note: This method eagerly reads the branch. Methods that mutate the branch do not necessarily re-read the branch. Therefore, calling a getter method on an instance after calling a mutation method on that same instance is not guaranteed to reflect the mutation. It is not recommended to store references to
BranchApiinstances.- Parameters:
ref- branch name, with or without "refs/heads/" prefix.- Returns:
- API for accessing the branch.
- Throws:
RestApiException- if a problem occurred reading the project.
-
tag
Look up a tag by refname.- Parameters:
ref- tag name, with or without "refs/tags/" prefix.- Returns:
- API for accessing the tag.
- Throws:
RestApiException- if a problem occurred reading the project.
-
commit
Lookup a commit by itsObjectIdstring.- Parameters:
commit- theObjectIdstring.- Returns:
- API for accessing the commit.
- Throws:
RestApiException
-
dashboard
Lookup a dashboard by its name.- Parameters:
name- the name.- Returns:
- API for accessing the dashboard.
- Throws:
RestApiException
-
defaultDashboard
Get the project's default dashboard.- Returns:
- API for accessing the dashboard.
- Throws:
RestApiException
-
defaultDashboard
Set the project's default dashboard.- Parameters:
name- the dashboard to set as default.- Throws:
RestApiException
-
removeDefaultDashboard
Remove the project's default dashboard.- Throws:
RestApiException
-
dashboards
- Throws:
RestApiException
-
head
Get the name of the branch to whichHEADpoints.- Throws:
RestApiException
-
head
Set the project'sHEAD.- Parameters:
head- the HEAD- Throws:
RestApiException
-
parent
Get the name of the project's parent.- Throws:
RestApiException
-
parent
Set the project's parent.- Parameters:
parent- the parent- Throws:
RestApiException
-
index
Reindex the project and children in caseindexChildrenis specified.- Parameters:
indexChildren- decides if children should be indexed recursively- Throws:
RestApiException
-
indexChanges
Reindexes all changes of the project.- Throws:
RestApiException
-
labels
- Throws:
RestApiException
-
label
- Throws:
RestApiException
-
submitRequirements
- Throws:
RestApiException
-
submitRequirement
- Throws:
RestApiException
-
labels
Adds, updates and deletes label definitions in a batch.- Parameters:
input- input that describes additions, updates and deletions of label definitions- Throws:
RestApiException
-
labelsReview
Same aslabels(BatchLabelInput), but creates a change with required updates.- Throws:
RestApiException
-
submitRequirements
Adds, updates and deletes submit requirements definitions in a batch.- Parameters:
input- input that describes additions, updates and deletions of submit requirements- Throws:
RestApiException
-
submitRequirementsReview
@CanIgnoreReturnValue ChangeInfo submitRequirementsReview(BatchSubmitRequirementInput input) throws RestApiException Creates a change with required submit requirements updates.See
submitRequirements(BatchSubmitRequirementInput)for details- Throws:
RestApiException
-