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()
IRepository
getAuthenticationInfo
in interface IRepository
public java.lang.String getUrl()
IRepository
getUrl
in interface IRepository
public java.lang.String getId()
IRepository
getId
in interface IRepository
public java.lang.String getMirrorId()
IRepository
getMirrorId
in interface IRepository
public java.lang.String getMirrorOf()
IRepository
getMirrorOf
in interface IRepository
public 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()
IRepository
getUid
in interface IRepository
public static java.lang.String getUid(java.lang.String id, java.lang.String repositoryUrl, java.lang.String username)
public java.lang.String getProtocol()
IRepository
getProtocol
in interface IRepository
public static java.lang.String getProtocol(java.lang.String repositoryUrl)
public static java.io.File getBasedir(java.lang.String repositoryUrl)
public java.io.File getBasedir()
IRepository
getBasedir
in interface IRepository
public boolean isScope(int scope)
isScope
in interface IRepository
public java.lang.String toString()
IRepository
toString
in interface IRepository
toString
in class java.lang.Object