Class BitBucketRepository
- java.lang.Object
-
- jetbrains.buildServer.serverSide.oauth.bitbucket.BitBucketRepository
-
- All Implemented Interfaces:
ExternalRepository
public class BitBucketRepository extends Object implements ExternalRepository
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BitBucketRepository.OwnerType
-
Constructor Summary
Constructors Constructor Description BitBucketRepository(String id)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getCloneUrl()
String
getDefaultBranch()
String
getHtmlUrl()
String
getHttpCloneUrl()
String
getId()
String
getMainBranch()
String
getName()
String
getOnwerDisplayName()
String
getOwner()
int
getOwnerType()
String
getSshCloneUrl()
boolean
isPrivate()
void
setCloneUrl(String cloneUrl)
void
setHtmlUrl(String htmlUrl)
void
setMainBranch(String mainBranch)
void
setName(String name)
void
setOnwerDisplayName(String onwerDisplayName)
void
setOwner(String owner)
void
setOwnerType(int ownerType)
void
setPrivate(boolean aPrivate)
-
-
-
Constructor Detail
-
BitBucketRepository
public BitBucketRepository(@NotNull String id)
-
-
Method Detail
-
isPrivate
public boolean isPrivate()
- Specified by:
isPrivate
in interfaceExternalRepository
- Returns:
- true if it is known that the repository is private, false otherwise
-
getId
@NotNull public String getId()
- Specified by:
getId
in interfaceExternalRepository
- Returns:
- repository id as provided by VCS hosting
-
getHttpCloneUrl
@NotNull public String getHttpCloneUrl()
- Specified by:
getHttpCloneUrl
in interfaceExternalRepository
- Returns:
- HTTPS clone URL
-
getSshCloneUrl
@Nullable public String getSshCloneUrl()
- Specified by:
getSshCloneUrl
in interfaceExternalRepository
- Returns:
- SSH clone URL
-
setPrivate
public void setPrivate(boolean aPrivate)
-
getName
@NotNull public String getName()
- Specified by:
getName
in interfaceExternalRepository
- Returns:
- repository name
-
setName
public void setName(String name)
-
getHtmlUrl
public String getHtmlUrl()
- Specified by:
getHtmlUrl
in interfaceExternalRepository
- Returns:
- Repository web page URL
-
setHtmlUrl
public void setHtmlUrl(String htmlUrl)
-
getCloneUrl
@NotNull public String getCloneUrl()
- Specified by:
getCloneUrl
in interfaceExternalRepository
- Returns:
- HTTPS clone URL
-
setCloneUrl
public void setCloneUrl(String cloneUrl)
-
getOwner
public String getOwner()
-
setOwner
public void setOwner(String owner)
-
getOnwerDisplayName
public String getOnwerDisplayName()
-
setOnwerDisplayName
public void setOnwerDisplayName(String onwerDisplayName)
-
getMainBranch
public String getMainBranch()
-
setMainBranch
public void setMainBranch(String mainBranch)
-
getDefaultBranch
public String getDefaultBranch()
- Specified by:
getDefaultBranch
in interfaceExternalRepository
-
getOwnerType
public int getOwnerType()
-
setOwnerType
public void setOwnerType(int ownerType)
-
-