100 likes | 198 Views
Presentation Services. Third revision https://jazz.net/wiki/bin/view/Main/PresentingDataResources Simplest possible mechanism that will work Focus use cases for Unity 1.0. Use Cases. Basic navigation “Open” Resource Produce the single “right” presentation Advanced navigation
E N D
Presentation Services • Third revision • https://jazz.net/wiki/bin/view/Main/PresentingDataResources • Simplest possible mechanism that will work • Focus use cases for Unity 1.0
Use Cases • Basic navigation • “Open” Resource • Produce the single “right” presentation • Advanced navigation • “Open with” • Present several presentation options • Web Client • Desktop Client • Pre-navigation • “Preview” resource • Alternate presentation
Implementation Proposal • Presentation registry resource • JFS presentation services • Find the most suitable presentation • Find all available presentations • URLs available through discovery
Presentation registry resource • Table of presentation rules • Presentation Type • Custom enumeration • Values: web | desktop | preview • More in the future • Provider info • label • id • Resources URL pattern • Resources URL transformation function • http://{host}/{path} -> http://jf1/webui/user/{host}/{path} • http://{host}/{path} -> http://b1/show-build?//{host}/path}
Presentation registry resource RDF-ized version <?xml version="1.0"?> <selectionRules xmlns="http://jazz.net/jfs/presentation/1.0" > <selectionRule> <presentationType>web</presentationType> <providerInfo> <id>abff6d9c-f6da-11dd-87af-0800200c9a66</id> <label>RQM Web Client</label> </providerInfo> <pattern>http://jf1/webui/user</pattern> <transformationFunction> ... </ transformationFunction> </selectionRule> <!-- others --> </selectionRules>
Presentation registry resource* *providerInfo not included for clarity
getPresentation Service • Input • Resource URL • PresentationType List : prioritized list of presentation types • Result • the single computed URL • Algorithm • Find the best matching rule for this resource URL for the first available presentation type • Return computed URL • Must not deference URL
queryPresentation Service • Input • Resource URL • PresentationType list : collection of desired presentation types • Result • For each match • Computed result • Presentation Type • Provider Info • Algorithm • Find all matching rules for all requested presentation types • Return set of computed results • Must not deference URL
Use Cases Revisited • Basic navigation • getPresentation(url, “web, desktop”) • Advanced navigation • queryPresentation(url, “web, desktop”) • Pre-navigation • getPresentation(url, “preview”) • Foreign data resources • Navigation presupposes registration
Open questions • Support for rules based on mediaType? • Important for future implementation • Not necessary for today’s use cases