@JsonSurrogate public class

RestProject

extends RestLinkedMapEntity
implements Project AvatarAware
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.project.RestProject
Known Direct Subclasses

Summary

[Expand]
Inherited Constants
From class com.atlassian.bitbucket.rest.RestLinkedMapEntity
From interface com.atlassian.bitbucket.project.Project
From interface com.atlassian.bitbucket.rest.avatar.AvatarAware
Fields
public static final RestPage<RestProject> PAGE_EXAMPLE
public static final RestProject REQUEST_EXAMPLE
public static final RestProject REQUEST_EXAMPLE_KEY_ONLY
public static final RestProject RESPONSE_EXAMPLE
public static final RestProject RESPONSE_EXAMPLE_PERSONAL
public static final RestProject RESPONSE_EXAMPLE_SIMPLE
public static final Function<ProjectRestProject> REST_TRANSFORM
public static final ProjectVisitor<RestProject> TRANSFORM_VISITOR
Public Constructors
RestProject()
RestProject(Project project)
Public Methods
<T> T accept(ProjectVisitor<T> visitor)
static RestProject fromProject(Project project)
String getAvatar()
String getDescription()
int getId()
@Nonnull String getKey()
@Nonnull String getName()
String getNamespace()
@Nonnull ProjectType getType()
boolean hasAvatar()
boolean hasPublic()
boolean isPublic()
void setAvatarUrl(String url)
static RestProject simple(Project project)
Create a simple Rest representation of the given project, with a subset of the fields set:
  • id
  • name
  • key
  • type (personal or normal)
  • public or private
@Nullable static RestProject 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 com.atlassian.bitbucket.project.Project
From interface com.atlassian.bitbucket.rest.avatar.AvatarAware
From interface java.util.Map

Fields

public static final RestPage<RestProject> PAGE_EXAMPLE

public static final RestProject REQUEST_EXAMPLE

public static final RestProject REQUEST_EXAMPLE_KEY_ONLY

public static final RestProject RESPONSE_EXAMPLE

public static final RestProject RESPONSE_EXAMPLE_PERSONAL

public static final RestProject RESPONSE_EXAMPLE_SIMPLE

public static final Function<ProjectRestProject> REST_TRANSFORM

public static final ProjectVisitor<RestProject> TRANSFORM_VISITOR

Public Constructors

public RestProject ()

public RestProject (Project project)

Public Methods

public T accept (ProjectVisitor<T> visitor)

public static RestProject fromProject (Project project)

public String getAvatar ()

public String getDescription ()

public int getId ()

@Nonnull public String getKey ()

@Nonnull public String getName ()

public String getNamespace ()

@Nonnull public ProjectType getType ()

public boolean hasAvatar ()

public boolean hasPublic ()

public boolean isPublic ()

public void setAvatarUrl (String url)

public static RestProject simple (Project project)

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

  • id
  • name
  • key
  • type (personal or normal)
  • public or private

Parameters
project the project to create a Rest entity from
Returns
  • the simplified Rest entity representing the given project, or null if the given project is null

@Nullable public static RestProject valueOf (Object value)