Class HLMapper


  • public class HLMapper
    extends Object
    The Class HLMapper.
    Author:
    Francesco Mangiacrapa at ISTI-CNR (francesco.mangiacrapa@isti.cnr.it) Jun 20, 2018
    • Constructor Detail

      • HLMapper

        public HLMapper()
    • Method Detail

      • toURLFile

        public static URLFile toURLFile​(org.gcube.common.storagehub.model.items.ExternalLink extLink)
                                 throws Exception
        To URL file.
        Parameters:
        extLink - the ext link
        Returns:
        the URL file
        Throws:
        Exception - the exception
      • toWorkspaceItem

        public static <T extends WorkspaceItem> T toWorkspaceItem​(org.gcube.common.storagehub.model.items.Item item)
                                                           throws Exception
        To workspace item.
        Type Parameters:
        T - the generic type
        Parameters:
        item - the item
        Returns:
        the t
        Throws:
        Exception - the exception
      • toAccountingEntries

        public static List<org.gcube.common.storagehub.model.items.nodes.accounting.AccountEntry> toAccountingEntries​(org.gcube.common.storagehub.model.items.Item item)
        To accounting entries.
        Parameters:
        item - the item
        Returns:
        the list
      • toPropertyMap

        public static PropertyMap toPropertyMap​(org.gcube.common.storagehub.model.Metadata metadata)
        To property map.
        Parameters:
        metadata - the metadata
        Returns:
        the property map
      • toWorkspaceFileVersion

        public static WorkspaceFileVersion toWorkspaceFileVersion​(org.gcube.common.storagehub.model.service.Version fileVersion)
        To workspace file version.
        Parameters:
        fileVersion - the file version
        Returns:
        the workspace file version
      • toWorkspaceItem

        public static <T extends WorkspaceItem> T toWorkspaceItem​(org.gcube.common.storagehub.model.items.Item item,
                                                                  boolean withAccounting,
                                                                  boolean withFileDetails,
                                                                  boolean withMapProperties)
                                                           throws Exception
        To workspace item.
        Type Parameters:
        T - the generic type
        Parameters:
        item - the item
        withAccounting - the with accounting
        withFileDetails - the with file details
        withMapProperties - the with map properties
        Returns:
        the t
        Throws:
        Exception - the exception