summaryrefslogtreecommitdiff
path: root/src/main/java/com/c2kernel/lookup/Path.java
diff options
context:
space:
mode:
authorAndrew Branson <andrew.branson@cern.ch>2013-02-22 14:04:33 +0100
committerAndrew Branson <andrew.branson@cern.ch>2013-03-18 14:03:54 +0100
commit6e35118970c7af70eb0ac938859d794f7348d367 (patch)
treec85299f5a174a04c9df2847c1f469ff427dd6f64 /src/main/java/com/c2kernel/lookup/Path.java
parentd6cfc7505be13b3b09adf423206cf75d9f806c12 (diff)
Extracted LDAP specifics into subpackage
Diffstat (limited to 'src/main/java/com/c2kernel/lookup/Path.java')
-rw-r--r--src/main/java/com/c2kernel/lookup/Path.java29
1 files changed, 1 insertions, 28 deletions
diff --git a/src/main/java/com/c2kernel/lookup/Path.java b/src/main/java/com/c2kernel/lookup/Path.java
index 3ede4b6..3390007 100644
--- a/src/main/java/com/c2kernel/lookup/Path.java
+++ b/src/main/java/com/c2kernel/lookup/Path.java
@@ -15,10 +15,8 @@ import java.util.ArrayList;
import java.util.Enumeration;
import java.util.StringTokenizer;
-import com.c2kernel.common.ObjectCannotBeUpdated;
import com.c2kernel.common.ObjectNotFoundException;
import com.c2kernel.process.Gateway;
-import com.novell.ldap.LDAPAttributeSet;
import com.novell.ldap.LDAPConnection;
import com.novell.ldap.LDAPSearchConstraints;
@@ -50,8 +48,6 @@ public abstract class Path implements Serializable
// int syskey (only valid for entity SystemPaths)
protected int mSysKey = INVALID;
- // ior is stored in here when it is resolved
- protected org.omg.CORBA.Object mIOR = null;
//
// needed for unusual subclass constructors
@@ -140,13 +136,6 @@ public abstract class Path implements Serializable
mSysKey = INVALID;
}
- // lookup sets the IOR
- public void setIOR(org.omg.CORBA.Object IOR) {
- mIOR = IOR;
- if (IOR == null) mType = Path.CONTEXT;
- else mType = Path.ENTITY;
- }
-
/* clone another path object
*/
public void setPath(Path path)
@@ -230,22 +219,6 @@ public abstract class Path implements Serializable
return Gateway.getLookup().exists(this);
}
- /** Queries the lookup for the IOR
- */
-
- public org.omg.CORBA.Object getIOR() {
- org.omg.CORBA.Object newIOR = null;
- if (mIOR==null) { // if not cached try to resolve
- Lookup myLookup = Gateway.getLookup();
- try {
- newIOR = myLookup.resolve(this);
- } catch (ObjectNotFoundException ex) {
- }
- setIOR(newIOR);
- }
- return mIOR;
- }
-
@Override
public String toString() {
return getString();
@@ -280,7 +253,7 @@ public abstract class Path implements Serializable
public abstract EntityPath getEntity() throws ObjectNotFoundException;
- public abstract LDAPAttributeSet createAttributeSet() throws ObjectCannotBeUpdated;
+ //public abstract LDAPAttributeSet createAttributeSet() throws ObjectCannotBeUpdated;
@Override
public boolean equals( Object path )