Interface Groups

All Known Implementing Classes:
Groups.NotImplemented

public interface Groups
  • Method Details

    • id

      Look up a group by ID.

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

      Parameters:
      id - any identifier supported by the REST API, including group name or UUID.
      Returns:
      API for accessing the group.
      Throws:
      RestApiException - if an error occurred.
    • create

      @CanIgnoreReturnValue GroupApi create(String name) throws RestApiException
      Create a new group with the given name and default options.
      Throws:
      RestApiException
    • create

      @CanIgnoreReturnValue GroupApi create(GroupInput input) throws RestApiException
      Create a new group.
      Throws:
      RestApiException
    • list

      Returns new request for listing groups.
    • query

      Query groups.

      Example code: query().withQuery("inname:test").withLimit(10).get()

      Returns:
      API for setting parameters and getting result.
    • query

      Query groups.

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

      See Also: