public class RepositoryInfo extends java.lang.Object implements IRepository
| Modifier and Type | Field and Description |
|---|---|
private org.apache.maven.wagon.authentication.AuthenticationInfo |
authInfo |
private java.io.File |
basedir |
private java.lang.String |
id |
private java.lang.String |
mirrorId |
private java.lang.String |
mirrorOf |
private java.util.Set<org.eclipse.core.runtime.IPath> |
projects |
private java.lang.String |
repositoryUrl |
private int |
scope |
private java.lang.String |
uid |
| Constructor and Description |
|---|
RepositoryInfo(java.lang.String id,
java.lang.String repositoryUrl,
java.io.File basedir,
int scope,
org.apache.maven.wagon.authentication.AuthenticationInfo authInfo) |
RepositoryInfo(java.lang.String id,
java.lang.String repositoryUrl,
int scope,
org.apache.maven.wagon.authentication.AuthenticationInfo authInfo) |
| Modifier and Type | Method and Description |
|---|---|
void |
addProject(org.eclipse.core.runtime.IPath project) |
org.apache.maven.wagon.authentication.AuthenticationInfo |
getAuthenticationInfo()
Repository access credentials.
|
java.io.File |
getBasedir()
For local repositories, returns basedir of repository contents.
|
static java.io.File |
getBasedir(java.lang.String repositoryUrl) |
java.lang.String |
getId()
Repository id element as defined in settings.xml or pom.xml file.
|
java.lang.String |
getMirrorId()
Indicates that repository id matches mirrorOf clause of a mirror.
|
java.lang.String |
getMirrorOf()
For repository mirrors, returns value of mirrorOf element as defined in settings.xml.
|
java.util.Set<org.eclipse.core.runtime.IPath> |
getProjects() |
java.lang.String |
getProtocol()
Protocol part of repository url, i.e.
|
static java.lang.String |
getProtocol(java.lang.String repositoryUrl) |
java.lang.String |
getUid()
Unique repository id.
|
static java.lang.String |
getUid(java.lang.String id,
java.lang.String repositoryUrl,
java.lang.String username) |
java.lang.String |
getUrl()
Repository URL
|
boolean |
isScope(int scope) |
void |
removeProject(org.eclipse.core.runtime.IPath project) |
void |
setMirrorId(java.lang.String mirrorId) |
void |
setMirrorOf(java.lang.String mirrorOf) |
java.lang.String |
toString()
Human readable repository identifier
|
private final java.lang.String id
private final java.lang.String repositoryUrl
private final java.io.File basedir
private final int scope
private final org.apache.maven.wagon.authentication.AuthenticationInfo authInfo
private java.lang.String uid
private java.lang.String mirrorId
private java.lang.String mirrorOf
private java.util.Set<org.eclipse.core.runtime.IPath> projects
public RepositoryInfo(java.lang.String id,
java.lang.String repositoryUrl,
int scope,
org.apache.maven.wagon.authentication.AuthenticationInfo authInfo)
public RepositoryInfo(java.lang.String id,
java.lang.String repositoryUrl,
java.io.File basedir,
int scope,
org.apache.maven.wagon.authentication.AuthenticationInfo authInfo)
public org.apache.maven.wagon.authentication.AuthenticationInfo getAuthenticationInfo()
IRepositorygetAuthenticationInfo in interface IRepositorypublic java.lang.String getUrl()
IRepositorygetUrl in interface IRepositorypublic java.lang.String getId()
IRepositorygetId in interface IRepositorypublic java.lang.String getMirrorId()
IRepositorygetMirrorId in interface IRepositorypublic java.lang.String getMirrorOf()
IRepositorygetMirrorOf in interface IRepositorypublic void setMirrorOf(java.lang.String mirrorOf)
public void setMirrorId(java.lang.String mirrorId)
public java.util.Set<org.eclipse.core.runtime.IPath> getProjects()
public void addProject(org.eclipse.core.runtime.IPath project)
public void removeProject(org.eclipse.core.runtime.IPath project)
public java.lang.String getUid()
IRepositorygetUid in interface IRepositorypublic static java.lang.String getUid(java.lang.String id,
java.lang.String repositoryUrl,
java.lang.String username)
public java.lang.String getProtocol()
IRepositorygetProtocol in interface IRepositorypublic static java.lang.String getProtocol(java.lang.String repositoryUrl)
public static java.io.File getBasedir(java.lang.String repositoryUrl)
public java.io.File getBasedir()
IRepositorygetBasedir in interface IRepositorypublic boolean isScope(int scope)
isScope in interface IRepositorypublic java.lang.String toString()
IRepositorytoString in interface IRepositorytoString in class java.lang.Object