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/Lookup.java | 74 ++++++--------------------- 1 file changed, 17 insertions(+), 57 deletions(-) (limited to 'src/main/java/com/c2kernel/lookup/Lookup.java') diff --git a/src/main/java/com/c2kernel/lookup/Lookup.java b/src/main/java/com/c2kernel/lookup/Lookup.java index 0ddc448..060b5de 100644 --- a/src/main/java/com/c2kernel/lookup/Lookup.java +++ b/src/main/java/com/c2kernel/lookup/Lookup.java @@ -20,81 +20,41 @@ package com.c2kernel.lookup; -import java.util.Enumeration; - -import org.omg.CORBA.Object; +import java.util.Iterator; import com.c2kernel.common.ObjectAlreadyExistsException; import com.c2kernel.common.ObjectCannotBeUpdated; import com.c2kernel.common.ObjectNotFoundException; +import com.c2kernel.lookup.ldap.NextKeyManager; public interface Lookup { - /** - * @param path - * @return - */ - public Class getEntityClass(Path path) throws ObjectNotFoundException; + public void install() throws ObjectNotFoundException; + + public void disconnect(); - /** - * @return - */ public NextKeyManager getNextKeyManager(); - /** - * @return - */ public RoleManager getRoleManager(); - /** - * @param path - * @return - */ - public Object resolve(Path path) throws ObjectNotFoundException; - - /** - * @param path - * @param name - * @return - */ - public Enumeration search(Path path, String name); - - /** - * @param newPath - */ - public void add(Path newPath) throws ObjectCannotBeUpdated, ObjectAlreadyExistsException; + public Class getEntityClass(Path path) throws ObjectNotFoundException; - /** - * @param domainPath - * @return - */ - public Enumeration searchEntities(Path path); + public EntityPath resolvePath(DomainPath domainPath) throws InvalidEntityPathException, ObjectNotFoundException; + + public org.omg.CORBA.Object resolve(Path path) throws ObjectNotFoundException; + + public void add(Path newPath) throws ObjectCannotBeUpdated, ObjectAlreadyExistsException; - /** - * @param path - */ public void delete(Path path) throws ObjectCannotBeUpdated; - /** - * @param path - * @return - */ public boolean exists(Path path); - /** - * @param domainPath - * @return - */ - public EntityPath resolvePath(DomainPath domainPath) throws InvalidEntityPathException, ObjectNotFoundException; - - /** - * - */ - public void disconnect(); + public Iterator search(Path path, String name); - /** - * - */ - public void install() throws ObjectNotFoundException; + public Iterator search(Path start, String propname, String propvalue); + + public Iterator searchEntities(Path path); + + public Iterator searchAliases(DomainPath start); } -- cgit v1.2.3