NAME

OpenFrame::WebApp::User - users for OpenFrame-WebApp

SYNOPSIS

use OpenFrame::WebApp::User;

my $user = new OpenFrame::WebApp::User()->id('fred2003');

DESCRIPTION

The OpenFrame::WebApp::User class implements a very basic user with an identifier, and nothing more. This class exists to be sub-classed to suit your application's needs.

This class was meant to be used with OpenFrame::WebApp::User::Factory.

METHODS

$user->id

set/get the user id. chosen over 'login' and 'name' as these can have other menaings & actions associated with them.

SUB-CLASSING

Read through the source of this package and the known sub-classes first. The minumum you need to do is this:

use base qw( OpenFrame::WebApp::User );

OpenFrame::WebApp::User->types->{my_type} = __PACKAGE__;

You must register your user type if you want to use the User::Factory.

AUTHOR

Steve Purkis <spurkis@epn.nu>

COPYRIGHT

Copyright (c) 2003 Steve Purkis. All rights reserved. Released under the same license as Perl itself.

SEE ALSO

OpenFrame::WebApp::User::Factory, OpenFrame::WebApp::Segment::User::Loader