Package org.ehrbase.service
Class ContributionServiceImp
- java.lang.Object
-
- org.ehrbase.service.BaseService
-
- org.ehrbase.service.ContributionServiceImp
-
- All Implemented Interfaces:
BaseService,ContributionService
@Service @Transactional public class ContributionServiceImp extends BaseService implements ContributionService
-
-
Field Summary
Fields Modifier and Type Field Description static StringTYPE_COMPOSITIONstatic StringTYPE_FOLDER-
Fields inherited from class org.ehrbase.service.BaseService
DEMOGRAPHIC, PARTY
-
-
Constructor Summary
Constructors Constructor Description ContributionServiceImp(KnowledgeCacheService knowledgeCacheService, CompositionService compositionService, EhrService ehrService, org.jooq.DSLContext context, ServerConfig serverConfig)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UUIDcommitContribution(UUID ehrId, String content, CompositionFormat format)Optional<ContributionDto>getContribution(UUID ehrId, UUID contributionId)booleanhasContribution(UUID ehrId, UUID contributionId)-
Methods inherited from class org.ehrbase.service.BaseService
getDataAccess, getServerConfig, getSystemUuid, getUserUuid
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.ehrbase.api.service.BaseService
getServerConfig, getSystemUuid
-
-
-
-
Field Detail
-
TYPE_COMPOSITION
public static final String TYPE_COMPOSITION
- See Also:
- Constant Field Values
-
TYPE_FOLDER
public static final String TYPE_FOLDER
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ContributionServiceImp
@Autowired public ContributionServiceImp(KnowledgeCacheService knowledgeCacheService, CompositionService compositionService, EhrService ehrService, org.jooq.DSLContext context, ServerConfig serverConfig)
-
-
Method Detail
-
hasContribution
public boolean hasContribution(UUID ehrId, UUID contributionId)
- Specified by:
hasContributionin interfaceContributionService
-
getContribution
public Optional<ContributionDto> getContribution(UUID ehrId, UUID contributionId)
- Specified by:
getContributionin interfaceContributionService
-
commitContribution
public UUID commitContribution(UUID ehrId, String content, CompositionFormat format)
- Specified by:
commitContributionin interfaceContributionService
-
-