Interface EnvironmentRepository
- All Known Implementing Classes:
JsonFilesEnvironmentRepository
public interface EnvironmentRepository
Repository of
Environments.-
Method Summary
Modifier and TypeMethodDescriptionvoidfindByName(String name) default List<Environment>findByNames(List<String> names) default List<Environment>voidsave(Environment environment)
-
Method Details
-
save
- Parameters:
environment- to save, identified by itsEnvironment.name- Throws:
InvalidEnvironmentNameException
-
findByName
- Throws:
EnvironmentNotFoundException
-
listNames
- Returns:
- all
Environmentidentifiers
-
delete
- Parameters:
name- of theEnvironmentto delete- Throws:
EnvironmentNotFoundExceptionCannotDeleteEnvironmentException
-
getEnvironments
-
findByNames
-