public class ProjectRepository
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
REPOSITORY_FILE_NAME |
Constructor and Description |
---|
ProjectRepository() |
Modifier and Type | Method and Description |
---|---|
void |
addRepositoryEntry(RepositoryEntry repositoryEntry)
Adds the specified RepositoryEntry.
|
java.util.TreeMap<java.lang.String,ProjectRepositoryEntries> |
getProjectRepositories()
Return the project repositories, where the key represents the project ID
and the value the corresponding ProjectRepositoryEntries.
|
ProjectRepositoryEntries |
getProjectRepositoryEntries(java.lang.String projectID)
Returns the ProjectRepositoryEntries for the specified project.
|
RepositoryEntry |
getProjectUpdate(Project project)
Returns the project update, if such an update can be found.
|
RepositoryEntry |
getProjectUpdate(java.lang.String projectID,
java.lang.String versionTag,
java.lang.String version)
Return the project update, if such an update can be found.
|
java.util.List<java.lang.String> |
getRepositoryFileList()
Return a complete repository file list.
|
java.util.List<java.lang.String> |
getRepositoryFileList(java.lang.String baseFileReferenceOrLink)
Return a complete repository file list.
|
java.util.List<java.lang.String> |
getRepositoryProjectList()
Returns the list of projects located in the repository.
|
boolean |
isWebRepository()
Return if the current repository is a web repository.
|
static ProjectRepository |
loadProjectRepository(java.io.File localRepositoryDirectory)
Loads a project repository from the specified URL.
|
static ProjectRepository |
loadProjectRepository(java.lang.String fileReferenceOrLink)
Loads a project repository from a file reference or a link.
|
static ProjectRepository |
loadProjectRepository(java.net.URL webURL)
Loads a project repository from the specified URL.
|
void |
save(java.io.File localRepositoryDirectory)
Saves the current instance to the specified directory.
|
void |
setWebRepository(boolean webRepository)
Sets that the current repository is a web repository or not.
|
public java.util.TreeMap<java.lang.String,ProjectRepositoryEntries> getProjectRepositories()
public boolean isWebRepository()
public void setWebRepository(boolean webRepository)
webRepository
- the new web repositorypublic java.util.List<java.lang.String> getRepositoryProjectList()
public ProjectRepositoryEntries getProjectRepositoryEntries(java.lang.String projectID)
projectID
- the project IDpublic void addRepositoryEntry(RepositoryEntry repositoryEntry)
repositoryEntry
- the repository entrypublic RepositoryEntry getProjectUpdate(Project project)
project
- the project for which an update has to be foundpublic RepositoryEntry getProjectUpdate(java.lang.String projectID, java.lang.String versionTag, java.lang.String version)
projectID
- the project IDpublic java.util.List<java.lang.String> getRepositoryFileList()
public java.util.List<java.lang.String> getRepositoryFileList(java.lang.String baseFileReferenceOrLink)
baseFileReferenceOrLink
- the base file reference or link to the repository (may be null)public void save(java.io.File localRepositoryDirectory)
localRepositoryDirectory
- the local repository directorypublic static ProjectRepository loadProjectRepository(java.lang.String fileReferenceOrLink)
fileReferenceOrLink
- the file reference or link to the repositorypublic static ProjectRepository loadProjectRepository(java.net.URL webURL)
url
- the URL to load frompublic static ProjectRepository loadProjectRepository(java.io.File localRepositoryDirectory)
localRepositoryDirectory
- the local repository directory