Package g4ds :: Module authorisationcontroller :: Class AuthorisationController
[show private | hide private]
[frames | no frames]

Class AuthorisationController


Handles all stuff about permissions.
Method Summary
  __init__(self)
Only initialises the matrix.
  printMatrix(self)
  recalculateMatrix(self)
Loads the permissions information from files and databases into the memory.
  validate(self, actor, target, action)
Checks the given action against the available rules.

Method Details

__init__(self)
(Constructor)

Only initialises the matrix.

Call function recalculateMatrix for processing policies.

recalculateMatrix(self)

Loads the permissions information from files and databases into the memory.

Creates the permission matrix. The matrix itself is implemented using nested dictionaries.

validate(self, actor, target, action)

Checks the given action against the available rules.

Picks up the value for the couple of the given actor and target and iterates this ordered list and compares each item against the given action.

Generated by Epydoc 2.0 on Sat Oct 22 22:52:46 2005 http://epydoc.sf.net