1
2
3
4 package org.springframework.richclient.security.support;
5
6 import org.springframework.richclient.core.Authorizable;
7
8
9
10
11
12 public class TestAuthorizable implements Authorizable {
13
14 private boolean authorized;
15 private int authCount = 0;
16
17 public TestAuthorizable() {
18 authorized = false;
19 }
20
21 public TestAuthorizable( boolean authorized ) {
22 this.authorized = authorized;
23 }
24
25 public void setAuthorized(boolean authorized) {
26 authCount += 1;
27 this.authorized = authorized;
28 }
29
30 public boolean isAuthorized() {
31 return authorized;
32 }
33
34 public int getAuthCount() {
35 return authCount;
36 }
37 public void resetAuthCount() {
38 authCount = 0;
39 }
40 }