Interface CRUDService<DTO extends EntityDTO,​D extends EntityData<DTO>,​DP>

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      D getData​(@NotNull Long id)
      Returns data for details of the given entity
      D getDataForNew​(DP params)
      Returns data for a new entity with the given context parameters
      DTO load​(@NotNull Long id)
      Loads a DTO for the entity with the given id, ensuring that the logged user can see the record
      void remove​(@NotNull Long id)
      Removes the entity associated with the given identifier
      void removeAll​(@NotNull Collection<Long> ids)
      Removes the entities associated with the given identifiers
      Long save​(DTO object)
      Saves the given object, returning the generated identifier