Krang::CGI::Group - web interface to manage permission groups
use Krang::ClassLoader 'CGI::Group';
my $app = pkg('CGI::Group')->new();
$app->run();
Krang::CGI::Group provides a web-based system through which users can add, modify or delete permission groups from a Krang instance.
Following are descriptions of all the run-modes provided by Krang::CGI::Group.
The default run-mode (start_mode) for Krang::CGI::Group is 'search'.
This run-mode lists all groups and allows users to search for groups based on the group name.
From this mode users may edit a group, add a new group, or delete a set of groups.
This run-mode expects an optional parameters ``search_filter'' which is expected to contain the text string which is used to query groups.
Display ``add group'' screen through which new groups may be added.
Display ``edit group'' screen through which new groups may be added.
Save a group object. In the case of ``add'', this will insert a new group into the system. In the case of ``edit'', this will update an existing group.
Same as mode ``save'', except user is returned to the edit screen.
Cancel editing (or adding) a group. Abandon changes and return to search screen.
Delete the current group object and return to the search screen.
Delete a set of groups, specified by check-mark on the ``Group List'' screen provided by the ``search'' run-mode. Return to the ``search'' run-mode.
This mode expects the query param ``krang_pager_rows_checked'' to contain an array of group_id values which correspond to group records to be deleted.
Save the CGI query params to the group and redirect the user to the edit category permissions screen.
Present a list of categories and assigned permissions. Allow the user to edit permissions for categories, add, and remove categories.
Add category to group permissions. Return to edit_categories mode.
Remove category from group permissions. Return to edit_categories mode.
Save category permissions to group object in session and return to edit group mode.
Krang::Group, Krang::Widget, Krang::Message, Krang::HTMLPager, Krang::Pref, Krang::Session, Krang::Category, Krang::Desk, Krang::Widget, Krang::Log, Carp, Krang::CGI