diff options
Diffstat (limited to 'src/main/java/com/c2kernel/lookup/Lookup.java')
| -rw-r--r-- | src/main/java/com/c2kernel/lookup/Lookup.java | 74 |
1 files changed, 17 insertions, 57 deletions
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<Path> 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<Path> 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<Path> search(Path path, String name);
- /**
- *
- */
- public void install() throws ObjectNotFoundException;
+ public Iterator<Path> search(Path start, String propname, String propvalue);
+
+ public Iterator<Path> searchEntities(Path path);
+
+ public Iterator<Path> searchAliases(DomainPath start);
}
|
