Interface ProjectApi
- 
- All Known Implementing Classes:
 ProjectApi.NotImplemented
public interface ProjectApi 
- 
- 
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classProjectApi.ListDashboardsRequeststatic classProjectApi.ListLabelsRequeststatic classProjectApi.ListRefsRequest<T extends RefInfo>static classProjectApi.NotImplementedA default implementation which allows source compatibility when adding new methods to the interface. 
- 
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ProjectAccessInfoaccess()ProjectAccessInfoaccess(ProjectAccessInput p)ChangeInfoaccessChange(ProjectAccessInput p)BranchApibranch(String ref)Look up a branch by refname.ProjectApi.ListRefsRequest<BranchInfo>branches()CheckProjectResultInfocheck(CheckProjectInput in)AccessCheckInfocheckAccess(AccessCheckInput in)ChildProjectApichild(String name)List<ProjectInfo>children()List<ProjectInfo>children(boolean recursive)List<ProjectInfo>children(int limit)CommitApicommit(String commit)Lookup a commit by itsObjectIdstring.ConfigInfoconfig()ConfigInfoconfig(ConfigInput in)ProjectApicreate()ProjectApicreate(ProjectInput in)DashboardApidashboard(String name)Lookup a dashboard by its name.ProjectApi.ListDashboardsRequestdashboards()DashboardApidefaultDashboard()Get the project's default dashboard.voiddefaultDashboard(String name)Set the project's default dashboard.voiddeleteBranches(DeleteBranchesInput in)voiddeleteTags(DeleteTagsInput in)Stringdescription()voiddescription(DescriptionInput in)ProjectInfoget()Stringhead()Get the name of the branch to whichHEADpoints.voidhead(String head)Set the project'sHEAD.voidindex(boolean indexChildren)Reindex the project and children in caseindexChildrenis specified.voidindexChanges()Reindexes all changes of the project.LabelApilabel(String labelName)ProjectApi.ListLabelsRequestlabels()voidlabels(BatchLabelInput input)Adds, updates and deletes label definitions in a batch.Stringparent()Get the name of the project's parent.voidparent(String parent)Set the project's parent.voidremoveDefaultDashboard()Remove the project's default dashboard.TagApitag(String ref)Look up a tag by refname.ProjectApi.ListRefsRequest<TagInfo>tags() 
 - 
 
- 
- 
Method Detail
- 
create
ProjectApi create() throws RestApiException
- Throws:
 RestApiException
 
- 
create
ProjectApi create(ProjectInput in) throws RestApiException
- Throws:
 RestApiException
 
- 
get
ProjectInfo get() throws RestApiException
- Throws:
 RestApiException
 
- 
description
String description() throws RestApiException
- Throws:
 RestApiException
 
- 
description
void description(DescriptionInput in) throws RestApiException
- Throws:
 RestApiException
 
- 
access
ProjectAccessInfo access() throws RestApiException
- Throws:
 RestApiException
 
- 
access
ProjectAccessInfo access(ProjectAccessInput p) throws RestApiException
- Throws:
 RestApiException
 
- 
accessChange
ChangeInfo accessChange(ProjectAccessInput p) throws RestApiException
- Throws:
 RestApiException
 
- 
checkAccess
AccessCheckInfo checkAccess(AccessCheckInput in) throws RestApiException
- Throws:
 RestApiException
 
- 
check
CheckProjectResultInfo check(CheckProjectInput in) throws RestApiException
- Throws:
 RestApiException
 
- 
config
ConfigInfo config() throws RestApiException
- Throws:
 RestApiException
 
- 
config
ConfigInfo config(ConfigInput in) throws RestApiException
- Throws:
 RestApiException
 
- 
branches
ProjectApi.ListRefsRequest<BranchInfo> branches()
 
- 
tags
ProjectApi.ListRefsRequest<TagInfo> tags()
 
- 
deleteBranches
void deleteBranches(DeleteBranchesInput in) throws RestApiException
- Throws:
 RestApiException
 
- 
deleteTags
void deleteTags(DeleteTagsInput in) throws RestApiException
- Throws:
 RestApiException
 
- 
children
List<ProjectInfo> children() throws RestApiException
- Throws:
 RestApiException
 
- 
children
List<ProjectInfo> children(boolean recursive) throws RestApiException
- Throws:
 RestApiException
 
- 
children
List<ProjectInfo> children(int limit) throws RestApiException
- Throws:
 RestApiException
 
- 
child
ChildProjectApi child(String name) throws RestApiException
- Throws:
 RestApiException
 
- 
branch
BranchApi branch(String ref) throws RestApiException
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
TagApi tag(String ref) throws RestApiException
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
CommitApi commit(String commit) throws RestApiException
Lookup a commit by itsObjectIdstring.- Parameters:
 commit- theObjectIdstring.- Returns:
 - API for accessing the commit.
 - Throws:
 RestApiException
 
- 
dashboard
DashboardApi dashboard(String name) throws RestApiException
Lookup a dashboard by its name.- Parameters:
 name- the name.- Returns:
 - API for accessing the dashboard.
 - Throws:
 RestApiException
 
- 
defaultDashboard
DashboardApi defaultDashboard() throws RestApiException
Get the project's default dashboard.- Returns:
 - API for accessing the dashboard.
 - Throws:
 RestApiException
 
- 
defaultDashboard
void defaultDashboard(String name) throws RestApiException
Set the project's default dashboard.- Parameters:
 name- the dashboard to set as default.- Throws:
 RestApiException
 
- 
removeDefaultDashboard
void removeDefaultDashboard() throws RestApiExceptionRemove the project's default dashboard.- Throws:
 RestApiException
 
- 
dashboards
ProjectApi.ListDashboardsRequest dashboards() throws RestApiException
- Throws:
 RestApiException
 
- 
head
String head() throws RestApiException
Get the name of the branch to whichHEADpoints.- Throws:
 RestApiException
 
- 
head
void head(String head) throws RestApiException
Set the project'sHEAD.- Parameters:
 head- the HEAD- Throws:
 RestApiException
 
- 
parent
String parent() throws RestApiException
Get the name of the project's parent.- Throws:
 RestApiException
 
- 
parent
void parent(String parent) throws RestApiException
Set the project's parent.- Parameters:
 parent- the parent- Throws:
 RestApiException
 
- 
index
void index(boolean indexChildren) throws RestApiExceptionReindex the project and children in caseindexChildrenis specified.- Parameters:
 indexChildren- decides if children should be indexed recursively- Throws:
 RestApiException
 
- 
indexChanges
void indexChanges() throws RestApiExceptionReindexes all changes of the project.- Throws:
 RestApiException
 
- 
labels
ProjectApi.ListLabelsRequest labels() throws RestApiException
- Throws:
 RestApiException
 
- 
label
LabelApi label(String labelName) throws RestApiException
- Throws:
 RestApiException
 
- 
labels
void labels(BatchLabelInput input) throws RestApiException
Adds, updates and deletes label definitions in a batch.- Parameters:
 input- input that describes additions, updates and deletions of label definitions- Throws:
 RestApiException
 
 - 
 
 -