Class NotifySubmissionService

java.lang.Object
org.dspace.app.rest.submit.factory.impl.NotifySubmissionService

@Component public class NotifySubmissionService extends Object
Service to manipulate COAR Notify section of in-progress submissions.
Author:
Mohamed Eskander (mohamed.eskander at 4science.com
  • Method Details

    • getDataCOARNotify

      public DataNotify getDataCOARNotify(InProgressSubmission obj) throws SQLException
      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:
      SQLException
      IOException
      AuthorizeException
    • extractIndex

      public int extractIndex(String path)
    • extractPattern

      public String extractPattern(String path)
      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 context
      pattern - the inbound pattern
      servicesIds - notify services ids
      Throws:
      SQLException - if something goes wrong