|
1 |
| |
|
2 |
| |
|
3 |
| |
|
4 |
| |
|
5 |
| |
|
6 |
| |
|
7 |
| |
|
8 |
| |
|
9 |
| |
|
10 |
| |
|
11 |
| package org.globus.cas.impl.service; |
|
12 |
| |
|
13 |
| import org.globus.wsrf.Resource; |
|
14 |
| |
|
15 |
| import org.globus.wsrf.impl.SingletonResourceHome; |
|
16 |
| |
|
17 |
| public class CasResourceHome extends SingletonResourceHome { |
|
18 |
| |
|
19 |
| protected Class resourceClass; |
|
20 |
| |
|
21 |
| int maxAssertionLifetime = -1; |
|
22 |
| String voDescription = null; |
|
23 |
| |
|
24 |
0
| protected Resource findSingleton() {
|
|
25 |
0
| return new CasResource(this.maxAssertionLifetime, voDescription);
|
|
26 |
| } |
|
27 |
| |
|
28 |
0
| public void setResourceClass(String clazz)
|
|
29 |
| throws ClassNotFoundException { |
|
30 |
0
| this.resourceClass = Class.forName(clazz);
|
|
31 |
| } |
|
32 |
| |
|
33 |
0
| public String getResourceClass() {
|
|
34 |
0
| return this.resourceClass.getName();
|
|
35 |
| } |
|
36 |
| |
|
37 |
0
| public void setMaxAssertionLifetime(int lifetime) {
|
|
38 |
0
| this.maxAssertionLifetime = lifetime;
|
|
39 |
| } |
|
40 |
| |
|
41 |
0
| public int getMaxAssertionLifetime() {
|
|
42 |
0
| return this.maxAssertionLifetime;
|
|
43 |
| } |
|
44 |
| |
|
45 |
0
| public void setVoDescription(String description) {
|
|
46 |
0
| this.voDescription = description;
|
|
47 |
| } |
|
48 |
| |
|
49 |
0
| public String getVoDescription() {
|
|
50 |
0
| return this.voDescription;
|
|
51 |
| } |
|
52 |
| |
|
53 |
| } |