Entities::Action - A piece of code/functionality that a user entity can perform.
version 0.5
used internally, see L<Entities>
An action is just a name for a piece of code or some functionality in your code, that you want to limit the availability of to certain privileged users only. An action is the basis of ability-based authorization.
NOTE: you are not meant to create action objects directly, but only through the new_action() method in Entities.
new_action()
Creates a new instance of this module. Only 'name' is required.
Returns the ID of the action, if set.
Returns a true value if the action has an ID attribute.
Changes the ID of the action object to a new ID. Should only be used internally.
Returns the name of the action.
Returns the description text of the action.
Changes the description of the object to the provided value.
Returns a DateTime object in the time the action object has been created.
Returns a DateTime object in the last time the action object has been modified. If a DateTime object is provided, it will be set as the new value of this attribute.
Returns the Entities::Backend instance that stores this object.
The following list documents any method modifications performed through the magic of Moose.
Automatically saves the object to the backend after any method that changed it was executed. Also updates the 'modified' attribute with the current time before saving.
Entities.
Ido Perlmuter, <ido at ido50 dot net>
<ido at ido50 dot net>
Please report any bugs or feature requests to bug-entities at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Entities. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-entities at rt.cpan.org
You can find documentation for this module with the perldoc command.
perldoc Entities::Action
You can also look for information at:
RT: CPAN's request tracker
http://rt.cpan.org/NoAuth/Bugs.html?Dist=Entities
AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/Entities
CPAN Ratings
http://cpanratings.perl.org/d/Entities
Search CPAN
http://search.cpan.org/dist/Entities/
Copyright 2010-2013 Ido Perlmuter.
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.
To install Entities, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Entities
CPAN shell
perl -MCPAN -e shell install Entities
For more information on module installation, please visit the detailed CPAN module installation guide.