ePortal::ThePersistent::ExtendedACL - Extended Access Control Lists base class for persistent objects.
ePortal::ThePersistent::ExtendedACL implements extended processing of ACL based on SQL queries.
Two attributes are mandatory for ePortal::ThePersistent::ExtendedACL
:
uid - user name of object owner xacl_read - read access to the object
initialize()
Overloaded method. Adds ACL specific attributes uid
and xacl_read
to
the object.
Additional parameters:
uid
attribute name to something another.
xacl_read
attribute name to something another.
xacl_where()
Construct SQL WHERE clause based on uid
and xacl_read
fields.
xacl_check_read()
Dummy function. Returns True. Read access is restricted in SQL WHERE clause.
restore_where()
Adds some WHERE conditions to comply with ACL.
Sergey Rusakov, <rusakov_sa@users.sourceforge.net>