| java.lang.Object de.latlon.adv.InsertTransactionHandler
InsertTransactionHandler | public class InsertTransactionHandler (Code) | | The InsertTransactionHandler class will cut an csw/wrs ebrim insert transaction into four differend
transactions, some of which are handled as wfs transactions. For each record in an Insert Transaction the basic
workflow is following:
- find out if the to id of the to inserted record is allready in the wfs database
- if so, set it's app:status value to "invalid"
- insert / update the records
- create an audittrail, that is an app:AuditableEvent of the insertion
author: Rutger Bezema author: last edited by: $Author: bezema $ version: $Revision: 1.7 $, $Date: 2007-06-21 13:54:33 $ |
Method Summary | |
public List<Element> | handleInsertTransaction(Manager transactionManager, int[] resultValues) This method will handle the insert (given from
Parameters: transactionManager - which can handle the csw transactions and allows the access to a localwfs, if null anInvalidParameterException will be thrown. Parameters: resultValues - an array[3] in which the number of insertions (resultValues[0]) and/or updates (resultValues[2]) willbe saved. |
InsertTransactionHandler | public InsertTransactionHandler(Transaction originalTransaction, Insert insert, URI appURI, String userName)(Code) | | Creates an TransactionHandler which will be able to handle csw/ebrim inserts as defined in the wrs spec.
Parameters: originalTransaction - parsed from the incoming HttpServletRequest. Parameters: insert - InsertOperation to be handled (as part of the original Transaction) may not be null; Parameters: appURI - defining a namespace in which the wfs RegistryObjects Recide. Parameters: userName - of the users which wants to insert registryObjects, if not set it will be set to anonymous. |
handleInsertTransaction | public List<Element> handleInsertTransaction(Manager transactionManager, int[] resultValues) throws OGCWebServiceException(Code) | | This method will handle the insert (given from
Parameters: transactionManager - which can handle the csw transactions and allows the access to a localwfs, if null anInvalidParameterException will be thrown. Parameters: resultValues - an array[3] in which the number of insertions (resultValues[0]) and/or updates (resultValues[2]) willbe saved. If resultValues.length != 3 an InvalidParameterException will be thrown. the brief representation of the inserted (not updated) elements. throws: OGCWebServiceException - |
|
|