ObjectStore Java Tutorial

Appendix B

Sample Output

Here is some sample input and output from the Personalization application. Each command consists of the command name, and a (possibly empty) list of arguments, separated by spaces. Legal commands are described in the following table:

Command Action
help Displays a list of commands with brief descriptions
subscribe username email Enters a new user in the database
unsubscribe username Removes a user from the database
validate username PIN Validates PIN and displays user data
listusers Lists all users
addinterest username interestname Registers an interest
removeinterest username interestname Unregisters an interest
changeinterest username interestname Changes an interest
interests username Displays all interests for a user
exit Exits the program

Here is the output:

subscribe landis landis@objectdesign.com
      Your person identification number is 1489
subscribe obrien obrien@objectdesign.com
      Your person identification number is 7712
validate landis 1489
      User name landis
            PIN: 1489
            email: landis@objectdesign.com
addinterest landis wine burgundy
addinterest obrien wine bordeaux
addinterest obrien sports hockey
listusers
      obrien
      landis
interests obrien
      obrien is interested in wine: bordeaux
      obrien is interested in sports: hockey
changeinterest obrien sports marathon
interests obrien
      obrien is interested in wine: bordeaux
      obrien is interested in sports: marathon
exit



[previous] [next]

Copyright © 1998 Object Design, Inc. All rights reserved.

Updated: 10/07/98 07:06:05