Documentation for class generic_iacl (inherits from generic):


Properties:

name type default params representant foreign foreign_prop position
id CO_INTEGER SEQUENCE READONLY=1 1 0
version CO_INTEGER 0 READONLY=1 1 0
deleted CO_INTEGER 0 READONLY=1 1 0

Methods:


method check_acl
description: This is very important method that checks acl. Whole security system depends on this method!
parameters:

par_area
type CO_STRING

par_class
type CO_STRING

par_id
type CO_INTEGER


method check_acl_class
description: This is very method that checks acl using container class.
description: You will want to overwrite this method if you have non-standard ACL checking.
parameters:

par_area
type CO_STRING

par_class
type CO_STRING


method insertChild
description: This method is overloaded of grneric::insertChild. In this method we add copying of acl from parent
parameters:

par_area
type CO_STRING

par_class
type CO_STRING

par_id
type CO_INTEGER

child_class
description: this is the name of class tu insert record in
type CO_STRING

child_prop
description: this is the property name in child class that holds id of parent
type CO_STRING

foreign_prop
description: this is the prop in container (this:) class that holds id to copy to child class
type CO_STRING


method cloneACL
description: This method clones all ACLs from given object (used p.e. by catalog)
parameters:

par_area
type CO_STRING

par_class
type CO_STRING

par_id
type CO_INTEGER

area_parent
description: this is the name of class to insert record in
type CO_STRING

class_parent
description: this is the name of class tu insert record in
type CO_STRING

id_parent
description: this is the property name in child class that holds id of parent
type CO_INTEGER


method permissionOn
description: This method sets one ACL On
parameters:

par_area
type CO_STRING

par_class
type CO_STRING

par_id
type CO_INTEGER

id_permission
description: this is the id of permission that we wish to set on for current object
type CO_INTEGER

id_role
description: this is the id of the role that we want to grant permission
type CO_INTEGER


method create
description: this method creates empty object and sets ACL to allow changing of acls to active role
parameters:

par_area
type CO_STRING

par_class
type CO_STRING

par_id
type CO_INTEGER

callback
type CO_STRING

create_params
description: this is array of additional parameters that we can pass to target class to create object
type CO_ARRAY_OF_STRINGS