Broadcast on Broadcast off
The Documentation for Project Zero has moved. Please update your bookmarks to: http://www.projectzero.org/documentation/
Table of
Contents...
Hide

Project Zero Developer’s Guide

Concepts and components
Core concepts overview
Event processing
Writing Java handlers
Writing Groovy handlers
Firing events
Global Context
Global Context reference
Application directory layout
Virtualized directories
Writing rich Web applications?
Assemble
PHP
Features and configuration
Configuration
Debugging
Dependencies
Packaging
Application classpath
Logging and tracing
RESTful resources
RESTful documentation
File serving
Response rendering
Validators and validation
HTTP error handling
Client programming with Dojo
Runtime options
Deployment modifications
HTTP configuration
SSL configuration
Proxy configuration
Extending the CLI
Security
Security considerations
Authentication
OpenID authentication
Extending security
Security Tokens
Token support
CSRF prevention support
Extending token support
Leveraging TAI
User service
File based user service
LDAP user service
Extending user service
Security Utilities
Leveraging XOREncoder
Extensions
Atom support
RSS support
JSON support
XMLEncoder
URIUtils
Developer Web tools
Database setup tools
Data access
Common query patterns
Advanced query patterns
Update patterns
Local database transactions
Extending data access
Configuration vendor differences
PHP data access
Resource model
Setup and configuration
Resource model declaration
Programmatic model API
HTTP REST API?
Active content filtering support
Default filters
Custom filters
Runtime Management
Management Commands
Other extension modules
Amazon E-commerce service
Reference
Zero command line interface
JavaDoc - Public API
JavaDoc - Public SPI
JavaDoc - All Classes
Samples and services
Samples
The Zero Zone application
Using the Zero Zone application
Services
Blogging service
Commenting service
File sharing service
Group service
Profile service
Rating service
Tagging service
Catalog Zero

 

Using the Zero Zone application

The Zero Zone is a Project Zero application that combines Project Zero services and widgets to offer a place for collaboration and networking; it demonstrates many of the features and possibilities of the Zero platform while also providing reusable components for your own Zero projects. From a feature set perspective, it is similar in concept to sites like facebook.com or myspace.com.

Installing and running the application

The default configuration of the Zero Zone relies on Apache Derby Embedded, which requires no initial set up steps. Use the following steps to set up your database server, create database tables, and fill them with sample data so you can explore all of the features of the Zero Zone:

  1. If you are using Apache Derby Network Server or MySQL as your database, you need to create a database named zile and start the database server. MySQL users also need to update the /config/ivy.xml file to include MySQL's JDBC drivers in the dependency list; if you open this file you will see that the dependency is already there, it's just commented out.

  1. Start the zile.community application:

- From Eclipse, select Run As > Project Zero Application.

- From the CLI, type 'zero run'.

  1. To connect to your page from anywhere other than localhost, modify the following stanza in zile.community/config/zero.config to include your hostname/IP address instead of localhost:

[/app/zile] serviceHost="http://localhost:${portNum}/resources"

1. Go to http://localhost:8080/setup. Enter the database name ('zile') and select the database product you are using. If you are using Apache Derby Network Server or MySQL and have set a user name and password, be sure to provide those in the given fields.

  1. Click 'Create Tables' and then 'Add Sample Data'.

  1. Restart the zile.community application.

  1. Go to http://localhost:8080. You can use one of the guest accounts to login or create your own account by following the 'Sign up now' link.

To run the Zero Zone application, download the Zero samples plug-in and open the zile.community project - inside you will find a file named readme.txt that provides instructions for configuring the application.

Components

The Zero Zone is built from a set of smaller services and widgets - building blocks that you can use to create your own community sites. The following services are available in the samples plugin and can be reused in your applications without including the zile.community application:

Profile service
Profiles are the central elements of collaboration. They represent the identifiable individuals in the community with attributes that are conducive to social networking such as credentials, areas of expertise, organization, professional publications (such as blogs and articles), and group affiliations.

Group service
Groups allow users to organize in a public forum in order to pursue a shared interest or goal. Each group has an owner, but the group is really defined by the list of members it has, each of whom can contribute to resources (blogs, etc.) owned by the group.

Blogging service
Blogging is one of the key features of community; it enables users to collaborate with self-publishing, and cross referencing to enrich personal profile and improving each users online presence. The Project Zero blog component can be integrated with the Zero commenting and tagging services for a richer blog interface.

Tagging service
The tagging component provides both user interface and back end implementation to support tagging capability. The service and user interface provide a RESTful tagging service that rich Internet applications (RIAs) can use as well as a reusable Tagcloud widget that utilizes this service.

Rating service
This component provides both the user interface and back end implementation to provide your users with the ability to rate arbitrary things or items. The rating services enables users to rate, on a scale from 1 to 5, anything identifiable with a unique string.

Commenting service
This component provides both user interface and back end implementation to support the creation of comments on arbitrary things or items. The comment widget enables users to post a comment on an anything identifiable with a unique string.

File sharing service
Using the file upload pattern, this component provides user interface and storage to upload and share files with other members. The file sharing service uploads files to a personal share directory and provides read access to one or more users.

r15 - 12 Dec 2007 - 15:13:34 - paynel
Syndicate this site RSS ATOM
Copyright 2007 © IBM Corporation | Privacy | Terms of Use | About this site