Interface HdlResolverService

  • All Known Implementing Classes:
    HdlResolverServiceImpl

    public interface HdlResolverService
    Author:
    Vincenzo Mecca (vins01-4science - vincenzo.mecca at 4science.com)
    • Method Detail

      • resolveBy

        HdlResolverDTO resolveBy​(String requestURI,
                                 String path)
        Method that creates an HdlResovlerDTO using 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 context
        prefix - prefix to search
        Returns:
        `List` of handles
      • isListhandlesEnabled

        boolean isListhandlesEnabled()
        Verifies status of handle controller
        Returns:
        `true` if enabled, `false` otherwise