Class ProjectApi.NotImplemented
- java.lang.Object
 - 
- com.google.gerrit.extensions.api.projects.ProjectApi.NotImplemented
 
 
- 
- All Implemented Interfaces:
 ProjectApi
- Enclosing interface:
 - ProjectApi
 
public static class ProjectApi.NotImplemented extends Object implements ProjectApi
A default implementation which allows source compatibility when adding new methods to the interface. 
- 
- 
Nested Class Summary
- 
Nested classes/interfaces inherited from interface com.google.gerrit.extensions.api.projects.ProjectApi
ProjectApi.ListDashboardsRequest, ProjectApi.ListLabelsRequest, ProjectApi.ListRefsRequest<T extends RefInfo>, ProjectApi.NotImplemented 
 - 
 
- 
Constructor Summary
Constructors Constructor Description NotImplemented() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ProjectAccessInfoaccess()ProjectAccessInfoaccess(ProjectAccessInput p)ChangeInfoaccessChange(ProjectAccessInput input)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
public ProjectApi create() throws RestApiException
- Specified by:
 createin interfaceProjectApi- Throws:
 RestApiException
 
- 
create
public ProjectApi create(ProjectInput in) throws RestApiException
- Specified by:
 createin interfaceProjectApi- Throws:
 RestApiException
 
- 
get
public ProjectInfo get() throws RestApiException
- Specified by:
 getin interfaceProjectApi- Throws:
 RestApiException
 
- 
description
public String description() throws RestApiException
- Specified by:
 descriptionin interfaceProjectApi- Throws:
 RestApiException
 
- 
access
public ProjectAccessInfo access() throws RestApiException
- Specified by:
 accessin interfaceProjectApi- Throws:
 RestApiException
 
- 
access
public ProjectAccessInfo access(ProjectAccessInput p) throws RestApiException
- Specified by:
 accessin interfaceProjectApi- Throws:
 RestApiException
 
- 
accessChange
public ChangeInfo accessChange(ProjectAccessInput input) throws RestApiException
- Specified by:
 accessChangein interfaceProjectApi- Throws:
 RestApiException
 
- 
checkAccess
public AccessCheckInfo checkAccess(AccessCheckInput in) throws RestApiException
- Specified by:
 checkAccessin interfaceProjectApi- Throws:
 RestApiException
 
- 
check
public CheckProjectResultInfo check(CheckProjectInput in) throws RestApiException
- Specified by:
 checkin interfaceProjectApi- Throws:
 RestApiException
 
- 
config
public ConfigInfo config() throws RestApiException
- Specified by:
 configin interfaceProjectApi- Throws:
 RestApiException
 
- 
config
public ConfigInfo config(ConfigInput in) throws RestApiException
- Specified by:
 configin interfaceProjectApi- Throws:
 RestApiException
 
- 
description
public void description(DescriptionInput in) throws RestApiException
- Specified by:
 descriptionin interfaceProjectApi- Throws:
 RestApiException
 
- 
branches
public ProjectApi.ListRefsRequest<BranchInfo> branches()
- Specified by:
 branchesin interfaceProjectApi
 
- 
tags
public ProjectApi.ListRefsRequest<TagInfo> tags()
- Specified by:
 tagsin interfaceProjectApi
 
- 
children
public List<ProjectInfo> children() throws RestApiException
- Specified by:
 childrenin interfaceProjectApi- Throws:
 RestApiException
 
- 
children
public List<ProjectInfo> children(boolean recursive) throws RestApiException
- Specified by:
 childrenin interfaceProjectApi- Throws:
 RestApiException
 
- 
children
public List<ProjectInfo> children(int limit) throws RestApiException
- Specified by:
 childrenin interfaceProjectApi- Throws:
 RestApiException
 
- 
child
public ChildProjectApi child(String name) throws RestApiException
- Specified by:
 childin interfaceProjectApi- Throws:
 RestApiException
 
- 
branch
public BranchApi branch(String ref) throws RestApiException
Description copied from interface:ProjectApiLook 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.- Specified by:
 branchin interfaceProjectApi- 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
public TagApi tag(String ref) throws RestApiException
Description copied from interface:ProjectApiLook up a tag by refname.- Specified by:
 tagin interfaceProjectApi- 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.
 
