diff options
| author | Andrew Branson <andrew.branson@cern.ch> | 2013-02-18 15:01:46 +0100 |
|---|---|---|
| committer | Andrew Branson <andrew.branson@cern.ch> | 2013-03-18 14:03:53 +0100 |
| commit | d6cfc7505be13b3b09adf423206cf75d9f806c12 (patch) | |
| tree | 8689ba2c6fdb7fba16ca7db9f9b11e90c010970b /src/main/java/com/c2kernel/lookup/Path.java | |
| parent | 843f2d127ca11a93de706bda4025dd27eeaed97c (diff) | |
Initial Interface creation. Some compilation problems remain.
Diffstat (limited to 'src/main/java/com/c2kernel/lookup/Path.java')
| -rw-r--r-- | src/main/java/com/c2kernel/lookup/Path.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/main/java/com/c2kernel/lookup/Path.java b/src/main/java/com/c2kernel/lookup/Path.java index 16d4f07..3ede4b6 100644 --- a/src/main/java/com/c2kernel/lookup/Path.java +++ b/src/main/java/com/c2kernel/lookup/Path.java @@ -227,7 +227,7 @@ public abstract class Path implements Serializable }
public boolean exists() {
- return Gateway.getLDAPLookup().exists(this);
+ return Gateway.getLookup().exists(this);
}
/** Queries the lookup for the IOR
@@ -236,9 +236,9 @@ public abstract class Path implements Serializable public org.omg.CORBA.Object getIOR() {
org.omg.CORBA.Object newIOR = null;
if (mIOR==null) { // if not cached try to resolve
- LDAPLookup myLookup = Gateway.getLDAPLookup();
+ Lookup myLookup = Gateway.getLookup();
try {
- newIOR = myLookup.getIOR(this);
+ newIOR = myLookup.resolve(this);
} catch (ObjectNotFoundException ex) {
}
setIOR(newIOR);
@@ -264,11 +264,11 @@ public abstract class Path implements Serializable LDAPSearchConstraints searchCons = new LDAPSearchConstraints();
searchCons.setBatchSize(10);
searchCons.setDereference(LDAPSearchConstraints.DEREF_FINDING );
- return Gateway.getLDAPLookup().search(getFullDN(), LDAPConnection.SCOPE_ONE,filter,searchCons);
+ return Gateway.getLookup().search(getFullDN(), LDAPConnection.SCOPE_ONE,filter,searchCons);
}
public Path find(String name) throws ObjectNotFoundException {
- Enumeration<Path> e = Gateway.getLDAPLookup().search(this, name);
+ Enumeration<Path> e = Gateway.getLookup().search(this, name);
if (e.hasMoreElements()) {
Path thisPath = e.nextElement();
if (e.hasMoreElements())
|
