org.gcube.application.framework.vremanagement.vremanagement
Interface ISInfoI

All Known Implementing Classes:
ISInfo

public interface ISInfoI

Author:
valia

Method Summary
 void addExternalRIToVRE(File file)
           
 void addGHNToScope(String url)
          Adds a GHN to the active VRE
 void addRIToScope(String url, String className, String name)
          Adds a service to the active VRE
 boolean existsGHN(String namePort)
           
 org.gcube.common.core.resources.GCUBECollection getCollection(org.gcube.common.core.scope.GCUBEScope scope, String collectionID)
           
 List<org.gcube.common.core.informationsystem.client.RPDocument> getCollectionIndices(org.gcube.common.core.scope.GCUBEScope scope, String collectionID)
           
 List<org.gcube.common.core.resources.GCUBECollection> getCollections(org.gcube.common.core.scope.GCUBEScope scope)
           
 List<org.gcube.common.core.informationsystem.client.RPDocument> getIndices(org.gcube.common.core.scope.GCUBEScope scope, String mcollectionID)
          Return all indices associated with a given metadata collection.
 List<org.gcube.common.core.resources.GCUBEMCollection> getMCollections(org.gcube.common.core.scope.GCUBEScope scope, String collectionID)
           
 List<org.gcube.common.core.informationsystem.client.RPDocument> getWS(String type)
           
 List<org.gcube.common.core.informationsystem.client.RPDocument> getXMLIndices(org.gcube.common.core.scope.GCUBEScope scope, String mcollectionID)
           
 List<org.gcube.common.core.informationsystem.client.XMLResult> queryIS(String query)
           
 void removeExternalRIToVRE(String id)
           
 void removeGHNToScope(String url)
           
 

Method Detail

queryIS

List<org.gcube.common.core.informationsystem.client.XMLResult> queryIS(String query)
Parameters:
query - an XQuery to be submitted on IS
Returns:
a list of XMLResults that represent resources form IS (like RIs, Generic Resources, Collections, etc)

getWS

List<org.gcube.common.core.informationsystem.client.RPDocument> getWS(String type)
Parameters:
type - the of the WSs to be retrieved
Returns:
a list of RPDocuments

addGHNToScope

void addGHNToScope(String url)
Adds a GHN to the active VRE

Parameters:
url - the GHN url

addRIToScope

void addRIToScope(String url,
                  String className,
                  String name)
Adds a service to the active VRE

Parameters:
url - the Running Instance url
className - the name of the class where the RI will belong
name - the name of teh service it provides

existsGHN

boolean existsGHN(String namePort)
Parameters:
namePort - GHN name:port
Returns:
true if GHN exists, otherwise false

removeExternalRIToVRE

void removeExternalRIToVRE(String id)
Parameters:
id - the id of the external running instance to be removed

addExternalRIToVRE

void addExternalRIToVRE(File file)
Parameters:
file - the file that contains the external running instance to be added

removeGHNToScope

void removeGHNToScope(String url)
Parameters:
url - server:port of the GHN to be removed

getCollections

List<org.gcube.common.core.resources.GCUBECollection> getCollections(org.gcube.common.core.scope.GCUBEScope scope)
                                                                     throws Exception
Parameters:
scope - the scope of the collections.
Returns:
a list of collections profile.
Throws:
Exception

getMCollections

List<org.gcube.common.core.resources.GCUBEMCollection> getMCollections(org.gcube.common.core.scope.GCUBEScope scope,
                                                                       String collectionID)
                                                                       throws Exception
Parameters:
scope - the scope of the metadata collections.
collectionID - the associated collection.
Returns:
a list of metadata collections profile.
Throws:
Exception

getXMLIndices

List<org.gcube.common.core.informationsystem.client.RPDocument> getXMLIndices(org.gcube.common.core.scope.GCUBEScope scope,
                                                                              String mcollectionID)
                                                                              throws Exception
Parameters:
scope - the indices scope.
mcollectionID - the metadata collection id.
Returns:
a list of Resource document.
Throws:
Exception

getIndices

List<org.gcube.common.core.informationsystem.client.RPDocument> getIndices(org.gcube.common.core.scope.GCUBEScope scope,
                                                                           String mcollectionID)
                                                                           throws Exception
Return all indices associated with a given metadata collection.

Parameters:
scope - the indices scope.
mcollectionID - the metadata collection id.
Returns:
a list of Resource document.
Throws:
Exception

getCollectionIndices

List<org.gcube.common.core.informationsystem.client.RPDocument> getCollectionIndices(org.gcube.common.core.scope.GCUBEScope scope,
                                                                                     String collectionID)
                                                                                     throws Exception
Parameters:
scope - the indices scope.
collectionID - the collection id.
Returns:
a list of Resource document.
Throws:
Exception

getCollection

org.gcube.common.core.resources.GCUBECollection getCollection(org.gcube.common.core.scope.GCUBEScope scope,
                                                              String collectionID)
                                                              throws Exception
Parameters:
scope - the collection scope.
collectionID - the collection id.
Returns:
a collection profile.
Throws:
Exception


Copyright © 2013. All Rights Reserved.