Interface EnvironmentRepository
-
- All Known Implementing Classes:
JsonFilesEnvironmentRepository
public interface EnvironmentRepositoryRepository ofEnvironments.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description voiddelete(String name)EnvironmentfindByName(String name)default List<Environment>getEnvironments()List<String>listNames()voidsave(Environment environment)
-
-
-
Method Detail
-
save
void save(Environment environment) throws InvalidEnvironmentNameException
- Parameters:
environment- to save, identified by itsEnvironment.name- Throws:
InvalidEnvironmentNameException
-
findByName
Environment findByName(String name) throws EnvironmentNotFoundException
- Throws:
EnvironmentNotFoundException
-
listNames
List<String> listNames()
- Returns:
- all
Environmentidentifiers
-
delete
void delete(String name) throws EnvironmentNotFoundException, CannotDeleteEnvironmentException
- Parameters:
name- of theEnvironmentto delete- Throws:
EnvironmentNotFoundExceptionCannotDeleteEnvironmentException
-
getEnvironments
default List<Environment> getEnvironments()
-
-