1 | /* |
2 | * Copyright 2005-2006 The RbUtils Project |
3 | * |
4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
5 | * you may not use this file except in compliance with the License. |
6 | * You may obtain a copy of the License at |
7 | * |
8 | * http://www.apache.org/licenses/LICENSE-2.0 |
9 | * |
10 | * Unless required by applicable law or agreed to in writing, software |
11 | * distributed under the License is distributed on an "AS IS" BASIS, |
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
13 | * See the License for the specific language governing permissions and |
14 | * limitations under the License. |
15 | * |
16 | */ |
17 | |
18 | // $Id$ |
19 | |
20 | package org.ktc.rbutils.api.audit.event; |
21 | |
22 | import java.io.File; |
23 | |
24 | /** |
25 | * Base event for main events which occur on a root directory. |
26 | * @since RbUtils 0.9.3.3 |
27 | * @version $Revision$ |
28 | * @author moishi |
29 | */ |
30 | public class RootEvent extends RbEvent { |
31 | /** |
32 | * Automaticly generated field for backward compatibility. |
33 | */ |
34 | private static final long serialVersionUID = 1084556740173696061L; |
35 | |
36 | /** |
37 | * The root directory on which this event applies. |
38 | */ |
39 | protected File rootDirectory; |
40 | |
41 | /** |
42 | * Constructs a <code>RootEvent</code>. |
43 | * @param source The object on which the Event initially occurred. |
44 | * @param rootDirectory the root directory on which this event applies. |
45 | * @exception IllegalArgumentException if source is <code>null</code>. |
46 | */ |
47 | public RootEvent(final Object source, final File rootDirectory) { |
48 | super(source); |
49 | this.rootDirectory = rootDirectory; |
50 | } |
51 | |
52 | public final File getRootDirectory() { |
53 | return this.rootDirectory; |
54 | } |
55 | |
56 | |
57 | } |