public static class

RepositorySearchRequest.Builder

extends Object
java.lang.Object
   ↳ com.atlassian.stash.repository.RepositorySearchRequest.Builder

Summary

Public Constructors
RepositorySearchRequest.Builder()
RepositorySearchRequest.Builder(RepositorySearchRequest request)
Constructs a new Builder which will copy initial values from the provided request.
Public Methods
@Nonnull RepositorySearchRequest build()
Assembles a new RepositorySearchRequest from the provided values.
@Nonnull RepositorySearchRequest.Builder name(String value)
Set the name filter for the resulting request instance.
@Nonnull RepositorySearchRequest.Builder permission(Permission value)
Set the permission level for the resulting request instance.
@Nonnull RepositorySearchRequest.Builder projectName(String value)
Set the project name filter for the resulting request instance.
@Nonnull RepositorySearchRequest.Builder visibility(RepositoryVisibility value)
Set the visibility level for the resulting request instance.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public RepositorySearchRequest.Builder ()

public RepositorySearchRequest.Builder (RepositorySearchRequest request)

Constructs a new Builder which will copy initial values from the provided request.

Parameters
request request to copy

Public Methods

@Nonnull public RepositorySearchRequest build ()

Assembles a new RepositorySearchRequest from the provided values.

Returns
  • a new repository request instance

@Nonnull public RepositorySearchRequest.Builder name (String value)

Set the name filter for the resulting request instance.

Parameters
value filter text for the repository search; may be null or blank, which will both be treated as an empty filter
Returns
  • this
See Also

@Nonnull public RepositorySearchRequest.Builder permission (Permission value)

Set the permission level for the resulting request instance.

Parameters
value the required permission for the repository search; may be null
Returns
  • this
Throws
IllegalArgumentException if the provided Permission is not repository related
See Also

@Nonnull public RepositorySearchRequest.Builder projectName (String value)

Set the project name filter for the resulting request instance.

Parameters
value filter text for the repository project name; may be null or blank, which will both be treated as an empty filter
Returns
  • this
See Also

@Nonnull public RepositorySearchRequest.Builder visibility (RepositoryVisibility value)

Set the visibility level for the resulting request instance.

Parameters
value the required visibility for the repository search; may be null
Returns
  • this
See Also