From 6e35118970c7af70eb0ac938859d794f7348d367 Mon Sep 17 00:00:00 2001 From: Andrew Branson Date: Fri, 22 Feb 2013 14:04:33 +0100 Subject: Extracted LDAP specifics into subpackage --- src/main/java/com/c2kernel/lookup/Path.java | 29 +---------------------------- 1 file changed, 1 insertion(+), 28 deletions(-) (limited to 'src/main/java/com/c2kernel/lookup/Path.java') 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 ) -- cgit v1.2.3