Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
VetoableAccessDecisionAdapter |
|
| 1.0;1 |
1 | /* | |
2 | * Copyright (c) 2009, Ergon Informatik AG (http://www.ergon.ch) | |
3 | * All rights reserved. | |
4 | * | |
5 | * Licensed under the Open Permis License which accompanies this distribution, | |
6 | * and is available at http://www.openpermis.org/BSDlicenceKent.txt | |
7 | */ | |
8 | package org.openpermis.audit; | |
9 | ||
10 | import org.openpermis.PolicyDecisionException; | |
11 | import org.openpermis.policy.AccessDecision; | |
12 | ||
13 | ||
14 | /** | |
15 | * Adapter base class for {@link VetoableAccessDecisionListener}. | |
16 | * <p>Extend this adapter to guard against future additions to the listener class or to | |
17 | * simplify implementation if you only need certain portions of the listener. The adapter | |
18 | * implementations do nothing by default.</p> | |
19 | * @since 0.3.0 | |
20 | */ | |
21 | 0 | public class VetoableAccessDecisionAdapter |
22 | implements VetoableAccessDecisionListener | |
23 | { | |
24 | ||
25 | //---- VetoableAccessDecisionListener | |
26 | ||
27 | /** | |
28 | * @since 0.3.0 | |
29 | */ | |
30 | public void accessDecisionFailure ( | |
31 | AccessDecisionRequest request, PolicyDecisionException exception | |
32 | ) { | |
33 | // Nop. | |
34 | 0 | } |
35 | ||
36 | /** | |
37 | * @since 0.3.0 | |
38 | */ | |
39 | public void vetoableAccessDecision ( | |
40 | AccessDecisionRequest request, AccessDecision decision | |
41 | ) | |
42 | throws AccessDecisionVetoException | |
43 | { | |
44 | // Nop. | |
45 | 0 | } |
46 | ||
47 | } |