Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • An OsidManager.
  • Setting up the identity of the service provider.
  • Implementing a simple OsidSession.
  • Implementing an OsidRecord attached to an OsidObject.

Source Navigation

Resource OSID Consumer

net.okapia.osid.sample.Planets is the sample application. It performs the following:

  1. Starts up an OsidRuntimeManager via a Bootloader
  2. Gets theĀ net.okapia.osid.sample.providers.resource.solarsystem.ResourceManager Resource OSID Provider via the OsidRuntimeManager.
  3. Gets a ResourceLookupSession via the ResourceManager.
  4. Gets a stream of Resources via the ResourceLookupSession.
  5. Iterates through the ResourceList and displays them.
  6. Shuts down the Resource OSID Provider and OSID Runtime.

Resource OSID Provider

filepurpose
net.okapia.osid.sample.providers.resource.solarsystem.ResourceManagerThe entry point for OSID Providers. OsidManagers define what the OSID Provider supports and provides access to supported OsidSessions.
net.okapia.osid.sample.providers.resource.solarsystem.ServiceProviderMetadata for OsidManager implementations.
net.okapia.osid.sample.providers.resource.solarsystem.ResourceLookupSessionThe OsidSession for listing Resources. All the action happens in OsidSessions.
net.okapia.osid.sample.providers.resource.solarsystem.ResourceAn implementation of Resource.
net.okapia.osid.sample.providers.resource.solarsystem.PlanetAn enumeration of planets from which to create Resources.
net.okapia.osid.sample.providers.resource.solarsystem.BinAn OsidCatalog for collections of Resources. This provider defines only one.

net.okapia.osid.sample.providers.resource.compliance.ResourceManager.xml

A configuration file for this provider. The OsidRuntimeManager feeds configuration data to OsidManager implementations via the initialize() method.

...