org.jboss.dtf.testframework.productrepository
Interface ProductRepositoryInterface

All Superinterfaces:
java.rmi.Remote
All Known Implementing Classes:
ProductRepository

public interface ProductRepositoryInterface
extends java.rmi.Remote


Method Summary
 long getCurrentVersion(java.lang.String name)
          Retrieves the current version number for the given product.
 ProductConfiguration getProductConfiguration(java.lang.String productName)
          Retrieve the product configuration for the given product name.
 java.net.URL getProductInstaller(java.lang.String name)
          Retrieves the URL to the ANT script for installing the product represented by the given unique name.
 java.lang.String[] getProductNames()
          List the products in the repository.
 boolean isCurrentVersion(java.lang.String name, long versionId)
          Used to check that the version of a product is the most recent version.
 void remoteProductConfiguration(java.lang.String productName)
           
 void setProductConfiguration(java.lang.String productName, ProductConfiguration productConfiguration)
          Add or update a product configuration in the product repository.
 long setProductInstaller(java.lang.String name, java.net.URL antURL)
          Sets the install procedure for a given product in the repository.
 

Method Detail

setProductConfiguration

void setProductConfiguration(java.lang.String productName,
                             ProductConfiguration productConfiguration)
                             throws java.rmi.RemoteException
Add or update a product configuration in the product repository.

Parameters:
productName -
productConfiguration -
Throws:
java.rmi.RemoteException

remoteProductConfiguration

void remoteProductConfiguration(java.lang.String productName)
                                throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

getProductConfiguration

ProductConfiguration getProductConfiguration(java.lang.String productName)
                                             throws java.rmi.RemoteException
Retrieve the product configuration for the given product name.

Parameters:
productName - The name of the product to retrieve.
Throws:
java.rmi.RemoteException

getProductNames

java.lang.String[] getProductNames()
                                   throws java.rmi.RemoteException
List the products in the repository.

Throws:
java.rmi.RemoteException

setProductInstaller

long setProductInstaller(java.lang.String name,
                         java.net.URL antURL)
                         throws java.rmi.RemoteException
Sets the install procedure for a given product in the repository.

Parameters:
name - The unique name of the product the installer is for.
antURL - The URL to the ANT script used to install the product.
Returns:
The current product version id.
Throws:
java.rmi.RemoteException

isCurrentVersion

boolean isCurrentVersion(java.lang.String name,
                         long versionId)
                         throws java.rmi.RemoteException
Used to check that the version of a product is the most recent version.

Parameters:
name - The name of the product to check the version against.
versionId - The versionId to check against.
Returns:
True if the versionId is the current version, false otherwise.
Throws:
java.rmi.RemoteException

getProductInstaller

java.net.URL getProductInstaller(java.lang.String name)
                                 throws java.rmi.RemoteException
Retrieves the URL to the ANT script for installing the product represented by the given unique name.

Parameters:
name - The unique name of the product.
Returns:
The URL to the ANT script used to install the product.
Throws:
java.rmi.RemoteException

getCurrentVersion

long getCurrentVersion(java.lang.String name)
                       throws java.rmi.RemoteException
Retrieves the current version number for the given product.

Parameters:
name - The unique name of the product.
Returns:
The version number of this product.
Throws:
java.rmi.RemoteException