Recent Changes - Search:

Research


edit SideBar


GalleryDescription

OSGi gallery description


Overview

Features

 UniK versionePerSpace
version
Device-rependent user interfacexx
Gallery features: 
aspects (picture sets)xx
sample galleryxx
Authentication: 
seamlessx-
user/pwx-
link-based-x
File access: 
localxx
remote-x

All versions:

Device-dependent user interface
User interface is tailored to the capabilities of the device used by the user. The interface is more detailed, the pictures are showed in higher resolution on PC than on mobile.
Gallery features
Pictures can be organized into sets and subsets. The basis of the categorization is called 'aspect'. For example, the 'Categories' aspect could hold picture sets for winter, tour, fishing or lanscape pictures, while 'Albums' aspect could hold picture folders based on time of creation.
Sample gallery
A sample gallery is created on the first startup of the gallery bundle.

UniK version specific:

Seamless authentication
Gallery access via mobile phone without typiing user name or password. Users are authenticated automaticly by the WAP gateway of the mobile operator.
User name authentication
PC users or mobile users without valid seamless ID must authenticate themselves via user name and password.

ePerSpace version specific:

Flexible file access
Picture files can be placed on the local file system of the gallery or on a remote webserver. Please note that the overall gallery performance could depend on the performance of the remote webserver.

Top


Install

An XML parser must be available in the OSGi framework. Any SAX enabled, non-validating parser is enough.

Gallery was tested on OSCAR and Knopflerfish with Crimson XML lib: http://www.knopflerfish.org/releases/1.3.4/jars/crimson/crimson-1.1.3.html

UniK version:

Install and start gallery and gallery-webacess bundles. Sample gallery will be created on first startup of the gallery bundle. Sample gallery is in the data directory of the OSGi framework.

ePerSpace version:

Install and start gallery and gallery-webacess bundles. Sample gallery will be created on first startup of the gallery bundle. Sample gallery is in the data directory of the OSGi framework.

For remote file access host name and user list must be provided for the gallery.

no.unik.osgi.gallery.fileURL
URL for the remote file server. Format: http://<host>:<port>/<pathtofiles>/
no.unik.osgi.gallery.users
Comma separated user list without spaces. Example: no.unik.osgi.galler.users=rzso,josef,public

Example: With these settings:

 no.unik.osgi.gallery.fileURL=http://impulzus.sch.bme.hu/rzso/unik/
 no.unik.osgi.gallery.users=josef

files related to the user josef must be available for the gallery at http://impulzus.sch.bme.hu/rzso/unik/users/josef/

How to specify framework attributes?

Knopflerfish: extend the <KF install dir>/osgi/props.xargs file with

 -Dno.unik.osgi.gallery.fileURL=<URL>
 -Dno.unik.osgi.gallery.users=<userlist>

Oscar: create a file bundle.properties and add these lines:

 no.unik.osgi.gallery.fileURL=<URL>
 no.unik.osgi.gallery.users=<userlist>

File should be placed into the same directory where oscar.jar is (default). For more instructions on bundle.properties see: http://oscar.objectweb.org/usage.html#configuring-bundles

Top


Upload files and add users

With local file access:

Follow the pattern of the sample gallery! Sample gallery is located in the data directory of the OSGi framework:

  • Knopflerfish: <KF install dir>/osgi/fwdir/data/<gallery bundle id>/, example (Windows): d:\util\knopflerfish.org\osgi\fwdir\data\18\
  • Oscar: <user's_home_dir>/.oscar/<oscar_profile_name>/bundle<gallery_bundle_id>/data/, example (Windows): c:\Documents and Settings\Rzso\.oscar\rzso\bundle40\data\

Create a new user directory in users to add a new user. Create file and directory structure for the new user as in the sample gallery. gallery bundle must be restarted after a new user was added.

With remote file access: (ePerSpace version only)

Follow the pattern of the sample gallery! (see previous section) Specify host URL and user list for the gallery as described in the install section.

Create a new user directory in users to add a new user. Create file and directory structure for the new user as in the sample gallery. Add user name into the config user list. Framework must be restarted after a new user was added.

Top


Login

UniK version:

Seamless login
auth file description
User name/password login
auth file description

ePerSpace version: Login via link

Top


Edit metadata

Top


Developement

Ideas for future development

  • UI for upload (write file access needed)
  • UI metadata editing (write file access needed)
  • slideshow
  • UPnP file access (ePerSpace version)
  • HTTPS (UniK version)
  • UI for user management (write file access needed)

Technical tips for the future features

  • File upload: Check this component: http://jakarta.apache.org/commons/fileupload/
  • Slideshow:
    • HTML redirect/refresh: Redirect URL or refresh time can be defined in the header of an html file. Redirection URL could point to the next picture. Should work on PC, but mobile access need to be tested.
    • HTTP push: The web server can push a new content into the browser with the same URL. Push is not part of the OSGi specification and not supported by the webserver implementation of Knopflerfish. Implementation should be replaced with the OSCAR one.

Top


Known issues

  • Relogin
    • Description: If the user logs in, click on a picture set and press the back button after that, login procedure is reinitiated.
    • Effects: Performance effects in the ePerSpace version, possible browser popup window and performance effects in UniK version
    • Solution: A solution would be if the webaccess bundle redirects the browser to a URL containing the aspect link after login. So a http://localhost:8080/gallery?aspectID=Categories link should be in the URL field of the browser instead of http://localhost:8080/gallery
  • No webserver available at startup time

Top

Edit - History - Print - Recent Changes - Search
Page last modified on March 03, 2006, at 12:35 PM EST