Package com.io7m.idstore.server.admin_v1
Class IdA1ServletCoreTransactional
java.lang.Object
com.io7m.idstore.server.admin_v1.IdA1ServletCoreTransactional
- All Implemented Interfaces:
IdHTTPServletFunctionalCoreType
public final class IdA1ServletCoreTransactional
extends Object
implements IdHTTPServletFunctionalCoreType
A servlet core that executes the given core with a database transaction.
-
Method Summary
Modifier and TypeMethodDescriptionexecute(jakarta.servlet.http.HttpServletRequest request, IdHTTPServletRequestInformation information) Execute the core.withTransaction(com.io7m.repetoir.core.RPServiceDirectoryType inServices, IdHTTPServletFunctionalCoreTransactionalType inCore)
-
Method Details
-
withTransaction
public static IdHTTPServletFunctionalCoreType withTransaction(com.io7m.repetoir.core.RPServiceDirectoryType inServices, IdHTTPServletFunctionalCoreTransactionalType inCore) - Parameters:
inServices- The servicesinCore- The core- Returns:
- A servlet core that executes the given core with a database transaction
-
execute
public IdHTTPServletResponseType execute(jakarta.servlet.http.HttpServletRequest request, IdHTTPServletRequestInformation information) Description copied from interface:IdHTTPServletFunctionalCoreTypeExecute the core.- Specified by:
executein interfaceIdHTTPServletFunctionalCoreType- Parameters:
request- The requestinformation- The extra request information- Returns:
- The response
-