@JsonSurrogate public class

RestCommit

extends RestMinimalCommit
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.commit.RestMinimalCommit
             ↳ com.atlassian.bitbucket.rest.commit.RestCommit

Summary

Fields
public static final RestCommit EXAMPLE
public static final RestCommit EXAMPLE_ALT
public static final RestPage<RestCommit> PAGE_EXAMPLE
public static final Function<CommitRestCommit> REST_TRANSFORM
[Expand]
Inherited Fields
From class com.atlassian.bitbucket.rest.commit.RestMinimalCommit
Public Constructors
RestCommit(Commit commit)
Public Methods
static Function<CommitRestCommit> createTransformer(ContainerRequest request, AvatarEnricher avatarEnricher)
Returns a Function which transforms a Commit into a RestCommit.
[Expand]
Inherited Methods
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 RestCommit EXAMPLE

public static final RestCommit EXAMPLE_ALT

public static final RestPage<RestCommit> PAGE_EXAMPLE

public static final Function<CommitRestCommit> REST_TRANSFORM

Public Constructors

public RestCommit (Commit commit)

Public Methods

public static Function<CommitRestCommit> createTransformer (ContainerRequest request, AvatarEnricher avatarEnricher)

Returns a Function which transforms a Commit into a RestCommit.

If avatars have been requested, as determined by examining the provided ContainerRequest, the returned function will automatically populate avatar URLs for commit authors.

Parameters
request the container request, used to determine whether avatars were requested
avatarEnricher the enricher to apply author avatars to commits, if they have been requested
Returns
  • a function for transforming commits for REST