Interface ExternalReferenceService

All Known Implementing Classes:
ExternalReferenceServiceImpl

public interface ExternalReferenceService
Interface for the ExternalReferenceService, which provides methods for retrieving ExternalReferenceModel objects.
  • Method Details

    • findById

      Retrieves an ExternalReferenceModel object by its ID.
      Parameters:
      id - The ID of the ExternalReferenceModel object to retrieve.
      Returns:
      An Optional containing the ExternalReferenceModel object if found, or an empty Optional if not found.
    • findAll

      Retrieves a list of ExternalReferenceModel objects that match the provided MediaModel.
      Parameters:
      media - The MediaModel to use for searching.
      Returns:
      A list of ExternalReferenceModel objects that match the provided MediaModel.
    • save

      Save external reference provided.
      Parameters:
      externalReference - The ExternalReference to save.
      Returns:
      ExternalReferenceModel object saved.
    • saveAll

      List<ExternalReferenceModel> saveAll(List<ExternalReferenceModel> externalReferences)
      Save all external reference provided.
      Parameters:
      externalReferences - The ExternalReferences to save.
      Returns:
      List of ExternalReferenceModel object saved.
    • findByReferenceAndType

      Optional<ExternalReferenceModel> findByReferenceAndType(String reference, TypeReferenceModel typeReference)
      Find by reference and Type Reference
      Parameters:
      reference - value of ExternalReference.
      typeReference - the Type Reference to find.
      Returns:
      ExternalReferenceModel list of ExternalReferenceModel found.