public abstract class CaveRepository extends Object
| Constructor and Description |
|---|
CaveRepository() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
cleanup()
Cleanup the repository storage.
|
String |
getLocation()
Get the location (filesystem) of this repository.
|
String |
getName()
Get the name of the repository.
|
abstract URL |
getRepositoryXml()
Return the repository URL of the OBR repository.xml.
|
abstract void |
populate(URL url,
boolean update)
Populate from a remote URL (for instance a Maven repository), and eventually update the OBR information.
|
abstract void |
populate(URL url,
String filter,
boolean update)
Populate from a remote URL (for instance a Maven repository), eventually filtering artifacts, and eventually update the OBR information.
|
abstract void |
proxy(URL url)
Proxy an URL (for instance a Maven repository) and add OBR information.
|
abstract void |
proxy(URL url,
String filter)
Proxy an URL (for instance a Maven repository), eventually filtering some artifacts, and add OBR information.
|
abstract void |
scan()
Scan the whole repository, reading bundle MANIFEST, etc to update
or generate the OBR repository.xml.
|
void |
setLocation(String location)
Set the location (filesystem) of this repository.
|
void |
setName(String name)
Set the name of the repository.
|
abstract void |
upload(URL url)
Upload an artifact from the given URL into the repository.
|
public String getName()
public void setName(String name)
name - the name of the repositorypublic String getLocation()
public void setLocation(String location)
location - the location of this repositorypublic abstract void upload(URL url) throws Exception
url - the URL of the artifact.Exception - in case of upload failure.public abstract void scan()
throws Exception
Exception - in case of scan failure.public abstract void proxy(URL url) throws Exception
url - the URL to proxy.Exceptionpublic abstract void proxy(URL url, String filter) throws Exception
url - the URL to proxy.filter - regex filter on the artifacts URL.Exceptionpublic abstract void populate(URL url, boolean update) throws Exception
url - the URL to copy.update - if true the OBR information is updated, false else.Exception - in case of copy failure.public abstract void populate(URL url, String filter, boolean update) throws Exception
url - the URL to copy.filter - regex filter on the artifacts URL.update - if true the OBR information is updated, false else.Exceptionpublic abstract URL getRepositoryXml() throws Exception
Exception - in case of failure to get repository.xml URL.Copyright © 2014 The Apache Software Foundation. All Rights Reserved.