%3 ::xo::Package ::xo::Package exists_form_parameter exists_query_parameter form_parameter get_parameter handle_http_caching init initialize insert instantiate_forms process_init_parameter query_parameter reply_to_user require_root_folder return_page returnredirect set_url update ::xo::db::Object ::xo::db::Object delete initialize_loaded_object insert save save_new update ::xo::Package->::xo::db::Object ::xo::db::chat_transcript ::xo::db::chat_transcript insert save_new update ::xo::db::chat_transcript->::xo::db::Object ::xo::db::chat_room ::xo::db::chat_room ban_user count_messages create_transcript delete delete_messages flush grant_creator grant_moderator grant_user insert post_message revoke_moderator revoke_user save_new transcript_messages unban_user update ::xo::db::chat_room->::xo::db::Object ::xo::db::CrItem ::xo::db::CrItem changed_redirect_url current_user_id delete fix_content initialize_loaded_object is_cached_object is_package_root_folder privilege=creator rename save save_new set_live_revision update update_attribute_from_slot update_content update_item_index update_revision www-revisions ::xo::db::CrItem->::xo::db::Object ::xo::db::CrCache::Item ::xo::db::CrCache::Item ::xo::db::CrItem->::xo::db::CrCache::Item instmixin ::xo::db::apm_parameter ::xo::db::apm_parameter insert update ::xo::db::apm_parameter->::xo::db::Object ::xo::parameter ::xo::parameter ::xo::db::apm_parameter->::xo::parameter instmixin ::xotcl::Object ::xotcl::Object ::xo::db::Object->::xotcl::Object ::xo::oauth::Package ::xo::oauth::Package → fill → reset index init insert ::xo::oauth::Package->::xo::Package ::xowiki::Package ::xowiki::Package → get_package_id_from_page_id → get_url_from_id → google_sitemapindex → instantiate_page_from_id → is_xowiki_p → preferredCSSToolkit → reparent_site_wide_pages call check_permissions clipboard-copy condition=has_class condition=has_name create_new_snippet default_language default_locale delete_revision error_msg external_name flush_name_cache flush_page_fragment_cache flush_references folder_path get_adp_template get_ids_for_bulk_actions get_lang_and_name get_package_id_from_page_name get_page_from_item_or_revision_id get_page_from_item_ref get_page_from_name get_page_from_super get_parameter get_parameter_from_parameter_page get_parent_and_name import init insert invoke item_info_from_id item_info_from_url item_ref join_name lookup make_form_link make_link normalize_name normalize_path package_path prefixed_lookup pretty_link query_parameter_return_url reparent require_folder_object require_root_folder resolve_package_path resolve_page resolve_page_name resolve_page_name_and_init_context show_page_order simple_item_ref split_name validate_tag www-change-page-order www-delete www-edit-category-tree www-edit-new www-google-sitemap www-google-sitemapindex www-import-prototype-page www-manage-categories www-refresh-login www-reindex www-rss www-update-references ::xowiki::Package->::xo::Package ::xowiki::ParameterCache ::xowiki::ParameterCache ::xowiki::Package->::xowiki::ParameterCache instmixin ::xolirc::Package ::xolirc::Package → create-page-from-log → process-all-logs dash-date get-html-from-log initialize insert query-actual-log ::xolirc::Package->::xowiki::Package ::s5::Package ::s5::Package init insert ::s5::Package->::xowiki::Package ::xowf::Package ::xowf::Package → create_new_workflow_page call destroy initialize insert ::xowf::Package->::xowiki::Package

Class ::xo::Package

::xo::Package[i] create ... \
           [ -context (default "::xo::cc") ] \
           [ -force_refresh_login (default "false") ] \
           [ -id:integer id:integer ] \
           [ -package_url package_url ] \
           [ -url url ]

Defined in

Class Relations

  • class: ::xo::PackageMgr[i]
  • superclass: ::xo::db::Object[i]
  • subclass: ::xo::oauth::Package[i], ::xowiki::Package[i]

Methods (to be applied on instances)

  • context (setter)

  • default_locale (setter)

  • exists_form_parameter (forward)

  • exists_query_parameter (forward)

  • force_refresh_login (setter)

  • form_parameter (forward)

  • get_parameter (scripted)

  • handle_http_caching (scripted)

  • id (setter)

  • init (scripted)

  • initialize (scripted)

     <instance of xo::Package[i]> initialize

    Testcases:
    create_form_with_form_instance, xowiki
  • insert (scripted)

  • instance_name (setter)

  • instantiate_forms (scripted)

  • package_id (setter)

  • package_key (setter)

  • package_url (setter)

  • process_init_parameter (scripted)

  • query_parameter (forward)

  • reply_to_user (scripted)

     <instance of xo::Package[i]> reply_to_user

    Testcases:
    create_folder_with_page, xowf, create_workflow_with_instance, create_form_with_form_instance
  • require_root_folder (scripted, public)

     <instance of xo::Package[i]> require_root_folder \
        [ -parent_id parent_id ] [ -content_types content_types ] \
        -name name 

    Make sure, the root folder for the given package exists. If not, create it and register all allowed content types. Note that xowiki (and derived packages) define their own version of "require_root_folder" based on form pages. Therefore, this function is just for packages not based on xowiki.

    Switches:
    -parent_id (optional, defaults to "-100")
    -content_types (optional)
    -name (required)
    Returns:
    folder_id

    Testcases:
    xowiki_test_cases
  • return_page (scripted)

  • returnredirect (forward)

  • set_url (scripted)

  • update (scripted)

  • url (setter)

Variables

::xo::Package set __default_metaclass ::xotcl::Class
::xo::Package set __default_superclass ::xotcl::Object
::xo::Package set abstract_p f
::xo::Package set auto_save false
::xo::Package array set db_constraints {}
::xo::Package array set db_slot \
       {default_locale ::xo::Package::slot::default_locale package_key \
       ::xo::Package::slot::package_key package_id ::xo::Package::slot::package_id instance_name \
       ::xo::Package::slot::instance_name}
::xo::Package set default_package_parameter_page_info {}
::xo::Package set default_package_parameters {}
::xo::Package set id_column package_id
::xo::Package set name_method {}
::xo::Package set object_type apm_package
::xo::Package set object_type_key 0000000000000101
::xo::Package set package_key apm_package
::xo::Package set pretty_name Package
::xo::Package set pretty_plural Package
::xo::Package set security_inherit_p t
::xo::Package set site_wide_package_parameter_page_info {}
::xo::Package set site_wide_package_parameters {}
::xo::Package set site_wide_pages {}
::xo::Package set sql_package_name ::xo::Package
::xo::Package set supertype acs_object
::xo::Package set table_name apm_packages
::xo::Package set with_table true