Class Projects.NotImplemented

java.lang.Object
com.google.gerrit.extensions.api.projects.Projects.NotImplemented
All Implemented Interfaces:
Projects
Enclosing interface:
Projects

public static class Projects.NotImplemented extends Object implements Projects
A default implementation which allows source compatibility when adding new methods to the interface.
  • Constructor Details

    • NotImplemented

      public NotImplemented()
  • Method Details

    • name

      public ProjectApi name(String name) throws RestApiException
      Description copied from interface: Projects
      Look up a project by name.

      Note: This method eagerly reads the project. Methods that mutate the project do not necessarily re-read the project. 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 ProjectApi instances.

      Specified by:
      name in interface Projects
      Parameters:
      name - project name.
      Returns:
      API for accessing the project.
      Throws:
      RestApiException - if an error occurred.
    • create

      public ProjectApi create(ProjectInput in) throws RestApiException
      Description copied from interface: Projects
      Create a project.
      Specified by:
      create in interface Projects
      Parameters:
      in - project creation input; name must be set.
      Returns:
      API for accessing the newly-created project.
      Throws:
      RestApiException - if an error occurred.
    • create

      public ProjectApi create(String name) throws RestApiException
      Description copied from interface: Projects
      Create a project using the default configuration.
      Specified by:
      create in interface Projects
      Parameters:
      name - project name.
      Returns:
      API for accessing the newly-created project.
      Throws:
      RestApiException - if an error occurred.
    • list

      public Projects.ListRequest list()
      Specified by:
      list in interface Projects
    • query

      public Projects.QueryRequest query()
      Description copied from interface: Projects
      Query projects.

      Example code: query().withQuery("name:project").get()

      Specified by:
      query in interface Projects
      Returns:
      API for setting parameters and getting result.
    • query

      public Projects.QueryRequest query(String query)
      Description copied from interface: Projects
      Query projects.

      Shortcut API for query().withQuery(String).

      Specified by:
      query in interface Projects
      See Also: