Cookie Notice

Use Tree Navigation
@JsonSurrogate public class

RestRepository

extends RestLinkedMapEntity
java.lang.Object
   ↳ java.util.AbstractMap<K, V>
     ↳ java.util.HashMap<K, V>
       ↳ java.util.LinkedHashMap<K, V>
         ↳ com.atlassian.bitbucket.rest.RestMapEntity
           ↳ com.atlassian.bitbucket.rest.RestLinkedMapEntity
             ↳ com.atlassian.bitbucket.rest.repository.RestRepository

Summary

[Expand]
Inherited Constants
From class com.atlassian.bitbucket.rest.RestLinkedMapEntity
Fields
public static final RestPage<RestRepository> PAGE_EXAMPLE
public static final RestPage<RestRepository> PAGE_EXAMPLE_FOR_FORKS
public static final RestRepository REQUEST_EXAMPLE
public static final RestRepository REQUEST_EXAMPLE_FOR_UPDATE
public static final RestRepository REQUEST_EXAMPLE_NAME_ONLY
public static final RestRepository REQUEST_EXAMPLE_WITH_PROJECT
public static final RestRepository RESPONSE_EXAMPLE
public static final RestRepository RESPONSE_EXAMPLE_SIMPLE
public static final RestRepository RESPONSE_EXAMPLE_WITH_ORIGIN
public static final Function<RepositoryRestRepository> REST_TRANSFORM
Public Constructors
RestRepository()
RestRepository(Repository repository)
RestRepository(Repository repository, boolean includeProject)
Public Methods
int getId()
String getName()
RestProject getProject()
String getScmId()
String getSlug()
boolean hasForkable()
boolean hasProject()
boolean hasPublic()
boolean isForkable()
boolean isPublic()
static RestRepository simple(Repository repository)
Create a simple Rest representation of the given repository, with a subset of the fields set:
  • id
  • name
  • slug
  • forkable
  • origin id(if origin is not null)
  • project key
  • public or private
@Nullable static RestRepository valueOf(Object value)
[Expand]
Inherited Methods
From class com.atlassian.bitbucket.rest.RestLinkedMapEntity
From class com.atlassian.bitbucket.rest.RestMapEntity
From class java.util.LinkedHashMap
From class java.util.HashMap
From class java.util.AbstractMap
From class java.lang.Object
From interface java.util.Map

Fields

public static final RestPage<RestRepository> PAGE_EXAMPLE

public static final RestPage<RestRepository> PAGE_EXAMPLE_FOR_FORKS

public static final RestRepository REQUEST_EXAMPLE

public static final RestRepository REQUEST_EXAMPLE_FOR_UPDATE

public static final RestRepository REQUEST_EXAMPLE_NAME_ONLY

public static final RestRepository REQUEST_EXAMPLE_WITH_PROJECT

public static final RestRepository RESPONSE_EXAMPLE

public static final RestRepository RESPONSE_EXAMPLE_SIMPLE

public static final RestRepository RESPONSE_EXAMPLE_WITH_ORIGIN

public static final Function<RepositoryRestRepository> REST_TRANSFORM

Public Constructors

public RestRepository ()

public RestRepository (Repository repository)

public RestRepository (Repository repository, boolean includeProject)

Public Methods

public int getId ()

public String getName ()

public RestProject getProject ()

public String getScmId ()

public String getSlug ()

public boolean hasForkable ()

public boolean hasProject ()

public boolean hasPublic ()

public boolean isForkable ()

public boolean isPublic ()

public static RestRepository simple (Repository repository)

Create a simple Rest representation of the given repository, with a subset of the fields set:

  • id
  • name
  • slug
  • forkable
  • origin id(if origin is not null)
  • project key
  • public or private

Parameters
repository the repository to create a Rest entity from
Returns

@Nullable public static RestRepository valueOf (Object value)

Feedback?
View cookie preferences