Lookup Session Pattern

Fetch objects by Id or retrieve the full catalog — the read-only entry point for a domain.

Overview

A lookup session retrieves objects by Id or in bulk. It is scoped to a single catalog and exposes whether the session can see objects from federated sub-catalogs (useIsolatedView / useFederatedView). Override get[OsidObject](Id) to resolve an Id to a domain object and get[OsidObject]s() to return the full list.

Javadoc Reference

net.okapia.osid.jamocha.spi

Class Declaration Pattern

public abstract class AbstractLookupOsidObjectSession
extends AbstractOsidSession
implements LookupOsidObjectSession

Constructor Pattern

AbstractLookupOsidObjectSession(OsidObjectManager manager, Id catalogId)
ParameterTypeDescription
manager OsidObjectManager the manager that opened this session
catalogId Id the catalog this session is scoped to

Key Override Pattern

public OsidObject getOsidObject(Id osidObjectId) throws NotFoundException, OperationFailedException
public OsidObjectList getOsidObjects() throws OperationFailedException