Interface LargeObjectDao

All Known Implementing Classes:
MongoLargeObjectDao

public interface LargeObjectDao
  • Method Details

    • findLargeObject

      Optional<LargeObject> findLargeObject(String objectId)
      Finds a LargeObject with the supplied object id, returning a value equivalent to Optional.empty() if the object cannot be found.
      Parameters:
      objectId - the object id
      Returns:
      the Optional<LargeObject>
    • getLargeObject

      default LargeObject getLargeObject(String objectId)
      Finds a LargeObject with the supplied object id, throwing an instance of LargeObjectNotFoundException of the object cannot be found.
      Parameters:
      objectId - the object id
      Returns:
      the Optional<LargeObject>
    • getLargeObjects

      Pagination<LargeObject> getLargeObjects(int offset, int count, String search)
      Gets a pagination of large objects based on the specified criteria
      Parameters:
      offset - - Pagination offset
      count - - Pagination max objects
      search - - Matching substring in path or MIME type
      Returns:
      the pagination results, if any
    • createLargeObject

      LargeObject createLargeObject(LargeObject largeObject)
      Creates a new LargeObject.
      Parameters:
      largeObject - the large object to create
      Returns:
      the LargeObject as created in the database
    • updateLargeObject

      LargeObject updateLargeObject(LargeObject largeObject)
      Updates an existing LargeObject.
      Parameters:
      largeObject - the large object to create
      Returns:
      the LargeObject as created in the database
    • deleteLargeObject

      void deleteLargeObject(String objectId)
      Deletes an instance of LargeObject from the database. Returning the object just before deletion.
      Parameters:
      objectId - the object ID