Class Repository
- java.lang.Object
-
- hudson.model.AbstractDescribableImpl<Repository>
-
- org.jvnet.hudson.plugins.repositoryconnector.Repository
-
- All Implemented Interfaces:
Describable<Repository>
,Comparable<Repository>
public class Repository extends AbstractDescribableImpl<Repository> implements Comparable<Repository>
Represents a repository where artifacts can be resolved from or uploaded to.- Author:
- domi
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Repository.DescriptorImpl
static class
Repository.RepositoryType
-
Field Summary
Fields Modifier and Type Field Description static String
CENTRAL
static String
ENDPOINT
static Repository
MAVEN_CENTRAL
-
Constructor Summary
Constructors Constructor Description Repository(String id, String url)
Repository(Repository toClone)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description int
compareTo(Repository repository)
boolean
equals(Object obj)
String
getCredentialsId()
String
getId()
String
getPassword()
Deprecated.Repository.RepositoryType
getReleaseRepository()
Repository.RepositoryType
getSnapshotRepository()
String
getType()
String
getUrl()
String
getUser()
Deprecated.int
hashCode()
boolean
hasLegacyCredentials()
boolean
isEnableReleaseRepository()
boolean
isEnableSnapshotRepository()
void
setCredentialsId(String credentialsId)
void
setEnableReleaseRepository(boolean enableReleaseRepository)
void
setEnableSnapshotRepository(boolean enableSnapshotRepository)
void
setPassword(String password)
Deprecated.void
setReleaseRepository(Repository.RepositoryType releaseRepository)
void
setSnapshotRepository(Repository.RepositoryType snapshotRepository)
void
setUser(String user)
Deprecated.String
toDescription()
String
toString()
-
Methods inherited from class hudson.model.AbstractDescribableImpl
getDescriptor
-
-
-
-
Field Detail
-
CENTRAL
public static final String CENTRAL
- See Also:
- Constant Field Values
-
ENDPOINT
public static final String ENDPOINT
- See Also:
- Constant Field Values
-
MAVEN_CENTRAL
public static final Repository MAVEN_CENTRAL
-
-
Constructor Detail
-
Repository
public Repository(Repository toClone)
-
-
Method Detail
-
compareTo
public int compareTo(Repository repository)
- Specified by:
compareTo
in interfaceComparable<Repository>
-
getCredentialsId
public String getCredentialsId()
-
getId
public String getId()
-
getPassword
@Deprecated public String getPassword()
Deprecated.
-
getReleaseRepository
public Repository.RepositoryType getReleaseRepository()
-
getSnapshotRepository
public Repository.RepositoryType getSnapshotRepository()
-
getType
public String getType()
-
getUrl
public String getUrl()
-
getUser
@Deprecated public String getUser()
Deprecated.
-
hasLegacyCredentials
public boolean hasLegacyCredentials()
-
isEnableReleaseRepository
public boolean isEnableReleaseRepository()
-
isEnableSnapshotRepository
public boolean isEnableSnapshotRepository()
-
setCredentialsId
@DataBoundSetter public void setCredentialsId(String credentialsId)
-
setEnableReleaseRepository
@DataBoundSetter public void setEnableReleaseRepository(boolean enableReleaseRepository)
-
setEnableSnapshotRepository
@DataBoundSetter public void setEnableSnapshotRepository(boolean enableSnapshotRepository)
-
setPassword
@Deprecated public void setPassword(String password)
Deprecated.
-
setReleaseRepository
@DataBoundSetter public void setReleaseRepository(Repository.RepositoryType releaseRepository)
-
setSnapshotRepository
@DataBoundSetter public void setSnapshotRepository(Repository.RepositoryType snapshotRepository)
-
setUser
@Deprecated public void setUser(String user)
Deprecated.
-
toDescription
public String toDescription()
-
-