[CPS-devel] dynamically computed roles

Joachim Schmitz js at aixtraware.de
Mon Nov 13 13:47:19 CET 2006


Hi,

is there something like a dynamically assigned role in CPS?

Here is the usecase:

In our studentregistration portal we have a student-section, which
contains all student-objects (SO).

A SO contains for example the studycourse (SC) the student takes, which
contains all courses the student takes.

The SC contains information about the faculty and department the student
belongs to.

Parallel to the student-section there is the academic-section (AS)
The AS contains faculty-objects (FO), which in turn contain
department-objects, which contain beside other things course-objects.

Now we have for example a course-manager, which we give the local role
section-manager in all course of a department. But in addition we have
to give him the possibility to edit/enter the results in all those
courses in the SC of the student.

So we would need a kind of computed role CourseManager, which we can
test with the hasRolesInContext.




-- 
Gruß Joachim






This list archive provided by Nuxeo, the leaders of open source ECM. Check out the Nuxeo 5 open source, standards-based ECM project.