org.gcube.contentmanagement
Class StorageManagerResourcePlugin

java.lang.Object
  extended by org.gcube.contentmanagement.StorageManagerResourcePlugin
All Implemented Interfaces:
org.gcube.portlets.user.homelibrary.home.workspace.ExternalResourceLinkPlugin

public class StorageManagerResourcePlugin
extends Object
implements org.gcube.portlets.user.homelibrary.home.workspace.ExternalResourceLinkPlugin


Constructor Summary
StorageManagerResourcePlugin()
           
 
Method Summary
static String extractLocation(String url)
           
 InputStream getContent(org.gcube.portlets.user.homelibrary.home.workspace.folder.items.ExternalResourceLink item)
           
 String getPluginName()
           
 long getSize(org.gcube.portlets.user.homelibrary.home.workspace.folder.items.ExternalResourceLink item)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StorageManagerResourcePlugin

public StorageManagerResourcePlugin()
Method Detail

getPluginName

public String getPluginName()
Specified by:
getPluginName in interface org.gcube.portlets.user.homelibrary.home.workspace.ExternalResourceLinkPlugin

getContent

public InputStream getContent(org.gcube.portlets.user.homelibrary.home.workspace.folder.items.ExternalResourceLink item)
                       throws org.gcube.portlets.user.homelibrary.home.workspace.exceptions.ExternalResourceBrokenLinkException,
                              org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException
Specified by:
getContent in interface org.gcube.portlets.user.homelibrary.home.workspace.ExternalResourceLinkPlugin
Throws:
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.ExternalResourceBrokenLinkException
org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException

extractLocation

public static String extractLocation(String url)

getSize

public long getSize(org.gcube.portlets.user.homelibrary.home.workspace.folder.items.ExternalResourceLink item)
             throws org.gcube.portlets.user.homelibrary.home.workspace.exceptions.ExternalResourceBrokenLinkException,
                    org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException
Specified by:
getSize in interface org.gcube.portlets.user.homelibrary.home.workspace.ExternalResourceLinkPlugin
Throws:
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.ExternalResourceBrokenLinkException
org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException


Copyright © 2012. All Rights Reserved.