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 classRepository.DescriptorImplstatic classRepository.RepositoryType
-
Field Summary
Fields Modifier and Type Field Description static StringCENTRALstatic StringENDPOINTstatic RepositoryMAVEN_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 intcompareTo(Repository repository)booleanequals(Object obj)StringgetCredentialsId()StringgetId()StringgetPassword()Deprecated.Repository.RepositoryTypegetReleaseRepository()Repository.RepositoryTypegetSnapshotRepository()StringgetType()StringgetUrl()StringgetUser()Deprecated.inthashCode()booleanhasLegacyCredentials()booleanisEnableReleaseRepository()booleanisEnableSnapshotRepository()voidsetCredentialsId(String credentialsId)voidsetEnableReleaseRepository(boolean enableReleaseRepository)voidsetEnableSnapshotRepository(boolean enableSnapshotRepository)voidsetPassword(String password)Deprecated.voidsetReleaseRepository(Repository.RepositoryType releaseRepository)voidsetSnapshotRepository(Repository.RepositoryType snapshotRepository)voidsetUser(String user)Deprecated.StringtoDescription()StringtoString()-
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:
compareToin 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()
-
-