Class HLMapper
- java.lang.Object
-
- org.gcube.common.storagehubwrapper.server.converter.HLMapper
-
public class HLMapper extends Object
The Class HLMapper.- Author:
- Francesco Mangiacrapa at ISTI-CNR (francesco.mangiacrapa@isti.cnr.it) Jun 20, 2018
-
-
Constructor Summary
Constructors Constructor Description HLMapper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static List<org.gcube.common.storagehub.model.items.nodes.accounting.AccountEntry>toAccountingEntries(org.gcube.common.storagehub.model.items.Item item)To accounting entries.static PropertyMaptoPropertyMap(org.gcube.common.storagehub.model.Metadata metadata)To property map.static URLFiletoURLFile(org.gcube.common.storagehub.model.items.ExternalLink extLink)To URL file.static WorkspaceFileVersiontoWorkspaceFileVersion(org.gcube.common.storagehub.model.service.Version fileVersion)To workspace file version.static <T extends WorkspaceItem>
TtoWorkspaceItem(org.gcube.common.storagehub.model.items.Item item)To workspace item.static <T extends WorkspaceItem>
TtoWorkspaceItem(org.gcube.common.storagehub.model.items.Item item, boolean withAccounting, boolean withFileDetails, boolean withMapProperties)To workspace item.
-
-
-
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 itemwithAccounting- the with accountingwithFileDetails- the with file detailswithMapProperties- the with map properties- Returns:
- the t
- Throws:
Exception- the exception
-
-