Package org.dspace.app.ldn.utility
Class LDNUtils
java.lang.Object
org.dspace.app.ldn.utility.LDNUtils
Some linked data notification utilities.
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetNotifyType(String coarNotifyType) Clear the coarNotifyType from the source code.static UUIDgetUUIDFromURL(String url) Extract UUID from URL.static booleanhasUUIDInURL(String url) Whether the URL contains an UUID.static StringprocessContextResolverId(String value) Custom context resolver processing.static StringremovedProtocol(String url) Remove http or https protocol from URL.
-
Method Details
-
hasUUIDInURL
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
Extract UUID from URL.- Parameters:
url- item URL- Returns:
- UUID item id
-
removedProtocol
Remove http or https protocol from URL.- Parameters:
url- URL- Returns:
- String URL without protocol
-
processContextResolverId
Custom context resolver processing. Currently converting DOI URL to DOI id.- Parameters:
value- context ietf:cite-as- Returns:
- String ietf:cite-as identifier
-
getNotifyType
Clear the coarNotifyType from the source code.- Parameters:
coarNotifyType- coar Notify Type to sanitize- Returns:
- String just the notify type
-