Class LDNUtils

java.lang.Object
org.dspace.app.ldn.utility.LDNUtils

public class LDNUtils extends Object
Some linked data notification utilities.
  • Method Details

    • hasUUIDInURL

      public static boolean hasUUIDInURL(String url)
      Whether the URL contains an UUID. Used to determine item id from item URL.
      Parameters:
      url - item URL
      Returns:
      boolean true if URL has UUID, false otherwise
    • getUUIDFromURL

      public static UUID getUUIDFromURL(String url)
      Extract UUID from URL.
      Parameters:
      url - item URL
      Returns:
      UUID item id
    • removedProtocol

      public static String removedProtocol(String url)
      Remove http or https protocol from URL.
      Parameters:
      url - URL
      Returns:
      String URL without protocol
    • processContextResolverId

      public static String processContextResolverId(String value)
      Custom context resolver processing. Currently converting DOI URL to DOI id.
      Parameters:
      value - context ietf:cite-as
      Returns:
      String ietf:cite-as identifier
    • getNotifyType

      public static String getNotifyType(String coarNotifyType)
      Clear the coarNotifyType from the source code.
      Parameters:
      coarNotifyType - coar Notify Type to sanitize
      Returns:
      String just the notify type