Package sonia.scm.store
Class StoreParametersBuilder<S>
java.lang.Object
sonia.scm.store.StoreParametersBuilder<S>
- Type Parameters:
S
- type of store
Builder for
StoreParameters
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Creates or gets the store with the given name and (if specified) the given repository.forRepository
(String repositoryId) Use this to create or get a store for a specific repository.forRepository
(Repository repository) Use this to create or get a store for a specific repository.
-
Method Details
-
forRepository
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
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
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.
-