public interface ProjectApi
Modifier and Type | Interface and Description |
---|---|
static class |
ProjectApi.ListDashboardsRequest |
static class |
ProjectApi.ListRefsRequest<T extends RefInfo> |
static class |
ProjectApi.NotImplemented
A default implementation which allows source compatibility when adding new methods to the
interface.
|
Modifier and Type | Method and Description |
---|---|
ProjectAccessInfo |
access() |
ProjectAccessInfo |
access(ProjectAccessInput p) |
ChangeInfo |
accessChange(ProjectAccessInput p) |
BranchApi |
branch(java.lang.String ref)
Look up a branch by refname.
|
ProjectApi.ListRefsRequest<BranchInfo> |
branches() |
CheckProjectResultInfo |
check(CheckProjectInput in) |
AccessCheckInfo |
checkAccess(AccessCheckInput in) |
ChildProjectApi |
child(java.lang.String name) |
java.util.List<ProjectInfo> |
children() |
java.util.List<ProjectInfo> |
children(boolean recursive) |
CommitApi |
commit(java.lang.String commit)
Lookup a commit by its
ObjectId string. |
ConfigInfo |
config() |
ConfigInfo |
config(ConfigInput in) |
ProjectApi |
create() |
ProjectApi |
create(ProjectInput in) |
DashboardApi |
dashboard(java.lang.String name)
Lookup a dashboard by its name.
|
ProjectApi.ListDashboardsRequest |
dashboards() |
DashboardApi |
defaultDashboard()
Get the project's default dashboard.
|
void |
defaultDashboard(java.lang.String name)
Set the project's default dashboard.
|
void |
deleteBranches(DeleteBranchesInput in) |
void |
deleteTags(DeleteTagsInput in) |
java.lang.String |
description() |
void |
description(DescriptionInput in) |
ProjectInfo |
get() |
java.lang.String |
head()
Get the name of the branch to which
HEAD points. |
void |
head(java.lang.String head)
Set the project's
HEAD . |
void |
index(boolean indexChildren)
Reindex the project and children in case
indexChildren is specified. |
java.lang.String |
parent()
Get the name of the project's parent.
|
void |
parent(java.lang.String parent)
Set the project's parent.
|
void |
removeDefaultDashboard()
Remove the project's default dashboard.
|
TagApi |
tag(java.lang.String ref)
Look up a tag by refname.
|
ProjectApi.ListRefsRequest<TagInfo> |
tags() |
ProjectApi create() throws RestApiException
RestApiException
ProjectApi create(ProjectInput in) throws RestApiException
RestApiException
ProjectInfo get() throws RestApiException
RestApiException
java.lang.String description() throws RestApiException
RestApiException
void description(DescriptionInput in) throws RestApiException
RestApiException
ProjectAccessInfo access() throws RestApiException
RestApiException
ProjectAccessInfo access(ProjectAccessInput p) throws RestApiException
RestApiException
ChangeInfo accessChange(ProjectAccessInput p) throws RestApiException
RestApiException
AccessCheckInfo checkAccess(AccessCheckInput in) throws RestApiException
RestApiException
CheckProjectResultInfo check(CheckProjectInput in) throws RestApiException
RestApiException
ConfigInfo config() throws RestApiException
RestApiException
ConfigInfo config(ConfigInput in) throws RestApiException
RestApiException
ProjectApi.ListRefsRequest<BranchInfo> branches()
ProjectApi.ListRefsRequest<TagInfo> tags()
void deleteBranches(DeleteBranchesInput in) throws RestApiException
RestApiException
void deleteTags(DeleteTagsInput in) throws RestApiException
RestApiException
java.util.List<ProjectInfo> children() throws RestApiException
RestApiException
java.util.List<ProjectInfo> children(boolean recursive) throws RestApiException
RestApiException
ChildProjectApi child(java.lang.String name) throws RestApiException
RestApiException
BranchApi branch(java.lang.String ref) throws RestApiException
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.
ref
- branch name, with or without "refs/heads/" prefix.RestApiException
- if a problem occurred reading the project.TagApi tag(java.lang.String ref) throws RestApiException
ref
- tag name, with or without "refs/tags/" prefix.RestApiException
- if a problem occurred reading the project.CommitApi commit(java.lang.String commit) throws RestApiException
ObjectId
string.commit
- the ObjectId
string.RestApiException
DashboardApi dashboard(java.lang.String name) throws RestApiException
name
- the name.RestApiException
DashboardApi defaultDashboard() throws RestApiException
RestApiException
void defaultDashboard(java.lang.String name) throws RestApiException
name
- the dashboard to set as default.RestApiException
void removeDefaultDashboard() throws RestApiException
RestApiException
ProjectApi.ListDashboardsRequest dashboards() throws RestApiException
RestApiException
java.lang.String head() throws RestApiException
HEAD
points.RestApiException
void head(java.lang.String head) throws RestApiException
HEAD
.head
- the HEADRestApiException
java.lang.String parent() throws RestApiException
RestApiException
void parent(java.lang.String parent) throws RestApiException
parent
- the parentRestApiException
void index(boolean indexChildren) throws RestApiException
indexChildren
is specified.indexChildren
- decides if children should be indexed recursivelyRestApiException