Interface ProjectApi
- All Known Implementing Classes:
ProjectApi.NotImplemented
public interface ProjectApi
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic class
static class
static class
ProjectApi.ListRefsRequest<T extends RefInfo>
static class
static class
A default implementation which allows source compatibility when adding new methods to the interface. -
Method Summary
Modifier and TypeMethodDescriptionaccess()
Look up a branch by refname.branches()
children()
children
(boolean recursive) children
(int limit) Lookup a commit by itsObjectId
string.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.void
defaultDashboard
(String name) Set the project's default dashboard.void
void
void
get()
head()
Get the name of the branch to whichHEAD
points.void
Set the project'sHEAD
.void
index
(boolean indexChildren) Reindex the project and children in caseindexChildren
is specified.void
Reindexes all changes of the project.labels()
void
labels
(BatchLabelInput input) Adds, updates and deletes label definitions in a batch.parent()
Get the name of the project's parent.void
Set the project's parent.void
Remove the project's default dashboard.submitRequirement
(String name) 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
-
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
BranchApi
instances.- 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 itsObjectId
string.- Parameters:
commit
- theObjectId
string.- 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 whichHEAD
points.- 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 caseindexChildren
is 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
-