@JsonSurrogate public class

RestScope

extends RestMapEntity
implements Scope
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.scope.RestScope

Summary

Fields
public static final RestScope REPOSITORY_SCOPE_EXAMPLE
Public Constructors
RestScope(Scope scope)
RestScope(OptionalInt resourceId, ScopeType type)
Useful in the case where you are have recorded a Scope's details yet are not in a position at the call point of the constructor to rehydrate it from the database.
Public Methods
<T> T accept(ScopeVisitor<T> visitor)
@Nonnull Optional<Integer> getResourceId()
@Nonnull ScopeType getType()
@Nullable static RestScope valueOf(Object object)
[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 com.atlassian.bitbucket.scope.Scope
From interface java.util.Map

Fields

public static final RestScope REPOSITORY_SCOPE_EXAMPLE

Public Constructors

public RestScope (Scope scope)

public RestScope (OptionalInt resourceId, ScopeType type)

Useful in the case where you are have recorded a Scope's details yet are not in a position at the call point of the constructor to rehydrate it from the database. Supplying the properties piecemeal here matches the JSON representation anyway.

Parameters
resourceId the id of the resource if not GLOBAL
type the scope type

Public Methods

public T accept (ScopeVisitor<T> visitor)

@Nonnull public Optional<Integer> getResourceId ()

@Nonnull public ScopeType getType ()

@Nullable public static RestScope valueOf (Object object)