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'.
- 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.
- add
Display ``add group'' screen through which new groups may be added.
- edit
Display ``edit group'' screen through which new groups may be added.
- save
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.
- save_stay
Same as mode ``save'', except user is returned to the edit screen.
- cancel
Cancel editing (or adding) a group. Abandon changes and
return to search screen.
- delete
Delete the current group object and return to the search screen.
- delete_selected
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_and_edit_categories
Save the CGI query params to the group and redirect the user
to the edit category permissions screen.
- edit_categories
Present a list of categories and assigned permissions.
Allow the user to edit permissions for categories,
add, and remove categories.
- add_category
Add category to group permissions. Return to edit_categories mode.
- delete_category
Remove category from group permissions. Return to edit_categories mode.
- edit_categories_return
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