com.projectdarkstar.tools.dtc.service
Interface ConfigTestsService


public interface ConfigTestsService

This interface exposes the operations that allow creating, updating, and deleting the test suite specifications in the database. It is intended to be a remote interface exposing a stateless session EJB3.0 bean.


Method Summary
 Long addTestSpec(TestSpecDTO testSpec)
          Creates a TestSpec object based on the given testSpec and persists it to the database backed persistent storage.
 Long addTestSuite(TestSuiteDTO testSuite)
          Creates a TestSuite object based on the given testSuite and persists it to the database backed persistent storage.
 void deleteTestSpec(Long id)
          Remove the TestSpec object with the given id from persistent storage.
 void deleteTestSuite(Long id)
          Remove the TestSuite with the given id from persistent storage.
 void updateTestSpec(Long id, Map<String,Object> updates)
          Updates a TestSpec object in persistent storage with the given id.
 void updateTestSuite(Long id, Map<String,Object> updates)
          Updates a TestSuite object in persistent storage with the given id.
 

Method Detail

addTestSuite

Long addTestSuite(TestSuiteDTO testSuite)
                  throws DTCServiceException
Creates a TestSuite object based on the given testSuite and persists it to the database backed persistent storage.

Parameters:
testSuite -
Returns:
id of the newly persisted TestSuite
Throws:
com.projectdarkstar.tools.dtc.service.DTCServiceException
DTCServiceException

updateTestSuite

void updateTestSuite(Long id,
                     Map<String,Object> updates)
                     throws DTCServiceException
Updates a TestSuite object in persistent storage with the given id. The given Map of updates maps bean attribute names to values that are to be updated.

Parameters:
id - id of the TestSuite to update
updates - map of updates to update the TestSuite
Throws:
com.projectdarkstar.tools.dtc.service.DTCServiceException
DTCServiceException

deleteTestSuite

void deleteTestSuite(Long id)
                     throws DTCServiceException
Remove the TestSuite with the given id from persistent storage.

Parameters:
id - id of the TestSuite to remove
Throws:
com.projectdarkstar.tools.dtc.service.DTCServiceException
DTCServiceException

addTestSpec

Long addTestSpec(TestSpecDTO testSpec)
                 throws DTCServiceException
Creates a TestSpec object based on the given testSpec and persists it to the database backed persistent storage.

Parameters:
testSpec -
Returns:
id of the newly persisted TestSpec
Throws:
com.projectdarkstar.tools.dtc.service.DTCServiceException
DTCServiceException

updateTestSpec

void updateTestSpec(Long id,
                    Map<String,Object> updates)
                    throws DTCServiceException
Updates a TestSpec object in persistent storage with the given id. The given Map of updates maps bean attribute names to values that are to be updated.

Parameters:
id - id of the TestSpec to update
updates - map of updates to update the TestSpec
Throws:
com.projectdarkstar.tools.dtc.service.DTCServiceException
DTCServiceException

deleteTestSpec

void deleteTestSpec(Long id)
                    throws DTCServiceException
Remove the TestSpec object with the given id from persistent storage.

Parameters:
id - id of the TestSpec object to remove
Throws:
com.projectdarkstar.tools.dtc.service.DTCServiceException
DTCServiceException


Copyright © 2013. All Rights Reserved.