Package org.dspace.handle.hdlresolver
Interface HdlResolverService
-
- All Known Implementing Classes:
HdlResolverServiceImpl
public interface HdlResolverService- Author:
- Vincenzo Mecca (vins01-4science - vincenzo.mecca at 4science.com)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanisListhandlesEnabled()Verifies status of handle controllerList<String>listHandles(Context context, String prefix)List all available handles with `prefix`List<String>listPrefixes()List all available prefixes for this installationHdlResolverDTOresolveBy(String requestURI, String path)Method that creates anHdlResovlerDTOusing the requestURI (full requested handle URI) and the path (REST handler URI)StringresolveToURL(Context context, HdlResolverDTO hdlResolver)Converts the hdlResovler into URL fetching it from repository using the DSpace context
-
-
-
Method Detail
-
resolveBy
HdlResolverDTO resolveBy(String requestURI, String path)
Method that creates anHdlResovlerDTOusing the requestURI (full requested handle URI) and the path (REST handler URI)- Parameters:
requestURI-path-- Returns:
HdlResolverDTO
-
resolveToURL
String resolveToURL(Context context, HdlResolverDTO hdlResolver)
Converts the hdlResovler into URL fetching it from repository using the DSpace context- Parameters:
context-hdlResolver-- Returns:
- URL found or null
-
listPrefixes
List<String> listPrefixes()
List all available prefixes for this installation- Returns:
- `List
` of Handle prefixes
-
listHandles
List<String> listHandles(Context context, String prefix)
List all available handles with `prefix`- Parameters:
context- DSpace contextprefix- prefix to search- Returns:
- `List
` of handles
-
isListhandlesEnabled
boolean isListhandlesEnabled()
Verifies status of handle controller- Returns:
- `true` if enabled, `false` otherwise
-
-