cern.jjar.repository
Interface RepositoryStore

All Known Implementing Classes:
RepositoryXMLStore

public interface RepositoryStore

first cut at a repository interface

Version:
$Id: RepositoryStore.java,v 1.9 2006/11/30 10:42:48 enes Exp $
Author:
Geir Magnusson Jr., Lionel Mestre

Method Summary
 Document getDocument()
          Returns the parsed document
 MultiVersionsProduct getProduct(String productName)
          Returns all versions for a given project
 Product getProduct(String productName, Version version)
          Returns product with given name and version (version can be both numerical or linked).
 String getProductFilePath(Product product)
          Returns path of jar for given product.
 URL getProductFileUrl(Product product)
          Returns URL of jar for given product and version.
 MultiVersionsProduct[] getProducts()
          Returns all products in this store
 URL getStoreRootDirURL()
          Returns the directory to the production repository
 boolean isProduction()
          Returns true if the store is production
 

Method Detail

getProducts

MultiVersionsProduct[] getProducts()
Returns all products in this store

Returns:
all products in this store

isProduction

boolean isProduction()
Returns true if the store is production

Returns:
boolean

getDocument

Document getDocument()
Returns the parsed document

Returns:
Document the parsed document

getStoreRootDirURL

URL getStoreRootDirURL()
Returns the directory to the production repository

Returns:
URL

getProduct

Product getProduct(String productName,
                   Version version)
Returns product with given name and version (version can be both numerical or linked).

Parameters:
productName - the name of the product to get
version - the version of the product to get
Returns:
the product matching both the name and the version or null

getProduct

MultiVersionsProduct getProduct(String productName)
Returns all versions for a given project

Parameters:
productName - the productname for which to return all versions
Returns:
MultiVersionsProduct all versions of a given project

getProductFileUrl

URL getProductFileUrl(Product product)
Returns URL of jar for given product and version.

Parameters:
product - the product the url is to be got for
Returns:
the URL of jar for given product

getProductFilePath

String getProductFilePath(Product product)
Returns path of jar for given product.

Parameters:
product - the product the path is to be got for
Returns:
path of jar for given product.


Copyright © 2007 CERN. All Rights Reserved.