::xotcl::Class
::xo::Policy
Class Hierarchy of ::xo::Policy
- ::xotcl::Object
- Meta-class:
- ::xotcl::Class
![[i]](/resources/acs-subsite/ZoomIn16.gif)
- Methods for instances:
- __api_make_doc, __api_make_forward_doc, __timediff, abstract, ad_doc, ad_forward, ad_proc, appendC, arrayC, asHTML, autonameC, check, classC, cleanupC, configureC, containsC, copyC, db_0or1rowC, db_1rowC, debug, defaultmethodC, destroyC, destroy_on_cleanup, ds, evalC, existsC, extractConfigureArg, filterC, filterguardC, filtersearch, forward, hasclass, incrC, infoC, init, instvarC, invarC, isclass, ismetaclass, ismixin, isobject, istype, lappendC, log, method, mixinC, mixinguardC, moveC, msg, noinitC, objectparameter, parametercmdC, proc, procsearch, qn, requireNamespaceC, residualargsC, self, serialize, setC, set_instance_vars_defaults, show-object, substC, traceC, unknown, unsetC, uplevelC, upvarC, volatileC, vwait
- Methods to be applied on the class (in addition to the methods provided by the meta-class):
- getExitHandler, setExitHandler, unsetExitHandler
- ::xo::Policy
- Meta-class:
- ::xotcl::Class
![[i]](/resources/acs-subsite/ZoomIn16.gif)
- Methods for instances:
- check_permissions, check_privilege, defined_methods, enforce_permissions, get_permission, get_privilege
- Methods to be applied on the class:
- Methods provided by the meta-class
Class Relations
- superclass: ::xotcl::Object
![[i]](/resources/acs-subsite/ZoomIn16.gif)
- subclass: ::xowiki::Policy
![[i]](/resources/acs-subsite/ZoomIn16.gif)
Methods
<instance of ::xo::Policy
> check_permissions \
[ -user_id user_id ] [ -package_id package_id ] [ -link link ] \
object method
This method checks whether the current user is allowed
or not to invoke a method based on the given policy.
This method is purely checking and does not force logins
or other side effects. It can be safely used for example
to check whether links should be shown or not.
- Switches:
- -user_id (optional)
- -package_id (optional)
- -link (optional)
- Parameters:
-
object
method
- Returns:
- 0 or 1
See Also:
instproc check_privilege
instproc defined_methods
<instance of ::xo::Policy
> enforce_permissions \
[ -user_id user_id ] [ -package_id package_id ] object method
This method checks whether the current user is allowed
or not to invoke a method based on the given policy and
forces logins if required.
- Switches:
- -user_id (optional)
- -package_id (optional)
- Parameters:
-
object
method
- Returns:
- 0 or 1
See Also:
instproc get_permission
instproc get_privilege
Variables
::xo::Policy set __default_metaclass ::xotcl::Class
::xo::Policy set __default_superclass ::xotcl::Object