Interface GetService<T,ID>

All Known Implementing Classes:
CrudRepositoryService, ListRepositoryService

public interface GetService<T,ID>
A browser-callable service that can fetch the given type of object.
  • Method Summary

    Modifier and Type
    Method
    Description
    default boolean
    exists(ID id)
    Checks if an object with the given id exists.
    get(ID id)
    Gets the object with the given id.
  • Method Details

    • get

      Optional<T> get(ID id)
      Gets the object with the given id.
      Parameters:
      id - the id of the object
      Returns:
      the object, or an empty optional if no object with the given id
    • exists

      default boolean exists(ID id)
      Checks if an object with the given id exists.
      Parameters:
      id - the id of the object
      Returns:
      true if the object exists, false otherwise