01: /* Copyright (c) 2001 - 2007 TOPP - www.openplans.org. All rights reserved.
02: * This code is licensed under the GPL 2.0 license, availible at the root
03: * application directory.
04: */
05: package org.geoserver.wfs;
06:
07: import net.opengis.wfs.TransactionType;
08:
09: /**
10: * A transaction plugin is able to listen to a transaction evolution, perform
11: * checks and throw exceptions, alter transaction requests, as well as
12: */
13: public interface TransactionPlugin extends TransactionListener {
14: /**
15: * Check/alter the transaction request elements
16: */
17: TransactionType beforeTransaction(TransactionType request)
18: throws WFSException;
19:
20: /**
21: * Say the last word before we actually commit the transaction
22: */
23: void beforeCommit(TransactionType request) throws WFSException;
24:
25: /**
26: * Notification the transaction ended
27: *
28: * @param committed
29: * true if the transaction was successful, false if the
30: * transaction was aborted for any reason
31: */
32: void afterTransaction(TransactionType request, boolean committed);
33:
34: /**
35: * Aspects gets called in a specific order. State your priority, the higher
36: * the number, the earlier the plugin will be processed.
37: */
38: int getPriority();
39: }
|