public class Repository extends Object
| Constructor and Description |
|---|
Repository(String slug,
long id,
String name,
boolean isPublic,
String sshCloneUrl,
String httpCloneUrl,
String selfUrl,
Project project,
Repository origin) |
| Modifier and Type | Method and Description |
|---|---|
String |
getHttpCloneUrl() |
long |
getId()
Retrieves the repository's ID, which represents its primary key.
|
String |
getName()
Retrieves the repository's name, which is guaranteed to be unique within its
project but
not within the system at large. |
Repository |
getOrigin() |
Project |
getProject() |
String |
getSelfUrl() |
String |
getSlug()
Retrieves the "slug" for this repository, which is a URL-friendly variant of its
name. |
String |
getSshCloneUrl() |
boolean |
hasCloneUrl() |
boolean |
isPublic()
Retrieves a flag indicating whether this repository is public.
|
String |
toString() |
public String getSlug()
name. Each
repository's slug is guaranteed to be unique within its project, but not within
the system at large.public long getId()
public String getName()
project but
not within the system at large.public boolean isPublic()
Note, this flag is taken into account when calculating whether this repository is accessible to unauthenticated users but is not the definitive answer.
true if the repository has been marked as public, false otherwisepublic boolean hasCloneUrl()
public String getSshCloneUrl()
public String getHttpCloneUrl()
public String getSelfUrl()
public Project getProject()
@Nullable public Repository getOrigin()
null otherwise.Copyright © 2020 Atlassian. All rights reserved.