01: /*
02: * Bossa Workflow System
03: *
04: * $Id: PurgeHistory.java,v 1.3 2004/01/15 22:13:32 gdvieira Exp $
05: *
06: * Copyright (C) 2004 OpenBR Sistemas S/C Ltda.
07: *
08: * This file is part of Bossa.
09: *
10: * Bossa is free software; you can redistribute it and/or modify it
11: * under the terms of version 2 of the GNU General Public License as
12: * published by the Free Software Foundation.
13: *
14: * This program is distributed in the hope that it will be useful,
15: * but WITHOUT ANY WARRANTY; without even the implied warranty of
16: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17: * General Public License for more details.
18: *
19: * You should have received a copy of the GNU General Public
20: * License along with this program; if not, write to the
21: * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
22: * Boston, MA 02111-1307, USA.
23: */
24:
25: package com.bigbross.bossa.history;
26:
27: import java.util.Date;
28:
29: /**
30: * This class implements the purge history operation of
31: * <code>Historian</code> through the prevalence subsystem. <p>
32: *
33: * @author <a href="http://www.bigbross.com">BigBross Team</a>
34: * @see Historian#purgeHistory(Date)
35: */
36: class PurgeHistory extends HistorianTransaction {
37:
38: private Date end;
39:
40: /**
41: * Creates a new purge history operation. <p>
42: *
43: * @param end the end date.
44: */
45: PurgeHistory(Date end) {
46: this .end = end;
47: }
48:
49: /**
50: * @see HistorianTransaction#execute(Historian)
51: */
52: protected Object execute(Historian historian) {
53: historian.purgeHistoryImpl(end);
54: return null;
55: }
56: }
|