org.gcube.vremanagement.softwaregateway.impl.is
Class ISProxy

java.lang.Object
  extended by org.gcube.vremanagement.softwaregateway.impl.is.ISManager
      extended by org.gcube.vremanagement.softwaregateway.impl.is.ISProxy

public class ISProxy
extends ISManager

Extends the ISManager

Author:
Roberto Cirillo (ISTI - CNR)

Field Summary
 
Fields inherited from class org.gcube.vremanagement.softwaregateway.impl.is.ISManager
cacheEnabled, logger
 
Constructor Summary
ISProxy(org.gcube.common.core.scope.GCUBEScope gCubeScope, boolean cacheEnabled)
           
 
Method Summary
 GCubeCoordinates getGcubeCoordinates(MavenCoordinates mavenC)
           
 List<GCubePackage> getGCubePackagesCoordinates(Coordinates coordinates)
          Return a list of gcube packages that are related to coordinates in input
 List<URL> getMavenConfiguration()
           
 MavenCoordinates getMavenCoordinates(Coordinates coordinates)
          If not found a Element in cache, query the IS in order to harvest the profile matching such gCube coordinates
 List<MavenPackage> getMavenPackagesCoordinates(GCubeCoordinates gcubeC)
          Return a list of packages maven that are related to gcube coordinates in input
 String[] getMavenServerList(org.gcube.common.core.scope.GCUBEScope scope)
          Retrieves a maven server list from a generic resource
 List<GCubePackage> getPluginCoordinates(Coordinates coordinates)
          Retrieve A list of coordinates that are plugin of the coordinates in input
 MavenCoordinates getSAMavenCoordinates(Coordinates coordinates)
           
 void updateProfile(String xml)
          update the profile in the IS
 
Methods inherited from class org.gcube.vremanagement.softwaregateway.impl.is.ISManager
buildServiceQuery, checkResourceOnIS, publicResourceIS, publicResourceIS, queryGCubeCoordinates, queryGCubePackagesCoordinates, queryMavenCoordinates, queryMavenPackagesCoordinates, queryPackagesCoordinates, queryPluginCoordinates, querySAMavenCoordinates, updatePackageResource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ISProxy

public ISProxy(org.gcube.common.core.scope.GCUBEScope gCubeScope,
               boolean cacheEnabled)
Method Detail

getMavenCoordinates

public MavenCoordinates getMavenCoordinates(Coordinates coordinates)
                                     throws org.gcube.common.core.informationsystem.ISException
Description copied from class: ISManager
If not found a Element in cache, query the IS in order to harvest the profile matching such gCube coordinates

Specified by:
getMavenCoordinates in class ISManager
Returns:
maven coordinated if founded
Throws:
org.gcube.common.core.informationsystem.ISException

getSAMavenCoordinates

public MavenCoordinates getSAMavenCoordinates(Coordinates coordinates)
                                       throws org.gcube.common.core.informationsystem.ISException
Throws:
org.gcube.common.core.informationsystem.ISException

getGcubeCoordinates

public GCubeCoordinates getGcubeCoordinates(MavenCoordinates mavenC)
                                     throws org.gcube.common.core.informationsystem.ISException,
                                            BadCoordinatesException
Throws:
org.gcube.common.core.informationsystem.ISException
BadCoordinatesException

updateProfile

public void updateProfile(String xml)
Description copied from class: ISManager
update the profile in the IS

Specified by:
updateProfile in class ISManager

getMavenConfiguration

public List<URL> getMavenConfiguration()
Specified by:
getMavenConfiguration in class ISManager
Returns:

getMavenServerList

public String[] getMavenServerList(org.gcube.common.core.scope.GCUBEScope scope)
                            throws Exception
Retrieves a maven server list from a generic resource

Parameters:
scope -
Returns:
Throws:
Exception

getMavenPackagesCoordinates

public List<MavenPackage> getMavenPackagesCoordinates(GCubeCoordinates gcubeC)
                                               throws org.gcube.common.core.informationsystem.ISException
Return a list of packages maven that are related to gcube coordinates in input

Specified by:
getMavenPackagesCoordinates in class ISManager
Parameters:
coordinates -
Returns:
Throws:
org.gcube.common.core.informationsystem.ISException

getGCubePackagesCoordinates

public List<GCubePackage> getGCubePackagesCoordinates(Coordinates coordinates)
                                               throws org.gcube.common.core.informationsystem.ISException
Return a list of gcube packages that are related to coordinates in input

Parameters:
coordinates -
Returns:
Throws:
org.gcube.common.core.informationsystem.ISException

getPluginCoordinates

public List<GCubePackage> getPluginCoordinates(Coordinates coordinates)
                                        throws org.gcube.common.core.informationsystem.ISException
Retrieve A list of coordinates that are plugin of the coordinates in input

Specified by:
getPluginCoordinates in class ISManager
Parameters:
service - coordinates
Returns:
a list of gCube coordinates if founded in the IS
Throws:
org.gcube.common.core.informationsystem.ISException


Copyright © 2013. All Rights Reserved.