Jump to: navigation, search

Changes


HowTo:Configure Users and User Rights

304 bytes added, 17:52, 16 January 2020
/* Controlling the visibility and editability of objects */
If you want to control the rights not per instance individually, but for all instances of a meta class at once, the following adaptions are required:
* The ''TARGETTYPERIGHT'' of the rights relation must be MetaMetaClass, because this is the meta class (i.e., the type) of meta classes (which we want to relate to user groups in this case). It's a bit tricky to get the MetaMetaClass using Studio. You'll have to do it using Whobert, fetching and assigning the MetaMetaClass with the following code:
** First, we'll ask the Environment for the meta meta class system object. We'll get the Environment from any (''BaseClass'') object, e.g., the parameter object for Whobert.** UBIK.Kernel.MetaMetaClass mmc = anyObject.Environment.GetSystemObject(UBIK.Kernel.SystemObjects.METACLASS);// replace anyObject with a UBIK object at hand
** Then assign ''mmc'' to the right target type of the relation:
** Relationship relation = anyObject.Environment.UBIKDataFactory().Relation(relationUid);
** RelationData rd = userGroup.GetRelationDataObject(rightsRelation, this.'''MetaClass''');
[[Category:How-To|Configure Users]]
[[Category:Login management|Configure Users]]
==== Controlling the visibility and editability of properties ====
1,606
edits