- 
deleteBranches
public void deleteBranches(DeleteBranchesInput in) throws RestApiException
- Specified by:
 deleteBranchesin interfaceProjectApi- Throws:
 RestApiException
 
- 
deleteTags
public void deleteTags(DeleteTagsInput in) throws RestApiException
- Specified by:
 deleteTagsin interfaceProjectApi- Throws:
 RestApiException
 
- 
commit
public CommitApi commit(String commit) throws RestApiException
Description copied from interface:ProjectApiLookup a commit by itsObjectIdstring.- Specified by:
 commitin interfaceProjectApi- Parameters:
 commit- theObjectIdstring.- Returns:
 - API for accessing the commit.
 - Throws:
 RestApiException
 
- 
dashboard
public DashboardApi dashboard(String name) throws RestApiException
Description copied from interface:ProjectApiLookup a dashboard by its name.- Specified by:
 dashboardin interfaceProjectApi- Parameters:
 name- the name.- Returns:
 - API for accessing the dashboard.
 - Throws:
 RestApiException
 
- 
defaultDashboard
public DashboardApi defaultDashboard() throws RestApiException
Description copied from interface:ProjectApiGet the project's default dashboard.- Specified by:
 defaultDashboardin interfaceProjectApi- Returns:
 - API for accessing the dashboard.
 - Throws:
 RestApiException
 
- 
dashboards
public ProjectApi.ListDashboardsRequest dashboards() throws RestApiException
- Specified by:
 dashboardsin interfaceProjectApi- Throws:
 RestApiException
 
- 
defaultDashboard
public void defaultDashboard(String name) throws RestApiException
Description copied from interface:ProjectApiSet the project's default dashboard.- Specified by:
 defaultDashboardin interfaceProjectApi- Parameters:
 name- the dashboard to set as default.- Throws:
 RestApiException
 
- 
removeDefaultDashboard
public void removeDefaultDashboard() throws RestApiExceptionDescription copied from interface:ProjectApiRemove the project's default dashboard.- Specified by:
 removeDefaultDashboardin interfaceProjectApi- Throws:
 RestApiException
 
- 
head
public String head() throws RestApiException
Description copied from interface:ProjectApiGet the name of the branch to whichHEADpoints.- Specified by:
 headin interfaceProjectApi- Throws:
 RestApiException
 
- 
head
public void head(String head) throws RestApiException
Description copied from interface:ProjectApiSet the project'sHEAD.- Specified by:
 headin interfaceProjectApi- Parameters:
 head- the HEAD- Throws:
 RestApiException
 
- 
parent
public String parent() throws RestApiException
Description copied from interface:ProjectApiGet the name of the project's parent.- Specified by:
 parentin interfaceProjectApi- Throws:
 RestApiException
 
- 
parent
public void parent(String parent) throws RestApiException
Description copied from interface:ProjectApiSet the project's parent.- Specified by:
 parentin interfaceProjectApi- Parameters:
 parent- the parent- Throws:
 RestApiException
 
- 
index
public void index(boolean indexChildren) throws RestApiExceptionDescription copied from interface:ProjectApiReindex the project and children in caseindexChildrenis specified.- Specified by:
 indexin interfaceProjectApi- Parameters:
 indexChildren- decides if children should be indexed recursively- Throws:
 RestApiException
 
- 
indexChanges
public void indexChanges() throws RestApiExceptionDescription copied from interface:ProjectApiReindexes all changes of the project.- Specified by:
 indexChangesin interfaceProjectApi- Throws:
 RestApiException
 
- 
labels
public ProjectApi.ListLabelsRequest labels() throws RestApiException
- Specified by:
 labelsin interfaceProjectApi- Throws:
 RestApiException
 
- 
label
public LabelApi label(String labelName) throws RestApiException
- Specified by:
 labelin interfaceProjectApi- Throws:
 RestApiException
 
- 
labels
public void labels(BatchLabelInput input) throws RestApiException
Description copied from interface:ProjectApiAdds, updates and deletes label definitions in a batch.- Specified by:
 labelsin interfaceProjectApi- Parameters:
 input- input that describes additions, updates and deletions of label definitions- Throws:
 RestApiException
 
 - 
 
 -