blob: d91b2e5932e8f7c474183c9d18e9a6f40a4c43ae (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
|
/* --- BEGIN COPYRIGHT BLOCK ---
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* --- END COPYRIGHT BLOCK --- */
package com.netscape.dsml.gateway;
import netscape.ldap.*;
import org.w3c.dom.*;
/**
*
* @author elliot
*/
public class gatewayContext {
/**
* Holds value of property ldapConnection.
*/
private LDAPConnection ldapConnection;
/**
* Holds value of property constraints.
*/
private netscape.ldap.LDAPSearchConstraints constraints;
/**
* Holds value of property rootNode.
*/
private org.w3c.dom.Node rootNode;
/**
* Getter for property ldapConnection.
* @return Value of property ldapConnection.
*/
public LDAPConnection getLdapConnection() {
if (this.ldapConnection == null || this.ldapConnection.isConnected() == false ) {
IConnectionManager ldap_pool = null;
try {
ProxyConnMgrFactory pmc = new ProxyConnMgrFactory();
ldap_pool = pmc.getInstance();
}
catch (Exception e) {
}
this.ldapConnection = ldap_pool.getConnection();
}
return this.ldapConnection;
}
/**
* Setter for property ldapConnection.
* @param ldapConnection New value of property ldapConnection.
*/
public void setLdapConnection(LDAPConnection ldapConnection) {
// this.ldapConnection = ldapConnection;
}
/**
* Getter for property constraints.
* @return Value of property constraints.
*/
public netscape.ldap.LDAPSearchConstraints getConstraints() {
return this.constraints;
}
/**
* Setter for property constraints.
* @param constraints New value of property constraints.
*/
public void setConstraints(netscape.ldap.LDAPSearchConstraints constraints) {
this.constraints = constraints;
}
/**
* Getter for property rootNode.
* @return Value of property rootNode.
*/
public org.w3c.dom.Node getRootNode() {
return this.rootNode;
}
/**
* Setter for property rootNode.
* @param rootNode New value of property rootNode.
*/
public void setRootNode(org.w3c.dom.Node rootNode) {
this.rootNode = rootNode;
}
}
|