From a1f0ecbb6a2bea6aa214322c412af2f3c5ce124b Mon Sep 17 00:00:00 2001 From: Andrew Branson Date: Wed, 7 May 2014 17:33:13 +0200 Subject: Agent now extends Item, so they can have workflows. All traces of the old 'Entity' superclasses should be removed, including proxies and paths. Very large change, breaks API compatibility with CRISTAL 2.x. Fixes #135 --- src/main/java/com/c2kernel/lookup/DomainPath.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/main/java/com/c2kernel/lookup/DomainPath.java') diff --git a/src/main/java/com/c2kernel/lookup/DomainPath.java b/src/main/java/com/c2kernel/lookup/DomainPath.java index ce849ce..b0784f9 100644 --- a/src/main/java/com/c2kernel/lookup/DomainPath.java +++ b/src/main/java/com/c2kernel/lookup/DomainPath.java @@ -23,7 +23,7 @@ import com.novell.ldap.LDAPAttributeSet; **/ public class DomainPath extends Path { - private EntityPath target = null; + private ItemPath target = null; protected static String mTypeRoot; /* Very simple extension to Path. Only copies constructors and defines root */ @@ -49,7 +49,7 @@ public class DomainPath extends Path super(path, Path.UNKNOWN); } - public DomainPath(String path, EntityPath entity) throws InvalidEntityPathException + public DomainPath(String path, ItemPath entity) throws InvalidItemPathException { super(path, Path.UNKNOWN); setEntity(entity); @@ -76,7 +76,7 @@ public class DomainPath extends Path return new DomainPath(parentPath); } - public void setEntity(EntityPath newTarget) { + public void setEntity(ItemPath newTarget) { if (newTarget == null) { // clear target = null; mType = Path.CONTEXT; @@ -88,7 +88,7 @@ public class DomainPath extends Path } @Override - public EntityPath getEntity() throws ObjectNotFoundException { + public ItemPath getEntity() throws ObjectNotFoundException { if (mType == UNKNOWN) { // must decide checkType(); } @@ -109,7 +109,7 @@ public class DomainPath extends Path public void checkType() { try { setEntity(Gateway.getLDAPLookup().resolvePath(this)); - } catch (InvalidEntityPathException ex) { + } catch (InvalidItemPathException ex) { Logger.error(ex); mType = CONTEXT; } catch (ObjectNotFoundException ex) { -- cgit v1.2.3