OpenWGA 7.0 - TMLScript reference
HDBModelMethod :
setContentReaders(content, listOfReaders)
On object | HDBModel |
Usage | Sets the allowed readers for a content document |
Description |
This is a helper method for specifying allowed readers on a content document and its subhierarchy and the content document pendant to the readers attribute on storages in HDBModel definition. It is available as a method instead as for contents it normally makes more sense to specify individual reader rights on every singe document than to predefine them globally for all contents in the model definition. Therefor this method is intended to be used inside HDBModel event scripts. A good place is the postUpdate() script. Specify a list of users, groups and roles who should be allowed to see this document and its complete subhierarchy. Specify an empty list to allow everyone. The method actually sets the field "readers" on the respective page (see Authorisation fields on data documents). |
Parameters |
content (WGAPI object WGContent): The content object to set the allowed readers for. listOfReaders (List of strings): List of users, groups and roles |
Allowed in script types |
|