Name

CatalystX::Usul::Model::UserProfiles - CRUD methods for user account profiles

Version

0.7.$Revision: 1181 $

Synopsis

use CatalystX::Usul::Model::UserProfiles;

$profile_obj = CatalystX::Usul::Model::UserProfiles->new( $app, $config ) );
$profile_obj->shells( $shells_obj );
$profile_obj->roles ( $roles_obj );

Description

These methods maintain the user account profiles used by the identity class to create new user accounts. This class inherits from CatalystX::Usul::Model::Config which provides the necessary CRUD methods. Data is stored in the identity.xml file in the ctrldir

Subroutines/Methods

build_per_context_instance

Creates an instance if the domain model, caches copies of the role model and the shells model

create_or_update

$profile_obj->create_or_update;

Creates a new user account profile or updates an existing one. Field data is extracted from the request object. The result message is written to $stash

delete

$profile_obj->delete;

Delete the selected user account profile. The name of the profile to delete is extracted from the request object. The result message is written to $stash

find

$config_element_obj = $profile_obj->find( $wanted );

Returns a File::DataClass::Result object for the wanted profile

list

$config_list_obj = $profile_obj->list( $wanted );

Returns a File::DataClass::List object whose list attribute is an array ref of account profile names. If a profile name is given it also returns a File::DataClass::Result object for that profile

user_profiles_form

$profile_obj->profile_form( $profile );

Stuffs the stash with the data to generate the profile editing form

Diagnostics

None

Configuration and Environment

None

Dependencies

CatalystX::Usul::Model::Config

Incompatibilities

There are no known incompatibilities in this module

Bugs and Limitations

There are no known bugs in this module. Please report problems to the address below. Patches are welcome

Author

Peter Flanigan, <Support at RoxSoft.co.uk>

License and Copyright

Copyright (c) 2008 Peter Flanigan. All rights reserved

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic

This program is distributed in the hope that it will be useful, but WITHOUT WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE