ePortal::ThePersistent::ACL - Access Control Lists base class for persistent objects.
ePortal::ThePersistent::ACL implements Access Control Lists (ACL functions) for ThePersistent classes.
Overloaded method. Adds ACL specific attributes properties to the object.
Additional parameters:
drop_admin_priv
By default Admin may SELECT everything from database. If this is not desired then pass this parameter.
drop_admin_priv => 1
Base ACL checking function. Omit using it in end packages, use xacl_check_xxx() for specific ACL processing.
read access. This method is not used inside of ACL but may be used in overloaded packages.
read
ACL
Inside of ExtendedACL read access is restricted with SQL WHERE clause.
ExtendedACL
delete current object right.
delete
Check xacl_delete attribute if exists or xacl_check_update().
xacl_delete
xacl_check_update()
Owner of the object always may delete the object. This is addition to xacl_check()
xacl_check()
update or modify current object right.
update
modify
Check xacl_write attribute.
xacl_write
Owner of the object always may modify the object. This is addition to xacl_check()
change ACL on current object right.
change ACL
Check xacl_admin attribute if exists or xacl_check_update().
xacl_admin
Owner of the object always may change ACL if xacl field eq 'owner'. Author of the object does not get xacl_admin rights automatically.
Actually checks parent with xacl_check_children().
xacl_check_children()
The object is obligatory to have a parent or overwrite this method.
ACL check for inserting children objects. Default to xacl_check_update().
This method is called from xacl_check_insert() of a children object.
xacl_check_insert()
Installs default ACL values for the object during insert(). The default behavior is to take most of ACL attributes from parent object. Other ACL attributes initialized to 'owner'
This method updates uid if not defined.
uid
This method does not updates the object. insert() does it.
insert()
Copy all ACL attributes from $source object.
$source
This method does not updates the object. Call update() manually!
update()
Recursively copy ACL attributes from this object to all childrens
Sergey Rusakov, <rusakov_sa@users.sourceforge.net>
To install ePortal, copy and paste the appropriate command in to your terminal.
cpanm
cpanm ePortal
CPAN shell
perl -MCPAN -e shell install ePortal
For more information on module installation, please visit the detailed CPAN module installation guide.