From c45ee34928eaa7d148c60fb520f279362414af5a Mon Sep 17 00:00:00 2001 From: Andrew Branson Date: Thu, 12 Jun 2014 10:24:01 +0200 Subject: Separate PredefinedStepContainers for Agents and Items (and Server Item) --- src/main/java/com/c2kernel/lookup/Lookup.java | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 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 5c6d1e9..d71034f 100644 --- a/src/main/java/com/c2kernel/lookup/Lookup.java +++ b/src/main/java/com/c2kernel/lookup/Lookup.java @@ -35,15 +35,16 @@ public interface Lookup { public void close(); // Path resolution - /** - * Decide whether a path references an Item or an Agent, from its directory data - * @param path The path of the Item or Agent - * @return TraceableEntity.class or ActiveEntity.class - * @throws ObjectNotFoundException When the path doesn't exist in the directory + * Fetch the correct subclass class of ItemPath for a particular Item, derived from its lookup entry. This is used by Item + * + * @param sysKey The system key of the Item + * @return an ItemPath or AgentPath + * @throws InvalidItemPathException When the system key is invalid/out-of-range + * @throws ObjectNotFoundException When the Item does not exist in the directory. */ - public Class getItemClass(Path path) throws ObjectNotFoundException; - + public ItemPath getItemPath(int sysKey) throws InvalidItemPathException, ObjectNotFoundException; + /** * Find the ItemPath for which a DomainPath is an alias. * -- cgit v1.2.3