Class NotifySubmissionService
java.lang.Object
org.dspace.app.rest.submit.factory.impl.NotifySubmissionService
Service to manipulate COAR Notify section of in-progress submissions.
- Author:
- Mohamed Eskander (mohamed.eskander at 4science.com
-
Method Summary
Modifier and TypeMethodDescriptionvoidcheckCompatibilityWithPattern(Context context, String pattern, Set<Integer> servicesIds) check that the provided services ids are compatible with the provided inbound patternintextractIndex(String path) extractPattern(String path) extract pattern from path. see COARNotifyConfigurationService beanBuilds the COAR Notify data of an in-progress submission
-
Method Details
-
getDataCOARNotify
Builds the COAR Notify data of an in-progress submission- Parameters:
obj- - the in progress submission- Returns:
- an object representing the CC License data
- Throws:
SQLExceptionIOExceptionAuthorizeException
-
extractIndex
-
extractPattern
extract pattern from path. see COARNotifyConfigurationService bean- Parameters:
path-- Returns:
- the extracted pattern
-
checkCompatibilityWithPattern
public void checkCompatibilityWithPattern(Context context, String pattern, Set<Integer> servicesIds) throws SQLException check that the provided services ids are compatible with the provided inbound pattern- Parameters:
context- the contextpattern- the inbound patternservicesIds- notify services ids- Throws:
SQLException- if something goes wrong
-