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/LDAPPropertyManager.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/main/java/com/c2kernel/lookup/LDAPPropertyManager.java') diff --git a/src/main/java/com/c2kernel/lookup/LDAPPropertyManager.java b/src/main/java/com/c2kernel/lookup/LDAPPropertyManager.java index fcf1ef8..51b9ded 100644 --- a/src/main/java/com/c2kernel/lookup/LDAPPropertyManager.java +++ b/src/main/java/com/c2kernel/lookup/LDAPPropertyManager.java @@ -35,7 +35,7 @@ public class LDAPPropertyManager { * @return * @throws ObjectNotFoundException */ - public boolean hasProperties(EntityPath thisEntity) throws ObjectNotFoundException { + public boolean hasProperties(ItemPath thisEntity) throws ObjectNotFoundException { LDAPEntry entityEntry = LDAPLookupUtils.getEntry(ldap.getConnection(), thisEntity.getFullDN()); return entityEntry.getAttribute("cristalprop") != null; } @@ -45,7 +45,7 @@ public class LDAPPropertyManager { * @return array of Property * @throws ObjectNotFoundException */ - public String[] getPropertyNames(EntityPath thisEntity) throws ObjectNotFoundException { + public String[] getPropertyNames(ItemPath thisEntity) throws ObjectNotFoundException { LDAPEntry entityEntry = LDAPLookupUtils.getEntry(ldap.getConnection(), thisEntity.getFullDN()); ArrayList propbag = new ArrayList(); LDAPAttribute props = entityEntry.getAttribute("cristalprop"); @@ -66,7 +66,7 @@ public class LDAPPropertyManager { * @return The Property object * @throws ObjectNotFoundException */ - public Property getProperty(EntityPath thisEntity, String name) throws ObjectNotFoundException { + public Property getProperty(ItemPath thisEntity, String name) throws ObjectNotFoundException { LDAPEntry entityEntry = LDAPLookupUtils.getEntry(ldap.getConnection(), thisEntity.getFullDN()); return getProperty(entityEntry, name); } @@ -77,7 +77,7 @@ public class LDAPPropertyManager { * @throws ObjectNotFoundException * @throws ObjectCannotBeUpdated */ - public void deleteProperty(EntityPath thisEntity, String name) throws ObjectNotFoundException, ObjectCannotBeUpdated { + public void deleteProperty(ItemPath thisEntity, String name) throws ObjectNotFoundException, ObjectCannotBeUpdated { LDAPEntry entityEntry = LDAPLookupUtils.getEntry(ldap.getConnection(), thisEntity.getFullDN()); Property prop = getProperty(entityEntry, name); Logger.msg(6, "LDAPLookupUtils.deleteProperty("+name+") - Deleting property"); @@ -94,7 +94,7 @@ public class LDAPPropertyManager { * @throws ObjectNotFoundException * @throws ObjectCannotBeUpdated */ - public void setProperty(EntityPath thisEntity, Property prop) throws ObjectNotFoundException, ObjectCannotBeUpdated { + public void setProperty(ItemPath thisEntity, Property prop) throws ObjectNotFoundException, ObjectCannotBeUpdated { LDAPEntry entityEntry = LDAPLookupUtils.getEntry(ldap.getConnection(), thisEntity.getFullDN()); try { Property oldProp = getProperty(entityEntry, prop.getName()); -- cgit v1.2.3