|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Repository
first cut at a repository interface
Field Summary | |
---|---|
static String |
REPOSITORY_FILE_NAME
|
Method Summary | |
---|---|
Product[] |
computeObsoleteProducts(Product product)
Computes the obsolete versions of a certain product |
Product[] |
computeObsoleteVersionsForProduct(Product product)
Computes a list of all obsolete versions for a given product |
Dependency[] |
getDependencies(Dependency[] dependenciesToResolve,
boolean excludeTargets,
Version defaultVersion)
Returns array with all dependencies of given dependencies. |
Dependency[] |
getDependencies(Dependency dependencyToResolve,
boolean excludeTarget,
Version defaultVersion)
Returns array with all dependencies of given dependency. |
Document |
getDocument()
Returns the parsed document of the repository descriptor |
Product |
getProduct(String productName,
Version version)
Returns product with given name and version (version can be both numeral or linked). |
String |
getProductFilePath(String productName,
Version version)
Returns the complete path of the jar from the root of the repository. |
URL |
getProductFileUrl(String productName,
Version version)
Returns URL of jar for given product and version. |
URL |
getProductionDescriptorRootDirURL()
Returns the directory of production repository |
RepositoryStore |
getProductionStore()
Returns the production repository store as defined by method @link RepositoryStore#isProduction() |
Field Detail |
---|
static final String REPOSITORY_FILE_NAME
Method Detail |
---|
Document getDocument()
URL getProductionDescriptorRootDirURL()
RepositoryStore getProductionStore()
Product[] computeObsoleteVersionsForProduct(Product product)
product
- the product for which to search for obsolete products
Product[] computeObsoleteProducts(Product product)
product
- the product to be cleaned
Product getProduct(String productName, Version version)
productName
- the name of the product to getversion
- the version of the product to get
Dependency[] getDependencies(Dependency[] dependenciesToResolve, boolean excludeTargets, Version defaultVersion)
dependenciesToResolve
- the array of dependencies to resolveexcludeTargets
- whether or not to include the targets passed in parameterdefaultVersion
- the default version to get is no version is specified
Dependency[] getDependencies(Dependency dependencyToResolve, boolean excludeTarget, Version defaultVersion)
dependencyToResolve
- the dependency to resolveexcludeTarget
- whether or not to include the target passed in parameterdefaultVersion
- the default version to get is no version is specified
URL getProductFileUrl(String productName, Version version)
productName
- the name of the product to getversion
- the version of the product to get
String getProductFilePath(String productName, Version version)
productName
- the name of the product to getversion
- the version of the product to get
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |