org.gcube.application.framework.vremanagement.vremanagement.impl
Class SoftwareRepository

java.lang.Object
  extended by org.gcube.application.framework.vremanagement.vremanagement.impl.SoftwareRepository
All Implemented Interfaces:
SoftwareRepositoryI

public class SoftwareRepository
extends java.lang.Object
implements SoftwareRepositoryI

Author:
Valia Tsagkalidou (KNUA)

Constructor Summary
SoftwareRepository(ASLSession session)
           
 
Method Summary
 java.lang.String approve(java.lang.String id)
          Approves the storage of service archive (SA)
 java.lang.String delete(java.lang.String vo)
          Deletes a VO
 java.lang.String get(java.lang.String packageName, java.lang.String serviceClass, java.lang.String serviceName, java.lang.String serviceVersion, java.lang.String version)
          
 java.lang.String[] isDeployable(java.lang.String serviceID)
          
 java.lang.String listPending()
          
 java.lang.String[] listScopedPackages(java.lang.String scope, java.lang.String serviceID)
          
 java.lang.String store(java.lang.String serviceClass, java.lang.String serviceName, java.lang.String serviceVersion, java.lang.String URL, java.lang.String description)
          Stores a service archive to the software repository
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SoftwareRepository

public SoftwareRepository(ASLSession session)
Parameters:
session - the ASL Session to use
Method Detail

store

public java.lang.String store(java.lang.String serviceClass,
                              java.lang.String serviceName,
                              java.lang.String serviceVersion,
                              java.lang.String URL,
                              java.lang.String description)
Stores a service archive to the software repository

Specified by:
store in interface SoftwareRepositoryI
Parameters:
serviceClass - the ServiceClass name of the service archive to be stored
serviceName - the service name of the service archive to be stored
serviceVersion - the version of the service
URL - a url to the download the service archive
description - a description for the service
Returns:
a string

listPending

public java.lang.String listPending()

Specified by:
listPending in interface SoftwareRepositoryI
Returns:
a string

approve

public java.lang.String approve(java.lang.String id)
Approves the storage of service archive (SA)

Specified by:
approve in interface SoftwareRepositoryI
Parameters:
id - the service ID for the SA to be approved
Returns:
a string

listScopedPackages

public java.lang.String[] listScopedPackages(java.lang.String scope,
                                             java.lang.String serviceID)

Specified by:
listScopedPackages in interface SoftwareRepositoryI
Parameters:
scope - the scope for which it will list the pending requests for storing a SA
serviceID - the service identifier
Returns:
an Array of strings containing the pending requests

isDeployable

public java.lang.String[] isDeployable(java.lang.String serviceID)

Specified by:
isDeployable in interface SoftwareRepositoryI
Parameters:
serviceID - the service identifier
Returns:
an Array of Strings

get

public java.lang.String get(java.lang.String packageName,
                            java.lang.String serviceClass,
                            java.lang.String serviceName,
                            java.lang.String serviceVersion,
                            java.lang.String version)

Specified by:
get in interface SoftwareRepositoryI
Parameters:
packageName - the package name of the service archive
serviceClass - the service class of the service archive
serviceName - the service name of the service archive
serviceVersion - the version of the service in the service archive
version - the version of the service archive
Returns:
a string (probably url)

delete

public java.lang.String delete(java.lang.String vo)
Deletes a VO

Specified by:
delete in interface SoftwareRepositoryI
Parameters:
vo - the VO
Returns:
a string