Private _applyProtected Optional _configTrait instance configuration.
Protected _globalWhether this is a global (not bound to any specific schema item) trait instance.
Protected Readonly _schemaPrivate Optional _sourceProtected Optional _typeTrait type.
Protected _getProtected _getGet all rules for accessing content via the access control paths starting from the user. Rules are assumed to start from an entity of which the user has already been determined to be a direct or transitive member.
Protected _getProtected _getProtected _reverseAlter generated access statements, add membership access rules.
Protected getProtected handleHandle statement update actions.
Protected handleHandle statement view actions.
Attaches Trait callbacks to schema item hooks.
Makes this Trait instance global.
This method is triggered when a trait callback has been activated
This is the name of the callback function to call.
References to the Graph Hanlder
Request data passed along as part of the request.
MembershipAccessTrait config setter
This configuration object.
Helper method for wrapping legacy Kosmos traits callbacks.
TODO: Remove this method once all Traits are converted.
Optional callbackName: stringOptional callback name; passing this parameter will additionally wrap the callback into legacy process().
Static traitGenerated using TypeDoc
The membership access trait handles the access control rules around memberships.
Migration notes:
Usage: