public interface

Repository

com.atlassian.stash.repository.Repository

Class Overview

A repository in Stash.

Summary

Nested Classes
enum Repository.State  
Constants
String NAME_REGEXP
String SLUG_REGEXP
Public Methods
@Nullable Integer getId()
@Nonnull @RequiredString String getName()
@Nullable Repository getOrigin()
@Nonnull Project getProject()
@Nonnull @RequiredString String getScmId()
Retrieves the unique identifier for the SCM used by this repository.
@Nonnull @RequiredString String getSlug()
@Nonnull Repository.State getState()
@Nullable @OptionalString String getStatusMessage()

Constants

public static final String NAME_REGEXP

Constant Value: "[\p{Alnum}][\w\-\. ]*"

public static final String SLUG_REGEXP

Constant Value: "[\p{Alnum}][\w\-\.]*"

Public Methods

@Nullable public Integer getId ()

@Nonnull @RequiredString public String getName ()

@Nullable public Repository getOrigin ()

@Nonnull public Project getProject ()

@Nonnull @RequiredString public String getScmId ()

Retrieves the unique identifier for the SCM used by this repository.

Returns
  • the unique identifier of the repository's SCM
See Also

@Nonnull @RequiredString public String getSlug ()

@Nonnull public Repository.State getState ()

@Nullable @OptionalString public String getStatusMessage ()