
com.greenpepper.server.domain.dao.SystemUnderTestDao Maven / Gradle / Ivy
package com.greenpepper.server.domain.dao;
import java.util.List;
import com.greenpepper.server.GreenPepperServerException;
import com.greenpepper.server.domain.EnvironmentType;
import com.greenpepper.server.domain.Reference;
import com.greenpepper.server.domain.Runner;
import com.greenpepper.server.domain.Specification;
import com.greenpepper.server.domain.SystemUnderTest;
public interface SystemUnderTestDao
{
/**
* Retrieves the EnvironmentType for the specified name.
*
* @param name of the EnvironmentType
* @return the EnvironmentType for the specified name.
*/
public EnvironmentType getEnvironmentTypeByName(String name);
/**
* Retrieves all the Environment Types available.
*
* @return all the Environment Types available.
*/
public List getAllEnvironmentTypes();
/**
* Creates the EnvironmentType
*
* @param environmentType
* @return the new environmentType.
*/
public EnvironmentType create(EnvironmentType environmentType);
/**
* Retrieves the Runner for the specified name.
*
* @param name of the runner
* @return the Runner for the specified name.
*/
public Runner getRunnerByName(String name);
/**
* Retrieves All available runners.
*
* @return All available runners.
*/
public List getAllRunners();
/**
* Creates the Runner
*
* @param runner
* @return the new runner.
* @throws GreenPepperServerException
*/
public Runner create(Runner runner) throws GreenPepperServerException;
/**
* Updates the runner.
*
* @param oldRunnerName
* @param runner
* @return the updated runner.
* @throws GreenPepperServerException
*/
public Runner update(String oldRunnerName, Runner runner) throws GreenPepperServerException;
/**
* Removes the runner.
*
* @param runnerName
* @throws GreenPepperServerException
*/
public void removeRunner(String runnerName) throws GreenPepperServerException;
/**
* Retrieves the SystemUnderTest for the specified name.
*
* @param name of the project
* @param name of the SUT
* @return the SystemUnderTest for the specified name.
*/
public SystemUnderTest getByName(String projectName, String sutName);
/**
* Retrieves all the SystemUnderTest for the registered Project.
*
* @param projectName
* @return all the SystemUnderTest for the registered Project.
*/
public List getAllForProject(String projectName);
/**
* Retrieves all the SystemUnderTest for the registered Runner.
*
* @param runnerName
* @return all the SystemUnderTest for the registered Runner.
*/
public List getAllForRunner(String runnerName);
/**
* Saves the specified SystemUnderTest.
*
* @param newSystemUnderTest
* @return the new SystemUnderTest.
* @throws GreenPepperServerException
*/
public SystemUnderTest create(SystemUnderTest newSystemUnderTest) throws GreenPepperServerException;
/**
* Updates the specified SystemUnderTest.
*
* @param oldSutName
* @param updatedSystemUnderTest
* @return the updated SystemUnderTest.
* @throws GreenPepperServerException
*/
public SystemUnderTest update(String oldSutName, SystemUnderTest updatedSystemUnderTest) throws GreenPepperServerException;
/**
* Deletes the specified SystemUnderTest.
*
* @param projectName.
* @param sutName.
* @throws GreenPepperServerException
*/
public void remove(String projectName, String sutName) throws GreenPepperServerException;
/**
* Set the specified SystemUnderTest as the new project default.
*
* @param systemUnderTest.
* @throws GreenPepperServerException
*/
public void setAsDefault(SystemUnderTest systemUnderTest) throws GreenPepperServerException;
/**
* Retrieves all references that depends on the SystemUnderTest
*
* @param sut
* @return all references that depends on the SystemUnderTest
*/
public List getAllReferences(SystemUnderTest sut);
/**
* Retrieves all specifications that depends on the SystemUnderTest
*
* @param sut
* @return all specifications that depends on the SystemUnderTest
*/
public List getAllSpecifications(SystemUnderTest sut);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy