Class ContributionServiceImp

java.lang.Object
org.ehrbase.service.ContributionServiceImp
All Implemented Interfaces:
org.ehrbase.api.service.ContributionService

@Service @Transactional public class ContributionServiceImp extends Object implements org.ehrbase.api.service.ContributionService
  • Constructor Details

    • ContributionServiceImp

      @Autowired public ContributionServiceImp(org.ehrbase.api.service.CompositionService compositionService, org.ehrbase.api.service.EhrService ehrService, InternalDirectoryService folderService, org.ehrbase.api.service.ValidationService validationService, org.ehrbase.api.service.SystemService systemService, ContributionRepository contributionRepository, CompositionRepository compositionRepository, EhrFolderRepository ehrFolderRepository, EhrRepository ehrRepository)
  • Method Details

    • getContribution

      public org.ehrbase.openehr.sdk.response.dto.ehrscape.ContributionDto getContribution(UUID ehrId, UUID contributionId)
      Specified by:
      getContribution in interface org.ehrbase.api.service.ContributionService
      Parameters:
      ehrId - ID of EHR
      contributionId - ID of contribution
      Returns:
      Throws:
      org.ehrbase.api.exception.ObjectNotFoundException - if EHR or CONTRIBUTION is not found
    • commitContribution

      public UUID commitContribution(UUID ehrId, String content)
      Specified by:
      commitContribution in interface org.ehrbase.api.service.ContributionService
    • adminDelete

      @PreAuthorize("hasRole(\'ADMIN\')") public void adminDelete(UUID ehrId, UUID contributionId)
      Specified by:
      adminDelete in interface org.ehrbase.api.service.ContributionService