Class StoreParametersBuilder<S>

java.lang.Object
sonia.scm.store.StoreParametersBuilder<S>
Type Parameters:
S - type of store

public final class StoreParametersBuilder<S> extends Object
Builder for StoreParameters.
  • Method Details

    • forRepository

      public StoreParametersBuilder<S> forRepository(Repository repository)
      Use this to create or get a store for a specific repository. This step is optional. If you want to have a global store, omit this.
      Parameters:
      repository - The optional repository for the store.
      Returns:
      Floating API to finish the call.
    • forRepository

      public StoreParametersBuilder<S> forRepository(String repositoryId)
      Use this to create or get a store for a specific repository. This step is optional. If you want to have a global store, omit this.
      Parameters:
      repositoryId - The id of the optional repository for the store.
      Returns:
      Floating API to finish the call.
    • build

      public S build()
      Creates or gets the store with the given name and (if specified) the given repository. If no repository is given, the store will be global.