NAME

Rit::Base::User

DESCRIPTION

Inherits from Para::Frame::User

This class doesn't inherit from Rit::Base::Resoure. But see Rit::Base::User::Meta.

Resources, when initiated, will be placed in the right class based on the class_handled_by_perl_module property. Since a resource can have multiple classes, the class in itself can not inherit from Rit::Base::Resource. The resource will be placed in a metaclass that inherits from this class and from Rit::Base::Resource.

The Rit::Base::User::Meta is used during startup. It is listed in %Rit::Base::LOOKUP_CLASS_FOR to make it be reblessd in the right metaclass based on the nodes other possible classes. See Rit::Base::Resource/get.

For subclassing, create both the subclass (Rit::Guides::User) and also a sub metaclass that inherits from it and from Rit::Base::Resource (Rit::Guides::User::Meta). Set Para::Frame/user_class to the meta class but point to the subclass in Ritbase with the property class_handled_by_perl_module for the resource representing the user class.

get

This will call back to Rit::Base::Resource/get.

init

This is first run *before* constants initialized.

username

id

name

node

level

  $node->level

See Para::Frame::User/level

Returns: The level

find_by_anything

Called by Rit::Base::Resource/get that gets called by Para::Frame::User/identify_user.

Supported args are:

  arclim

verify_password

has_root_access

set_default_propargs

For the current request

default_propargs

For the current request

on_arc_add

on_arc_del

clear_caches