xotcl.wu-wien.ac.at
Begin main content
Methods: Source: Variables:
[All Methods | Documented Methods | Hide Methods] [Display Source | Hide Source] [Show Variables | Hide Variables]

::xotcl::Class[i] ::xo::Policy

Class Hierarchy of ::xo::Policy

  • ::xotcl::Object[i]
    Meta-class:
    ::xotcl::Class[i]
    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[i]
      Meta-class:
      ::xotcl::Class[i]
      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]
  • subclass: ::xowiki::Policy[i]

Methods

  • instproc check_permissions (public)

    <instance of ::xo::Policy[i]> 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:
    • enforce_permissions
  • instproc enforce_permissions (public)

    <instance of ::xo::Policy[i]> 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:
    • check_permissions

Methods: Source: Variables:
[All Methods | Documented Methods | Hide Methods] [Display Source | Hide Source] [Show Variables | Hide Variables]