You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openoffice.apache.org by ks...@apache.org on 2011/11/27 23:36:59 UTC
svn commit: r1206884 [3/4] - in
/incubator/ooo/ooo-site/trunk/content/ucb/docs: ./ ucp-ref/
Added: incubator/ooo/ooo-site/trunk/content/ucb/docs/ucb-configuration.html
URL: http://svn.apache.org/viewvc/incubator/ooo/ooo-site/trunk/content/ucb/docs/ucb-configuration.html?rev=1206884&view=auto
==============================================================================
--- incubator/ooo/ooo-site/trunk/content/ucb/docs/ucb-configuration.html (added)
+++ incubator/ooo/ooo-site/trunk/content/ucb/docs/ucb-configuration.html Sun Nov 27 22:36:56 2011
@@ -0,0 +1,467 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
+<HTML>
+<HEAD>
+ <META HTTP-EQUIV="CONTENT-TYPE" CONTENT="text/html; charset=iso-8859-1">
+ <TITLE>Universal Content Broker Configuration</TITLE>
+ <META NAME="GENERATOR" CONTENT="StarOffice/5.2 (Win32)">
+ <META NAME="CREATED" CONTENT="20010110;19410735">
+ <META NAME="CHANGEDBY" CONTENT="Kai Sommerfeld">
+ <META NAME="CHANGED" CONTENT="20010308;12010592">
+ <STYLE>
+ <!--
+ A:link { color: #444488 }
+ A:visited { color: #444488 }
+ -->
+ </STYLE>
+</HEAD>
+<BODY LINK="#444488" VLINK="#444488">
+<TABLE WIDTH=100% BORDER=0 CELLPADDING=4 CELLSPACING=0 STYLE="page-break-before: always">
+ <COL WIDTH=75>
+ <TR>
+ <TD BGCOLOR="#666699">
+ <H1 ALIGN=CENTER STYLE="margin-top: 0cm; text-decoration: none"><A HREF="http://www.openoffice.org/"><IMG SRC="../images/open_office_org_logo.gif" NAME="Graphic1" ALT="OpenOffice.org" ALIGN=RIGHT WIDTH=126 HEIGHT=53 BORDER=0></A><FONT COLOR="#ffffff"><FONT SIZE=6>Universal
+ Content Broker Configuration</FONT></FONT></H1>
+ </TD>
+ </TR>
+</TABLE>
+<HR SIZE=3 NOSHADE>
+<TABLE WIDTH=100% BORDER=0 CELLPADDING=4 CELLSPACING=0 STYLE="page-break-before: always">
+ <COL WIDTH=256*>
+ <TR>
+ <TD WIDTH=100% BGCOLOR="#666699">
+ <H3 ALIGN=LEFT STYLE="margin-top: 0cm; text-decoration: none"><FONT COLOR="#ffffff"><FONT SIZE=4>Contents</FONT></FONT></H3>
+ </TD>
+ </TR>
+ <TR>
+ <TD WIDTH=100%>
+ <P STYLE="margin-bottom: 0cm"><A HREF="#Abstract">Abstract</A><BR><A HREF="#UCPRegistrationInformation">UCP
+ Registration Information</A><BR><A HREF="#UnconfiguredUCBs">Unconfigured
+ UCBs</A><BR><A HREF="#PreconfiguredUCBs">Preconfigured UCBs</A><BR><A HREF="#UCBConfigurations">UCB
+ Configurations</A><BR><A HREF="#ContentProviderProxies">Content
+ Provider Proxies</A></P>
+ <P><BR>
+ </P>
+ </TD>
+ </TR>
+ <TR>
+ <TD WIDTH=100% BGCOLOR="#666699">
+ <H3 ALIGN=LEFT STYLE="margin-top: 0cm; text-decoration: none"><A NAME="Abstract"></A>
+ <FONT COLOR="#ffffff"><FONT SIZE=4>Abstract</FONT></FONT></H3>
+ </TD>
+ </TR>
+ <TR>
+ <TD WIDTH=100%>
+ <P STYLE="margin-bottom: 0.1cm">This document describes ways to
+ configure the Universal Content Broker (UCB). Before a process can
+ use the UCB, it needs to configure it. Configuring the UCB means
+ to register a set of Universal Content Providers (UCPs) at a
+ Content Broker instance. Only UCPs known to the UCB can be used by
+ it to provide content. Generally we provide two ways to configure
+ a UCB:</P>
+ <UL>
+ <LI><P STYLE="margin-bottom: 0.1cm">Create a "raw" UCB
+ with no UCPs registered and register all needed UCPs manually.</P>
+ <LI><P STYLE="margin-bottom: 0.1cm">Define a UCB configuration
+ and create a UCB automatically configured with the UCPs given in
+ that configuration.</P>
+ </UL>
+ <P ALIGN=LEFT><BR>
+ </P>
+ </TD>
+ </TR>
+ <TR>
+ <TD WIDTH=100% BGCOLOR="#666699">
+ <H3 ALIGN=LEFT STYLE="margin-top: 0cm; text-decoration: none"><A NAME="UCPRegistrationInformation"></A>
+ <FONT COLOR="#ffffff"><FONT SIZE=4>UCP Registration Information</FONT></FONT></H3>
+ </TD>
+ </TR>
+ <TR>
+ <TD WIDTH=100%>
+ <P STYLE="margin-bottom: 0.1cm">To register a Content Provider at
+ the UCB you need the following information that must have been
+ provided be the implementer of the UCP:</P>
+ <UL>
+ <LI><P STYLE="margin-bottom: 0.1cm">The <B>UNO service name</B>
+ to use to instantiate the UCP (for example
+ <I>com.sun.star.ucb.FileContentProvider</I>). Each UCP must be
+ implemented and registered as a UNO service. Refer to the <A HREF="http://udk.openoffice.org/">UNO
+ Development Kit Project</A> for more information on UNO services.</P>
+ <LI><P STYLE="margin-bottom: 0.1cm">An <B>URL template,</B> used
+ by the UCB to select among the registered UCPs the one that best
+ 'fits' an incomming URL (<A HREF="http://api.openoffice.org/common/ref/com/sun/star/ucb/XContentIdentifier.html">XContentIdentifier</A>).
+ This can be either the name of an URL scheme (e.g., <FONT SIZE=2><FONT FACE="Courier New, monospace">file</FONT></FONT>
+ will select the given UCP for all file URLs) or a 'limited'
+ regular expression (e.g., <FONT SIZE=2><FONT FACE="Courier New, monospace">"http://"[^/?#]*".com"([/?#].*)?</FONT></FONT>
+ will select the given UCP for all http URLs in the com domain).
+ See the documentation of <A HREF="http://api.openoffice.org/common/ref/com/sun/star/ucb/XContentProviderManager.html">XContentProviderManager</A>'s
+ <A HREF="http://api.openoffice.org/common/ref/com/sun/star/ucb/XContentProviderManager.html#registerContentProvider">registerContentProvider</A>
+ method for details about those regular expressions.</P>
+ <LI><P STYLE="margin-bottom: 0.1cm"><B>Additional arguments</B>
+ that may be needed by the UCP.</P>
+ </UL>
+ <P><BR>
+ </P>
+ </TD>
+ </TR>
+ <TR>
+ <TD WIDTH=100% BGCOLOR="#666699">
+ <H3 ALIGN=LEFT STYLE="margin-top: 0cm; text-decoration: none"><A NAME="UnconfiguredUCBs"></A>
+ <FONT COLOR="#ffffff"><FONT SIZE=4>Unconfigured UCBs</FONT></FONT></H3>
+ </TD>
+ </TR>
+ <TR>
+ <TD WIDTH=100%>
+ <P ALIGN=LEFT STYLE="margin-bottom: 0.1cm">A UCB is called
+ "unconfigured" if it has no Content Providers. Thus it
+ is not able to provide any contents. Each UCB implements the
+ interface <A HREF="http://api.openoffice.org/common/ref/com/sun/star/ucb/XContentProviderManager.html">XContentProviderManager</A>.
+ This interface offers (among others) the functionality to register
+ UCPs at runtime.</P>
+ <P ALIGN=LEFT STYLE="margin-bottom: 0.1cm">To create an
+ unconfigured UCB and configure it manually:
+ </P>
+ <UL>
+ <LI><P STYLE="margin-bottom: 0.1cm">Create and set the UNO
+ Service Manager.</P>
+ <LI><P STYLE="margin-bottom: 0.1cm">Create an instance of the UNO
+ service "com.sun.star.ucb.UniversalContentBroker".</P>
+ <LI><P STYLE="margin-bottom: 0.1cm">Register the appropriate UCPs
+ by using the UCB's XContentProviderManager interface.</P>
+ </UL>
+ <HR SIZE=1 NOSHADE>
+ <P ALIGN=LEFT STYLE="margin-bottom: 0.1cm"><FONT SIZE=4><B>Example
+ 1 – Unconfigured UCB </B></FONT>
+ </P>
+ <HR SIZE=1 NOSHADE>
+ <PRE>using namespace com::sun::star;
+
+bool initUCB()
+{
+ /////////////////////////////////////////////////////////////////////
+ // Create Process Service Manager. This needs to be done only once
+ // per process! Afterwards it is accessable via
+ // comphelper::getProcessServiceFactory().
+ /////////////////////////////////////////////////////////////////////
+
+ uno::Reference< lang::XMultiServiceFactory > xServiceFactory;
+ try
+ {
+ xServiceFactory = cppu::createRegistryServiceFactory(
+ comphelper::getPathToSystemRegistry(),
+ rtl::OUString(),
+ true );
+ }
+ catch ( uno::Exception const & ) {}
+
+ if ( !xServiceFactory.is() )
+ return false;
+
+ comphelper::setProcessServiceFactory( xServiceFactory );
+
+ /////////////////////////////////////////////////////////////////////
+ // Create UCB. This needs to be done only once per process!
+ /////////////////////////////////////////////////////////////////////
+
+ uno::Reference< uno::XInterface > xUCB;
+ try
+ {
+ xUCB = xServiceFactory->createInstance(
+ rtl::OUString::createFromAscii(
+ "com.sun.star.ucb.UniversalContentBroker" ) );
+ }
+ catch ( uno::Exception const & ) {}
+
+ if ( !xUCB.is() )
+ return false;
+
+ /////////////////////////////////////////////////////////////////////
+ // Instanciate UCPs and register them at UCB.
+ /////////////////////////////////////////////////////////////////////
+
+ uno::Reference< ucb::XContentProvider > xFileProvider;
+ try
+ {
+ xFileProvider = uno::Reference< ucb::XContentProvider >(
+ xServiceFactory->createInstance(
+ rtl::OUString::createFromAscii(
+ "com.sun.star.ucb.FileContentProvider" ) ),
+ uno::UNO_QUERY );
+ }
+ catch ( uno::Exception const & ) {}
+
+ if ( !xFileProvider.is() )
+ return false;
+
+ try
+ {
+ xUcb->registerContentProvider(
+ xFileProvider,
+ rtl::OUString::createFromAscii( "file" ),
+ sal_False );
+ }
+ catch ( ucb::DuplicateProviderException const & {}
+
+ // Create/register other UCPs...
+
+ return true;
+}</PRE>
+ </TD>
+ </TR>
+ <TR>
+ <TD WIDTH=100% BGCOLOR="#666699">
+ <H3 ALIGN=LEFT STYLE="margin-top: 0cm; text-decoration: none"><A NAME="PreconfiguredUCBs"></A>
+ <FONT COLOR="#ffffff"><FONT SIZE=4>Preconfigured UCBs</FONT></FONT></H3>
+ </TD>
+ </TR>
+ <TR>
+ <TD WIDTH=100%>
+ <P ALIGN=LEFT STYLE="margin-bottom: 0.1cm">A UCB is called
+ "preconfigured" if it was given a <A HREF="#UCBConfigurations">UCB
+ configuration</A> at the time it was instantiated. A UCB
+ configuration contains a set of <A HREF="#UCPRegistrationInformation">UCP
+ registration informations</A>.
+ </P>
+ <P ALIGN=LEFT STYLE="margin-bottom: 0.1cm">To create a
+ preconfigured UCB:
+ </P>
+ <UL>
+ <LI><P STYLE="margin-bottom: 0.1cm">Create and set the UNO
+ Service Manager.</P>
+ <LI><P STYLE="margin-bottom: 0.1cm">Create an instance of the UNO
+ service "com.sun.star.ucb.UniversalContentBroker". Pass
+ the configuration to use as parameters to the creation function.
+ The UCB instance returned will have registered all UCPs defined
+ in the given configuration.</P>
+ </UL>
+ <P STYLE="margin-bottom: 0.1cm"><B>Note:</B> There is a helper
+ function (ucb::configureUcb) available in the <A HREF="http://www.openoffice.org/source/browse/ucb/ucbhelper/">UCBHELPER</A>
+ library, which contains all code necessary to instantiate a
+ preconfigured UCB.</P>
+ <HR SIZE=1 NOSHADE>
+ <P ALIGN=LEFT STYLE="margin-bottom: 0.1cm"><FONT SIZE=4><B>Example
+ 2 – Preconfigured UCB</B></FONT></P>
+ <HR SIZE=1 NOSHADE>
+ <PRE>using namespace com::sun::star;
+
+bool initUCB()
+{
+ /////////////////////////////////////////////////////////////////////
+ // Create Process Service Manager. This needs to be done only once
+ // per process! Afterwards it is accessable via
+ // comphelper::getProcessServiceFactory().
+ /////////////////////////////////////////////////////////////////////
+
+ uno::Reference< lang::XMultiServiceFactory > xServiceFactory;
+ try
+ {
+ xServiceFactory = cppu::createRegistryServiceFactory(
+ comphelper::getPathToSystemRegistry(),
+ rtl::OUString(),
+ true );
+ }
+ catch ( uno::Exception const & ) {}
+
+ if ( !xServiceFactory.is() )
+ return false;
+
+ comphelper::setProcessServiceFactory( xServiceFactory );
+
+ /////////////////////////////////////////////////////////////////////
+ // Create UCB. This needs to be done only once per process!
+ /////////////////////////////////////////////////////////////////////
+
+ // Supply configuration to use for this UCB instance...
+ uno::Sequence< uno::Any > aArgs( 2 );
+ aArgs[ 0 ] <<= rtl::OUString::createFromAscii( "Local" );
+ aArgs[ 1 ] <<= rtl::OUString::createFromAscii( "Office" );
+
+ uno::Reference< uno::XInterface > xUCB;
+ try
+ {
+ xUCB = xServiceFactory->createInstanceWithArguments(
+ rtl::OUString::createFromAscii(
+ "com.sun.star.ucb.UniversalContentBroker" ),
+ aArgs );
+ }
+ catch ( uno::Exception const & ) {}
+
+ if ( !xUCB.is() )
+ return false;
+
+ return true;
+}</PRE>
+ </TD>
+ </TR>
+ <TR>
+ <TD WIDTH=100% BGCOLOR="#666699">
+ <H3 ALIGN=LEFT STYLE="margin-top: 0cm; text-decoration: none"><A NAME="UCBConfigurations"></A>
+ <FONT COLOR="#ffffff"><FONT SIZE=4>UCB Configurations</FONT></FONT></H3>
+ </TD>
+ </TR>
+ <TR>
+ <TD WIDTH=100%>
+ <P ALIGN=LEFT STYLE="margin-bottom: 0.1cm">Each UCB configuration
+ contains data that describe a set of UCPs (<A HREF="#UCPRegistrationInformation">UCP
+ registration information</A>). All UCPs contained in a
+ configuration will be registered at the UCB that shall be created
+ using this configuration. A UCB configuration is identified by <B>two
+ keys</B>, which are strings.</P>
+ <P ALIGN=LEFT STYLE="margin-bottom: 0.1cm">UCB configurations are
+ defined in XML. The predefined configurations for OpenOffice are
+ defined in the file
+ <A HREF="http://www.openoffice.org/source/browse/util/officecfg/data/org/openoffice/ucb/Configuration.xcd">officecfg/data/org/openoffice/ucb/Configuration.xcd</A>.
+ This file must be adapted to add configurations or to edit
+ existing configurations. The XCD file will be used by the
+ OpenOffice build process to generate an appropriete XML file. This
+ XML file is part of an OpenOffice installation. The UCB will
+ always try to get configuration data from that XML file.</P>
+ <P ALIGN=LEFT STYLE="margin-bottom: 0.1cm"><B>Note:</B> There are
+ several predefined UCB configurations. The standard configuration
+ is "Local" and "Office", which generally
+ allows access to all UCPs.</P>
+ <HR SIZE=1 NOSHADE>
+ <P ALIGN=LEFT STYLE="margin-bottom: 0.1cm"><FONT SIZE=4><B>Example
+ 3 – UCB Configuration (org/openoffice/ucb/Configuration.xcd)</B></FONT></P>
+ <HR SIZE=1 NOSHADE>
+ <PRE><!DOCTYPE schema:package SYSTEM "../schema/schema.description.dtd">
+<schema:package package-id="org.openoffice.ucb.Configuration" xml:lang="en-US"
+ xmlns:schema="http://openoffice.org/2000/registry/schema/description"
+ xmlns:default="http://openoffice.org/2000/registry/schema/default"
+ xmlns:cfg="http://openoffice.org/2000/registry/instance">
+
+ <schema:templates template-id="org.openoffice.ucb.Configuration">
+
+ <!-- ContentProvider -->
+ <schema:group cfg:name="ContentProviderData">
+ <schema:value cfg:name="ServiceName" cfg:type="string">
+ </schema:value>
+ <schema:value cfg:name="URLTemplate" cfg:type="string">
+ </schema:value>
+ <schema:value cfg:name="Arguments" cfg:type="string">
+ </schema:value>
+ </schema:group>
+
+ <!-- ContentProvidersDataSecondaryKeys -->
+ <schema:group cfg:name="ContentProvidersDataSecondaryKeys">
+ <schema:set cfg:name="ProviderData"
+ cfg:element-type="ContentProviderData"/>
+ </schema:group>
+
+ <!-- ContentProvidersDataPrimaryKeys -->
+ <schema:group cfg:name="ContentProvidersDataPrimaryKeys">
+ <schema:set cfg:name="SecondaryKeys"
+ cfg:element-type="ContentProvidersDataSecondaryKeys"/>
+ </schema:group>
+ </schema:templates>
+
+ <schema:component cfg:writable="true"
+ component-id="org.openoffice.ucb.Configuration"
+ cfg:notified="true" cfg:localized="false">
+ <schema:set cfg:name="ContentProviders"
+ cfg:element-type="ContentProvidersDataPrimaryKeys">
+ <default:group cfg:name="Local">
+ <default:set cfg:name="SecondaryKeys"
+ cfg:element-type="ContentProvidersDataSecondaryKeys">
+ <default:group cfg:name="Office">
+ <default:set cfg:name="ProviderData"
+ cfg:element-type="ContentProviderData">
+
+ <!-- Hierarchy UCP -->
+ <default:group cfg:name="Provider1">
+ <default:value cfg:name="ServiceName" cfg:type="string">
+ <default:data>com.sun.star.ucb.HierarchyContentProvider</default:data>
+ </default:value>
+ <default:value cfg:name="URLTemplate" cfg:type="string">
+ <default:data>vnd.sun.star.hier</default:data>
+ </default:value>
+ <default:value cfg:name="Arguments" cfg:type="string">
+ <default:data/>
+ </default:value>
+ </default:group>
+
+ <!-- File UCP -->
+ <default:group cfg:name="Provider2">
+ <default:value cfg:name="ServiceName" cfg:type="string">
+ <default:data>com.sun.star.ucb.FileContentProvider</default:data>
+ </default:value>
+ <default:value cfg:name="URLTemplate" cfg:type="string">
+ <default:data>file</default:data>
+ </default:value>
+ <default:value cfg:name="Arguments" cfg:type="string">
+ <default:data/>
+ </default:value>
+ </default:group>
+
+ <!-- Other UCPs go here -->
+
+ </default:set>
+ </default:group>
+ </default:set>
+ </default:group>
+ </schema:set>
+ </schema:component>
+</schema:package></PRE>
+ </TD>
+ </TR>
+ <TR>
+ <TD WIDTH=100% BGCOLOR="#666699">
+ <H3 ALIGN=LEFT STYLE="margin-top: 0cm; text-decoration: none"><A NAME="ContentProviderProxies"></A>
+ <FONT COLOR="#ffffff"><FONT SIZE=4>Content Provider Proxies</FONT></FONT></H3>
+ </TD>
+ </TR>
+ <TR>
+ <TD WIDTH=100%>
+ <P STYLE="margin-bottom: 0.1cm">As the reader may have noticed,
+ the UNO service implementing a UCP must be instantiated at the
+ time the Content Provider is registered at the UCB Again, this is
+ done using <A HREF="http://api.openoffice.org/common/ref/com/sun/star/ucb/XContentProviderManager.html">XContentProviderManager</A>'s
+ <A HREF="http://api.openoffice.org/common/ref/com/sun/star/ucb/XContentProviderManager.html#registerContentProvider">registerContentProvider</A>
+ method. In some cases this can consume to much resources, because
+ instantiating a UNO service means loading the libraries containing
+ its code. And as a convention each UNO component should reside in
+ its own library.</P>
+ <P STYLE="margin-bottom: 0.1cm">That's why we offer a special UNO
+ service, that provides a generic proxy for a UCP. It's main
+ purpose is to delay loading of the real UCP's code until it is
+ really needed. Generally this will be not the case before the
+ first createContentIdentifier/queryContent calls are done at the
+ proxy.</P>
+ <P STYLE="margin-bottom: 0.1cm">Instead of registering the real
+ instantiated UCP at the UCB, a proxy will be created for the UCP.
+ The UCP registration information will be passed to the proxy. The
+ proxy will use this information to instantiate the real UCP on
+ demand only. There is almost no performance overhead with this
+ mechanism.</P>
+ <P><B>Note:</B> When using preconfigured UCBs, the UCB
+ implementation will use proxies instead of the real UCPs to avoid
+ wasting resources.
+ </P>
+ </TD>
+ </TR>
+ <TR>
+ <TD WIDTH=100%>
+ <HR SIZE=1 NOSHADE>
+ </TD>
+ </TR>
+ <TR>
+ <TD WIDTH=100%>
+ <HR SIZE=1 NOSHADE>
+ </TD>
+ </TR>
+ <TR>
+ <TD WIDTH=100% BGCOLOR="#666699">
+ <P ALIGN=LEFT><FONT COLOR="#ffffff">Author: <A HREF="mailto:kai.sommerfeld@germany.sun.com">Kai
+ Sommerfeld</A> ($Date: 2001/04/20 11:13:50 $)<BR><I>Copyright 2001
+ OpenOffice.org Foundation. All Rights Reserved.</I></FONT>
+ </P>
+ </TD>
+ </TR>
+ <TR>
+ <TD WIDTH=100%>
+ <HR SIZE=1 NOSHADE>
+ </TD>
+ </TR>
+</TABLE>
+<HR SIZE=3 NOSHADE>
+</BODY>
+</HTML>
Propchange: incubator/ooo/ooo-site/trunk/content/ucb/docs/ucb-configuration.html
------------------------------------------------------------------------------
svn:eol-style = native
Added: incubator/ooo/ooo-site/trunk/content/ucb/docs/ucb-overview.odp
URL: http://svn.apache.org/viewvc/incubator/ooo/ooo-site/trunk/content/ucb/docs/ucb-overview.odp?rev=1206884&view=auto
==============================================================================
Binary file - no diff available.
Propchange: incubator/ooo/ooo-site/trunk/content/ucb/docs/ucb-overview.odp
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: incubator/ooo/ooo-site/trunk/content/ucb/docs/ucp-ref.html
URL: http://svn.apache.org/viewvc/incubator/ooo/ooo-site/trunk/content/ucb/docs/ucp-ref.html?rev=1206884&view=auto
==============================================================================
--- incubator/ooo/ooo-site/trunk/content/ucb/docs/ucp-ref.html (added)
+++ incubator/ooo/ooo-site/trunk/content/ucb/docs/ucp-ref.html Sun Nov 27 22:36:56 2011
@@ -0,0 +1,294 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
+<HTML>
+<HEAD>
+ <META HTTP-EQUIV="CONTENT-TYPE" CONTENT="text/html; charset=iso-8859-1">
+ <TITLE>Content Providers for the UCB</TITLE>
+ <META NAME="GENERATOR" CONTENT="StarOffice/5.2 (Win32)">
+ <META NAME="AUTHOR" CONTENT="Kai Sommerfeld">
+ <META NAME="CREATED" CONTENT="20010502;16032041">
+ <META NAME="CHANGEDBY" CONTENT="Kai Sommerfeld">
+ <META NAME="CHANGED" CONTENT="20010503;10222695">
+ <STYLE>
+ <!--
+ A:link { color: #444488 }
+ A:visited { color: #444488 }
+ -->
+ </STYLE>
+</HEAD>
+<BODY LINK="#444488" VLINK="#444488">
+<TABLE WIDTH=100% BORDER=0 CELLPADDING=4 CELLSPACING=0 STYLE="page-break-before: always">
+ <COL WIDTH=75>
+ <TR>
+ <TD BGCOLOR="#666699">
+ <H1 ALIGN=CENTER STYLE="margin-top: 0cm; text-decoration: none"><A HREF="http://www.openoffice.org/"><IMG SRC="../images/open_office_org_logo.gif" NAME="Graphic1" ALT="OpenOffice.org" ALIGN=RIGHT WIDTH=126 HEIGHT=53 BORDER=0></A><FONT COLOR="#ffffff"><FONT SIZE=6>Content
+ Providers for the UCB</FONT></FONT></H1>
+ </TD>
+ </TR>
+</TABLE>
+<HR SIZE=3 NOSHADE>
+<TABLE WIDTH=100% BORDER=0 CELLPADDING=4 CELLSPACING=0 STYLE="page-break-before: always">
+ <COL WIDTH=256*>
+ <TR>
+ <TD WIDTH=100% BGCOLOR="#666699">
+ <H3 ALIGN=LEFT STYLE="margin-top: 0cm; text-decoration: none"><FONT COLOR="#ffffff"><FONT SIZE=4>Contents</FONT></FONT></H3>
+ </TD>
+ </TR>
+ <TR>
+ <TD WIDTH=100%>
+ <P STYLE="margin-bottom: 0cm">
+ <A HREF="#Abstract">Abstract</A><BR>
+ <A HREF="#File">File Content Provider</A><BR>
+ <A HREF="#FTP">FTP Content Provider</A><BR>
+ <A HREF="#WebDAV">WebDAV Content Provider</A><BR>
+ <A HREF="#Hierarchy">Hierarchy Content Provider</A><BR>
+ <A HREF="#Package">Package Content Provider</A><BR>
+ <A HREF="#Help">Help Content Provider</A><BR>
+ <A HREF="#ODMA">ODMA Content Provider</A></P>
+ <A HREF="#TDOC">TDOC Content Provider</A></P>
+ <P><BR>
+ </P>
+ </TD>
+ </TR>
+ <TR>
+ <TD WIDTH=100% BGCOLOR="#666699">
+ <H3 ALIGN=LEFT STYLE="margin-top: 0cm; text-decoration: none"><A NAME="Abstract"></A>
+ <FONT COLOR="#ffffff"><FONT SIZE=4>Abstract</FONT></FONT></H3>
+ </TD>
+ </TR>
+ <TR>
+ <TD WIDTH=100%>
+ <P STYLE="margin-bottom: 0.1cm">This document is a Reference Guide
+ to the Content Providers (UCPs) currently available for the
+ Universal Content Broker (UCB).</P>
+ <P STYLE="margin-bottom: 0.1cm"><B>Note: There are some other UCPs
+ available. Documentation may follow soon.</B></P>
+ <P><BR>
+ </P>
+ </TD>
+ </TR>
+ <TR>
+ <TD WIDTH=100% BGCOLOR="#666699">
+ <H3 ALIGN=LEFT STYLE="margin-top: 0cm; text-decoration: none"><A NAME="File"></A>
+ <FONT COLOR="#ffffff"><FONT SIZE=4>File Content Provider</FONT></FONT></H3>
+ </TD>
+ </TR>
+ <TR>
+ <TD WIDTH=100%>
+ <P STYLE="margin-bottom: 0.1cm">The File Content Provider (FCP)
+ provides access to the file system of the machine the Provider is
+ running on.</P>
+ <P STYLE="margin-bottom: 0.1cm"><B>Available documents:</B></P>
+ <UL>
+ <LI><P STYLE="margin-bottom: 0.1cm"><A HREF="ucp-ref/file-ucp.html">Reference
+ Guide</A></P>
+ <LI><P STYLE="margin-bottom: 0.1cm">Specification for the UNO
+ service <A HREF="http://api.openoffice.org/docs/common/ref/com/sun/star/ucb/FileContentProvider.html">com.sun.star.ucb.FileContentProvider</A></P>
+ <LI><P STYLE="margin-bottom: 0.1cm">Specification for the UNO
+ service <A HREF="http://api.openoffice.org/docs/common/ref/com/sun/star/ucb/FileContent.html">com.sun.star.ucb.FileContent</A></P>
+ </UL>
+ <P><BR>
+ </P>
+ </TD>
+ </TR>
+ <TR>
+ <TD WIDTH=100% BGCOLOR="#666699">
+ <H3 ALIGN=LEFT STYLE="margin-top: 0cm; text-decoration: none"><A NAME="FTP"></A>
+ <FONT COLOR="#ffffff"><FONT SIZE=4>FTP Content Provider</FONT></FONT></H3>
+ </TD>
+ </TR>
+ <TR>
+ <TD WIDTH=100%>
+ <P STYLE="margin-bottom: 0.1cm">The FTP Content Provider provides
+ access to the contents (folders and documents) made available by
+ FTP servers.</P>
+ <P STYLE="margin-bottom: 0.1cm"><B>Available documents:</B></P>
+ <UL>
+ <LI><P STYLE="margin-bottom: 0.1cm"><A HREF="ucp-ref/ftp-ucp.html">Reference
+ Guide</A></P>
+ <LI><P STYLE="margin-bottom: 0.1cm">Specification for the UNO
+ service <A HREF="http://api.openoffice.org/docs/common/ref/com/sun/star/ucb/FTPContentProvider.html">com.sun.star.ucb.FTPContentProvider</A></P>
+ <LI><P STYLE="margin-bottom: 0.1cm">Specification for the UNO
+ service <A HREF="http://api.openoffice.org/docs/common/ref/com/sun/star/ucb/FTPContent.html">com.sun.star.ucb.FTPContent</A></P>
+ </UL>
+ <P><BR>
+ </P>
+ </TD>
+ </TR>
+ <TR>
+ <TD WIDTH=100% BGCOLOR="#666699">
+ <H3 ALIGN=LEFT STYLE="margin-top: 0cm; text-decoration: none"><A NAME="WebDAV"></A>
+ <FONT COLOR="#ffffff"><FONT SIZE=4>WebDAV Content Provider</FONT></FONT></H3>
+ </TD>
+ </TR>
+ <TR>
+ <TD WIDTH=100%>
+ <P STYLE="margin-bottom: 0.1cm">The WebDAV Content Provider (DCP)
+ provides access to WebDAV and standard HTTP servers.</P>
+ <P STYLE="margin-bottom: 0.1cm"><B>Available documents:</B></P>
+ <UL>
+ <LI><P STYLE="margin-bottom: 0.1cm"><A HREF="ucp-ref/webdav-ucp.html">Reference
+ Guide</A></P>
+ <LI><P STYLE="margin-bottom: 0.1cm">Specification for the UNO
+ service <A HREF="http://api.openoffice.org/docs/common/ref/com/sun/star/ucb/WebDAVContentProvider.html">com.sun.star.ucb.WebDAVContentProvider</A></P>
+ <LI><P STYLE="margin-bottom: 0.1cm">Specification for the UNO
+ service <A HREF="http://api.openoffice.org/docs/common/ref/com/sun/star/ucb/WebDAVDocumentContent.html">com.sun.star.ucb.WebDAVDocumentContent</A></P>
+ <LI><P STYLE="margin-bottom: 0.1cm">Specification for the UNO
+ service <A HREF="http://api.openoffice.org/docs/common/ref/com/sun/star/ucb/WebDAVFolderContent.html">com.sun.star.ucb.WebDAVFolderContent</A></P>
+ </UL>
+ <P><BR>
+ </P>
+ </TD>
+ </TR>
+ <TR>
+ <TD WIDTH=100% BGCOLOR="#666699">
+ <H3 ALIGN=LEFT STYLE="margin-top: 0cm; text-decoration: none"><A NAME="Hierarchy"></A>
+ <FONT COLOR="#ffffff"><FONT SIZE=4>Hierarchy Content Provider</FONT></FONT></H3>
+ </TD>
+ </TR>
+ <TR>
+ <TD WIDTH=100%>
+ <P STYLE="margin-bottom: 0.1cm">The Hierarchy Content Provider (
+ HCP ) provides access to a virtual, persistent, customizable
+ hierarchy of contents.</P>
+ <P STYLE="margin-bottom: 0.1cm"><B>Available documents:</B></P>
+ <UL>
+ <LI><P STYLE="margin-bottom: 0.1cm"><A HREF="ucp-ref/hierarchy-ucp.html">Reference
+ Guide</A></P>
+ <LI><P STYLE="margin-bottom: 0.1cm">Specification for the UNO
+ service <A HREF="http://api.openoffice.org/docs/common/ref/com/sun/star/ucb/HierarchyContentProvider.html">com.sun.star.ucb.HierarchyContentProvider</A></P>
+ <LI><P STYLE="margin-bottom: 0.1cm">Specification for the UNO
+ service <A HREF="http://api.openoffice.org/docs/common/ref/com/sun/star/ucb/HierarchyLinkContent.html">com.sun.star.ucb.HierarchyLinkContent</A></P>
+ <LI><P STYLE="margin-bottom: 0.1cm">Specification for the UNO
+ service <A HREF="http://api.openoffice.org/docs/common/ref/com/sun/star/ucb/HierarchyFolderContent.html">com.sun.star.ucb.HierarchyFolderContent</A></P>
+ <LI><P STYLE="margin-bottom: 0.1cm">Specification for the UNO
+ service <A HREF="http://api.openoffice.org/docs/common/ref/com/sun/star/ucb/HierarchyRootFolderContent.html">com.sun.star.ucb.HierarchyRootFolderContent</A></P>
+ </UL>
+ <P><BR>
+ </P>
+ </TD>
+ </TR>
+ <TR>
+ <TD WIDTH=100% BGCOLOR="#666699">
+ <H3 ALIGN=LEFT STYLE="margin-top: 0cm; text-decoration: none"><A NAME="Package"></A>
+ <FONT COLOR="#ffffff"><FONT SIZE=4>Package Content Provider</FONT></FONT></H3>
+ </TD>
+ </TR>
+ <TR>
+ <TD WIDTH=100%>
+ <P STYLE="margin-bottom: 0.1cm">The Package Content Provider ( PCP
+ ) provides access to the content of ZIP/JAR archive files.</P>
+ <P STYLE="margin-bottom: 0.1cm"><B>Available documents:</B></P>
+ <UL>
+ <LI><P STYLE="margin-bottom: 0.1cm"><A HREF="ucp-ref/package-ucp.html">Reference
+ Guide</A></P>
+ <LI><P STYLE="margin-bottom: 0.1cm">Specification for the UNO
+ service <A HREF="http://api.openoffice.org/docs/common/ref/com/sun/star/ucb/PackageContentProvider.html">com.sun.star.ucb.PackageContentProvider</A></P>
+ <LI><P STYLE="margin-bottom: 0.1cm">Specification for the UNO
+ service <A HREF="http://api.openoffice.org/docs/common/ref/com/sun/star/ucb/PackageStreamContent.html">com.sun.star.ucb.PackageStreamContent</A></P>
+ <LI><P STYLE="margin-bottom: 0.1cm">Specification for the UNO
+ service <A HREF="http://api.openoffice.org/docs/common/ref/com/sun/star/ucb/PackageFolderContent.html">com.sun.star.ucb.PackageFolderContent</A></P>
+ </UL>
+ <P><BR>
+ </P>
+ </TD>
+ </TR>
+ <TR>
+ <TD WIDTH=100% BGCOLOR="#666699">
+ <H3 ALIGN=LEFT STYLE="margin-top: 0cm; text-decoration: none"><A NAME="Help"></A>
+ <FONT COLOR="#ffffff"><FONT SIZE=4>Help Content Provider</FONT></FONT></H3>
+ </TD>
+ </TR>
+ <TR>
+ <TD WIDTH=100%>
+ <P STYLE="margin-bottom: 0.1cm">The Help Content Provider provides
+ access to the OpenOffice.org Help System.</P>
+ <P STYLE="margin-bottom: 0.1cm"><B>Available documents:</B></P>
+ <UL>
+ <LI><P STYLE="margin-bottom: 0.1cm"><A HREF="ucp-ref/help-ucp.html">Reference
+ Guide</A></P>
+ <LI><P STYLE="margin-bottom: 0.1cm">Specification for the UNO
+ service <A HREF="http://api.openoffice.org/docs/common/ref/com/sun/star/ucb/HelpContentProvider.html">com.sun.star.ucb.HelpContentProvider</A></P>
+ <LI><P STYLE="margin-bottom: 0.1cm">Specification for the UNO
+ service <A HREF="http://api.openoffice.org/docs/common/ref/com/sun/star/ucb/HelpContent.html">com.sun.star.ucb.HelpContent</A></P>
+ </UL>
+ <P><BR>
+ </P>
+ </TD>
+ </TR>
+ <TR>
+ <TD WIDTH=100% BGCOLOR="#666699">
+ <H3 ALIGN=LEFT STYLE="margin-top: 0cm; text-decoration: none"><A NAME="ODMA"></A>
+ <FONT COLOR="#ffffff"><FONT SIZE=4>ODMA Content Provider</FONT></FONT></H3>
+ </TD>
+ </TR>
+ <TR>
+ <TD WIDTH=100%>
+ <P STYLE="margin-bottom: 0.1cm">The ODMA Content Provider ( OCP )
+ provides access to DMA servers.</P>
+ <P STYLE="margin-bottom: 0.1cm"><B>Available documents:</B></P>
+ <UL>
+ <LI><P STYLE="margin-bottom: 0.1cm"><A HREF="ucp-ref/odma-ucp.html">Reference
+ Guide</A></P>
+ <LI><P STYLE="margin-bottom: 0.1cm">Specification for the UNO
+ service <A HREF="http://api.openoffice.org/docs/common/ref/com/sun/star/ucb/ODMAContentProvider.html">com.sun.star.ucb.ODMAContentProvider</A></P>
+ <LI><P STYLE="margin-bottom: 0.1cm">Specification for the UNO
+ service <A HREF="http://api.openoffice.org/docs/common/ref/com/sun/star/ucb/ODMAContent.html">com.sun.star.ucb.ODMAContent</A></P>
+ </UL>
+ <P><BR>
+ </P>
+ </TD>
+ </TR>
+ <TR>
+ <TD WIDTH=100% BGCOLOR="#666699">
+ <H3 ALIGN=LEFT STYLE="margin-top: 0cm; text-decoration: none"><A NAME="TDOC"></A>
+ <FONT COLOR="#ffffff"><FONT SIZE=4>TDOC Content Provider</FONT></FONT></H3>
+ </TD>
+ </TR>
+ <TR>
+ <TD WIDTH=100%>
+ <P STYLE="margin-bottom: 0.1cm">The Transient Document Content Provider (TDCP)
+ provides access to the hierachical structure of the documents that are active
+ in a running OpenOffice.org process.</P>
+ <P STYLE="margin-bottom: 0.1cm"><B>Available documents:</B></P>
+ <UL>
+ <LI><P STYLE="margin-bottom: 0.1cm"><A HREF="ucp-ref/tdoc-ucp.html">Reference
+ Guide</A></P>
+ <LI><P STYLE="margin-bottom: 0.1cm">Specification for the UNO
+ service <A HREF="http://api.openoffice.org/docs/common/ref/com/sun/star/ucb/TransientDocumentsContentProvider.html">com.sun.star.ucb.TransientDocumentsContentProvider</A></P>
+ <LI><P STYLE="margin-bottom: 0.1cm">Specification for the UNO
+ service <A HREF="http://api.openoffice.org/docs/common/ref/com/sun/star/ucb/TransientDocumentsDocumentContent.html">com.sun.star.ucb.TransientDocumentsDocumentContent</A></P>
+ <LI><P STYLE="margin-bottom: 0.1cm">Specification for the UNO
+ service <A HREF="http://api.openoffice.org/docs/common/ref/com/sun/star/ucb/TransientDocumentsFolderContent.html">com.sun.star.ucb.TransientDocumentsFolderContent</A></P>
+ <LI><P STYLE="margin-bottom: 0.1cm">Specification for the UNO
+ service <A HREF="http://api.openoffice.org/docs/common/ref/com/sun/star/ucb/TransientDocumentsRootContent.html">com.sun.star.ucb.TransientDocumentsRootContent</A></P>
+ <LI><P STYLE="margin-bottom: 0.1cm">Specification for the UNO
+ service <A HREF="http://api.openoffice.org/docs/common/ref/com/sun/star/ucb/TransientDocumentsStreamContent.html">com.sun.star.ucb.TransientDocumentsStreamContent</A></P>
+ <LI><P STYLE="margin-bottom: 0.1cm">Specification for the UNO
+ service <A HREF="http://api.openoffice.org/docs/common/ref/com/sun/star/frame/TransientDocumentsDocumentContentFactory.html">com.sun.star.frame.TransientDocumentsDocumentContentFactory</A></P>
+ </UL>
+ <P><BR>
+ </P>
+ </TD>
+ </TR>
+ <TR>
+ <TD WIDTH=100%>
+ <HR SIZE=1 NOSHADE>
+ </TD>
+ </TR>
+ <TR>
+ <TD WIDTH=100% BGCOLOR="#666699">
+ <P ALIGN=LEFT><FONT COLOR="#ffffff">Author: <A HREF="mailto:kai.sommerfeld@germany.sun.com">Kai
+ Sommerfeld</A> ($Date: 2004/03/15 16:07:54 $)<BR><I>Copyright 2001
+ OpenOffice.org Foundation. All Rights Reserved.</I></FONT>
+ </P>
+ </TD>
+ </TR>
+ <TR>
+ <TD WIDTH=100%>
+ <HR SIZE=1 NOSHADE>
+ </TD>
+ </TR>
+</TABLE>
+<HR SIZE=3 NOSHADE>
+</BODY>
+</HTML>
Propchange: incubator/ooo/ooo-site/trunk/content/ucb/docs/ucp-ref.html
------------------------------------------------------------------------------
svn:eol-style = native
Added: incubator/ooo/ooo-site/trunk/content/ucb/docs/ucp-ref/file-ucp.html
URL: http://svn.apache.org/viewvc/incubator/ooo/ooo-site/trunk/content/ucb/docs/ucp-ref/file-ucp.html?rev=1206884&view=auto
==============================================================================
--- incubator/ooo/ooo-site/trunk/content/ucb/docs/ucp-ref/file-ucp.html (added)
+++ incubator/ooo/ooo-site/trunk/content/ucb/docs/ucp-ref/file-ucp.html Sun Nov 27 22:36:56 2011
@@ -0,0 +1,227 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
+<HTML>
+<HEAD>
+ <META HTTP-EQUIV="CONTENT-TYPE" CONTENT="text/html; charset=windows-1252">
+ <TITLE></TITLE>
+ <META NAME="GENERATOR" CONTENT="StarOffice 6.0 (Win32)">
+ <META NAME="AUTHOR" CONTENT="Kai Sommerfeld">
+ <META NAME="CREATED" CONTENT="20000714;12280562">
+ <META NAME="CHANGEDBY" CONTENT="Andreas Bille">
+ <META NAME="CHANGED" CONTENT="20020426;15221435">
+ <STYLE>
+ <!--
+ @page { margin: 2cm }
+ TD P { margin-bottom: 0.21cm }
+ H1 { margin-bottom: 0.21cm; font-family: "Arial", sans-serif; font-size: 16pt }
+ P { margin-bottom: 0.21cm }
+ H2 { margin-bottom: 0.21cm; font-family: "Arial", sans-serif; font-size: 14pt; font-style: italic }
+ H3 { margin-bottom: 0.21cm; font-family: "Arial", sans-serif }
+ TH P { margin-bottom: 0.21cm; font-style: italic }
+ -->
+ </STYLE>
+</HEAD>
+<BODY LANG="en-US">
+<H1>The File Content Provider</H1>
+<H2>Preface</H2>
+<P>The File Content Provider (FCP), a Content Provider for the
+Universal ContentBroker (UCB), provides access to the local file
+system. It does this by providing file content objects, which
+represent either a directory or a file in the local file system. The
+FCP is able to restrict access to the file system to a number of
+directories shown to the client under configurable aliases.</P>
+<H2>File Contents</H2>
+<P>The FCP provides content representing either a <B>Directory</B> or
+<B>File</B> in the local file system.</P>
+<OL>
+ <LI><P>A directory contains other directories or files.</P>
+ <LI><P>A file is a container for document data/content. The FCP is
+ not able to determine the <I><FONT FACE="Courier, monospace">MediaType</FONT></I>
+ property of a file content.</P>
+</OL>
+<H2>Creation Of New File Contents</H2>
+<P>A content representing directories implements the interface
+<FONT FACE="Courier, monospace">XContentCreator</FONT>. A file
+content object supports the command „<I><FONT FACE="Courier, monospace">in<FONT FACE="Courier, monospace">s</FONT>ert.</FONT></I>
+To create a new directory/file in a directory:</P>
+<OL>
+ <LI><P>Let the parent directory create a new content by calling its
+ <FONT FACE="Courier, monospace">createNewContent</FONT> method. The
+ content type to use for new folders is
+ <B>application/vnd.sun.staroffice.fsys-folder</B>. To create a new
+ file, use the type string <B>application/vnd.sun.staroffice.fsys-file</B>.
+ As return value you get a new file content object.</P>
+ <LI><P STYLE="font-weight: medium">Set a title at the new file
+ content object. ( Let the new child execute a <FONT FACE="Courier, monospace">setPropertyValues</FONT>
+ – command, which sets at least the property„<I><FONT FACE="Courier, monospace">Title</FONT></I>
+ to a non-empty value ).</P>
+ <LI><P>Let the new file content object ( not the parent! ) execute
+ the command „<I><FONT FACE="Courier, monospace">insert</FONT></I>“.
+ This will create the corresponding physical file or directory. For
+ files, you need to supply the implementation of an <FONT FACE="Courier, monospace">XInputStream</FONT>
+ with the command's parameters, that provides access to the stream
+ data.</P>
+</OL>
+<H2>URL Schemes for File Contents</H2>
+<H3>The 'file' URL Scheme</H3>
+<P>Each file content has an identifier corresponding to the following
+scheme:</P>
+<P>file:///<path></P>
+<P>where <path> is a hierarchical path of the form</P>
+<P><name1>/<name>/.../<name>.</P>
+<P><B>The first part of <path> ( <name1> ) need not
+denote a physically existing directory, </B>but may be re-mapped to
+such a directory. If this is done, the FCP refuses file access for
+any URL whose <name1>-part is not an element of a predefined
+list of alias names.</P>
+<H3>The 'vnd.sun.star.wfs' URL Scheme</H3>
+<P>In the Sun ONE Webtop, the server side file system is addressed
+with vnd.sun.star.wfs URLs (wfs stands for <I>Webtop File System</I>),
+while the file URL scheme is reserved for a potential client side
+file system.</P>
+<P>In that scenario, a trick is used to completely hide the
+vnd.sun.star.wfs URL scheme from the FCP (i.e., the server side FCP
+internally works with file URLs, just like any other FCP): There is a
+special Remote Access Content Provider (RAP) between the UCB and the
+FCP. That RAP, among other things, can route requests to another UCP
+and rewrite URLs "on the fly." This feature is used here,
+so that the client of the UCB works with vnd.sun.star.wfs URLs and
+the FCP remains unmodified and works with file URLs, with a RAP in
+between that maps between those two URL schemes:</P>
+<P><IMG SRC="wfs.gif" NAME="Object1" ALIGN=LEFT WIDTH=533 HEIGHT=116 BORDER=0><BR CLEAR=LEFT>Except
+for the different scheme name, the syntax of the vnd.sun.star.wfs URL
+scheme is exactly the same as that of the file URL scheme.</P>
+<H2 STYLE="page-break-before: always">Appendix</H2>
+<P>The following table gives an overview of the different properties
+of file contents and the supported commands and interfaces.</P>
+<P><BR><BR>
+</P>
+<TABLE WIDTH=100% BORDER=1 BORDERCOLOR="#000000" CELLPADDING=4 CELLSPACING=0>
+ <COL WIDTH=20*>
+ <COL WIDTH=41*>
+ <COL WIDTH=63*>
+ <COL WIDTH=59*>
+ <COL WIDTH=72*>
+ <THEAD>
+ <TR VALIGN=TOP>
+ <TH WIDTH=8%>
+ <P><BR>
+ </P>
+ </TH>
+ <TH WIDTH=16%>
+ <P>UCB Type</P>
+ <P>(returned by XContent::getContentType )</P>
+ </TH>
+ <TH WIDTH=25%>
+ <P>Properties</P>
+ </TH>
+ <TH WIDTH=23%>
+ <P>Commands</P>
+ </TH>
+ <TH WIDTH=28%>
+ <P>Interfaces</P>
+ </TH>
+ </TR>
+ </THEAD>
+ <TBODY>
+ <TR VALIGN=TOP>
+ <TD WIDTH=8%>
+ <P>File</P>
+ </TD>
+ <TD WIDTH=16%>
+ <P>application/vnd.sun.staroffice.fsys-file</P>
+ </TD>
+ <TD WIDTH=25%>
+ <P>[readonly] ContentType</P>
+ <P>DateModified</P>
+ <P>[readonly] IsDocument</P>
+ <P>[readonly] IsFolder</P>
+ <P>Size</P>
+ <P>Title</P>
+ <P>IsReadOnly</P>
+ <P>IsVolume</P>
+ <P>IsRemoveable</P>
+ <P>IsRemote</P>
+ <P>IsCompactDisc</P>
+ <P>IsFloppy</P>
+ <P>IsHidden</P>
+ </TD>
+ <TD WIDTH=23%>
+ <P>getCommandInfo</P>
+ <P>getPropertySetInfo</P>
+ <P>getPropertyValues</P>
+ <P>setPropertyValues</P>
+ <P>insert</P>
+ <P>delete</P>
+ <P>open</P>
+ <P>transfer</P>
+ <P><BR>
+ </P>
+ </TD>
+ <TD WIDTH=28%>
+ <P>lang::<B>XServiceInfo</B></P>
+ <P>lang::<B>XComponent</B></P>
+ <P>ucb::<B>XContent</B></P>
+ <P>ucb::<B>XCommandProcessor</B></P>
+ <P>beans::<B>XPropertiesChangeNotifier</B></P>
+ <P>beans::<B>XPropertyContainer</B></P>
+ <P>beans::<B>XPropertySetInfoChangeNotifier</B></P>
+ <P>ucb::<B>XCommandInfoChangeNotifier</B></P>
+ <P>container::<B>XChild</B></P>
+ <P>ucb::<B>XContentCreator</B></P>
+ </TD>
+ </TR>
+ <TR VALIGN=TOP>
+ <TD WIDTH=8%>
+ <P>Directory</P>
+ </TD>
+ <TD WIDTH=16%>
+ <P>application/vnd.sun.staroffice.fsys-folder</P>
+ </TD>
+ <TD WIDTH=25%>
+ <P>[readonly] ContentType</P>
+ <P>DateModified</P>
+ <P>[readonly] IsDocument</P>
+ <P>[readonly] IsFolder</P>
+ <P>Size</P>
+ <P>Title</P>
+ <P>IsReadOnly</P>
+ <P>IsVolume</P>
+ <P>IsRemoveable</P>
+ <P>IsRemote</P>
+ <P>IsCompactDisc</P>
+ <P>IsFloppy</P>
+ <P>IsHidden</P>
+ </TD>
+ <TD WIDTH=23%>
+ <P>getCommandInfo</P>
+ <P>getPropertySetInfo</P>
+ <P>getPropertyValues</P>
+ <P>setPropertyValues</P>
+ <P>insert</P>
+ <P>delete</P>
+ <P>open</P>
+ <P><BR><BR>
+ </P>
+ <P><BR>
+ </P>
+ </TD>
+ <TD WIDTH=28%>
+ <P>lang::<B>XServiceInfo</B></P>
+ <P>lang::<B>XComponent</B></P>
+ <P>ucb::<B>XContent</B></P>
+ <P>ucb::<B>XCommandProcessor</B></P>
+ <P>beans::<B>XPropertiesChangeNotifier</B></P>
+ <P>beans::<B>XPropertyContainer</B></P>
+ <P>beans::<B>XPropertySetInfoChangeNotifier</B></P>
+ <P>ucb::<B>XCommandInfoChangeNotifier</B></P>
+ <P>container::<B>XChild</B></P>
+ <P><BR>
+ </P>
+ </TD>
+ </TR>
+ </TBODY>
+</TABLE>
+<P><BR><BR>
+</P>
+</BODY>
+</HTML>
\ No newline at end of file
Propchange: incubator/ooo/ooo-site/trunk/content/ucb/docs/ucp-ref/file-ucp.html
------------------------------------------------------------------------------
svn:eol-style = native
Added: incubator/ooo/ooo-site/trunk/content/ucb/docs/ucp-ref/ftp-contents.gif
URL: http://svn.apache.org/viewvc/incubator/ooo/ooo-site/trunk/content/ucb/docs/ucp-ref/ftp-contents.gif?rev=1206884&view=auto
==============================================================================
Binary file - no diff available.
Propchange: incubator/ooo/ooo-site/trunk/content/ucb/docs/ucp-ref/ftp-contents.gif
------------------------------------------------------------------------------
svn:mime-type = image/gif
Added: incubator/ooo/ooo-site/trunk/content/ucb/docs/ucp-ref/ftp-ucp.html
URL: http://svn.apache.org/viewvc/incubator/ooo/ooo-site/trunk/content/ucb/docs/ucp-ref/ftp-ucp.html?rev=1206884&view=auto
==============================================================================
--- incubator/ooo/ooo-site/trunk/content/ucb/docs/ucp-ref/ftp-ucp.html (added)
+++ incubator/ooo/ooo-site/trunk/content/ucb/docs/ucp-ref/ftp-ucp.html Sun Nov 27 22:36:56 2011
@@ -0,0 +1,219 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
+<HTML>
+<HEAD>
+ <META HTTP-EQUIV="CONTENT-TYPE" CONTENT="text/html; charset=iso-8859-1">
+ <TITLE></TITLE>
+ <META NAME="GENERATOR" CONTENT="StarOffice/5.2 (Win32)">
+ <META NAME="AUTHOR" CONTENT="Kai Sommerfeld">
+ <META NAME="CREATED" CONTENT="20000714;12280562">
+ <META NAME="CHANGEDBY" CONTENT="Kai Sommerfeld">
+ <META NAME="CHANGED" CONTENT="20010503;9550514">
+ <STYLE>
+ <!--
+ @page { size: 21cm 29.7cm; margin: 2cm }
+ H1 { margin-bottom: 0.21cm; font-family: "Arial", sans-serif; font-size: 16pt }
+ TH P { margin-bottom: 0.21cm; font-style: italic }
+ TD P { margin-bottom: 0.21cm }
+ H2 { margin-bottom: 0.21cm; font-family: "Arial", sans-serif; font-size: 14pt; font-style: italic }
+ P { margin-bottom: 0.21cm }
+ -->
+ </STYLE>
+</HEAD>
+<BODY>
+<H1>The FTP Content Provider</H1>
+<H2>Preface</H2>
+<P>The FTP Content Provider implements a Content Provider for the
+Universal Content Broker (UCB). It provides access to the contents
+(folders and documents) made available by FTP servers.</P>
+<H2>FTP Contents</H2>
+<P>The FTP Content Provider provides two different types of
+contents: <B>Folders</B><SPAN STYLE="font-weight: medium">
+and </SPAN><B>Documents.</B></P>
+<OL>
+ <LI><P>An FTP Folder is a content which represents a directory on an
+ FTP server. An FTP Folder never has a content stream, but it can
+ have both FTP Folders and FTP Documents as children.</P>
+ <LI><P>An FTP Document is a content which represents a single file
+ on an FTP server. An FTP Document always has a content stream and
+ never has children.</P>
+</OL>
+<H2><BR CLEAR=LEFT>Creation
+of New FTP Contents</H2>
+<P>FTP Folders implement the interface
+XContentCreator. FTP Folders and FTP Documents support the command
+'insert.' That way, all FTP Folders can create new
+FTP Folders and FTP Documents. To create a new child of an FTP Folder:</P>
+<OL>
+ <LI><P>Let the folder create a new content by calling its
+ createNewContent-method. The content type to use for new folders is
+ <B>application/vnd.sun.staroffice.ftp-folder.</B><SPAN STYLE="font-weight: medium">
+ To create a new document, use the type string
+ </SPAN><B>application/vnd.sun.staroffice.ftp-file.</B></P>
+ <LI><P STYLE="font-weight: medium">Set a title at the new folder or
+ document. (Let the new child execute a setPropertyValues-command
+ that sets at least the property 'Title' to a non-empty value).</P>
+ <LI><P><SPAN STYLE="font-weight: medium">Let the new child (not the
+ parent!) execute the command 'insert.' This will commit the creation
+ process. For documents, you need to supply an XInputStream (whose
+ contents will be transfered to the FTP server) with the command's
+ parameters</SPAN>.</P>
+</OL>
+<H2>URL Scheme for FTP Contents</H2>
+<P>Each FTP content has an identifier corresponding to the following
+scheme (see also RFCs 1738, 2234, 2396, and 2732):</P>
+<P><FONT FACE="Courier New, monospace">ftp-URL = "ftp://"
+login *("/" segment)</FONT></P>
+<P><FONT FACE="Courier New, monospace">login = [user [":"
+password] "@"] hostport</FONT></P>
+<P><FONT FACE="Courier New, monospace">user = *(escaped / unreserved
+/ "$" / "&" / "+" / "," /
+";" / "=")</FONT></P>
+<P STYLE="margin-bottom: 0cm"><FONT FACE="Courier New, monospace">password
+= *(escaped / unreserved / "$" / "&" / "+"
+/ "," / ";"</FONT></P>
+<P STYLE="margin-bottom: 0cm"><FONT FACE="Courier New, monospace">/
+"=")</FONT></P>
+<P><FONT FACE="Courier New, monospace">hostport = host [":"
+port]</FONT></P>
+<P><FONT FACE="Courier New, monospace">host = incomplete-hostname /
+hostname / IPv4address</FONT></P>
+<P><FONT FACE="Courier New, monospace">incomplete-hostname =
+*(domainlabel ".") domainlabel</FONT></P>
+<P><FONT FACE="Courier New, monospace">hostname = *(domainlabel ".")
+toplabel ["."]</FONT></P>
+<P><FONT FACE="Courier New, monospace">domainlabel = alphanum
+[*(alphanum / "-") alphanum]</FONT></P>
+<P><FONT FACE="Courier New, monospace">toplabel = ALPHA [*(alphanum /
+"-") alphanum]</FONT></P>
+<P><FONT FACE="Courier New, monospace">IPv4address = 1*3DIGIT "."
+1*3DIGIT "." 1*3DIGIT "." 1*3DIGIT</FONT></P>
+<P><FONT FACE="Courier New, monospace">port = *DIGIT</FONT></P>
+<P><FONT FACE="Courier New, monospace">segment = *pchar</FONT></P>
+<P STYLE="margin-bottom: 0cm"><FONT FACE="Courier New, monospace">pchar
+= escaped / unreserved / "$" / "&" / "+"
+/ "," / ":" / "="</FONT></P>
+<P STYLE="margin-bottom: 0cm"><FONT FACE="Courier New, monospace">/
+"@"</FONT></P>
+<P><FONT FACE="Courier New, monospace">escaped = "%" HEXDIG
+HEXDIG</FONT></P>
+<P><FONT FACE="Courier New, monospace">unreserved = alphanum / mark</FONT></P>
+<P><FONT FACE="Courier New, monospace">alphanum = ALPHA / DIGIT</FONT></P>
+<P><FONT FACE="Courier New, monospace">mark = "!" / "'"
+/ "(" / ")" / "*" / "-" / "."
+/ "_" / "~"</FONT></P>
+<P>FTP Folders and FTP Documents have a login part followed
+by one or more (nonempty) segments that <B><SPAN STYLE="font-style: normal">might
+be followed by a slash.</SPAN></B>
+<P>Examples:</P>
+<P><B>ftp://username@ftp.host/ </B><SPAN STYLE="font-weight: medium">The
+root-directory of user 'username' on the FTP server 'ftp.host.'</SPAN></P>
+<P STYLE="font-weight: medium"><B>ftp://ftp.host/pub/doc1.txt</B> A
+document on an anonymous FTP account.</P>
+<P STYLE="font-weight: medium"><B>ftp://username:password@ftp.host/secret-documents/</B>
+A folder within the account of user 'username,' with the password specified
+directly in the URL (works, but is not recommended).</P>
+<H2>Appendix</H2>
+<P>The following table gives an overview of the different FTP
+contents.</P>
+<TABLE WIDTH=100% BORDER=1 BORDERCOLOR="#000000" CELLPADDING=4 CELLSPACING=0>
+ <COL WIDTH=32*>
+ <COL WIDTH=55*>
+ <COL WIDTH=67*>
+ <COL WIDTH=51*>
+ <COL WIDTH=51*>
+ <THEAD>
+ <TR VALIGN=TOP>
+ <TH WIDTH=12%>
+ <P><BR>
+ </P>
+ </TH>
+ <TH WIDTH=21%>
+ <P>UCB Type</P>
+ <P>(returned by XContent::getContentType )</P>
+ </TH>
+ <TH WIDTH=26%>
+ <P>Properties</P>
+ </TH>
+ <TH WIDTH=20%>
+ <P>Commands</P>
+ </TH>
+ <TH WIDTH=20%>
+ <P>Interfaces</P>
+ </TH>
+ </TR>
+ </THEAD>
+ <TBODY>
+ <TR VALIGN=TOP>
+ <TD WIDTH=12%>
+ <P>Folder</P>
+ </TD>
+ <TD WIDTH=21%>
+ <P>application/vnd.sun.staroffice.ftp-folder</P>
+ </TD>
+ <TD WIDTH=26%>
+ <P>[readonly] ContentType</P>
+ <P>[readonly] IsDocument</P>
+ <P>[readonly] IsFolder</P>
+ <P>Title</P>
+ <P>[readonly] DateCreated</P>
+ </TD>
+ <TD WIDTH=20%>
+ <P>getCommandInfo</P>
+ <P>getPropertySetInfo</P>
+ <P>getPropertyValues</P>
+ <P>setPropertyValues</P>
+ <P>insert</P>
+ <P>delete</P>
+ <P>open</P>
+ </TD>
+ <TD WIDTH=20%>
+ <P>lang::<B>XTypeProvider</B></P>
+ <P>lang::<B>XServiceInfo</B></P>
+ <P>lang::<B>XComponent</B></P>
+ <P>ucb::<B>XContent</B></P>
+ <P>ucb::<B>XCommandProcessor</B></P>
+ <P>beans::<B>XPropertiesChangeNotifier</B></P>
+ <P>beans::<B>XPropertyContainer</B></P>
+ <P>beans::<B>XPropertySetInfoChangeNotifier</B></P>
+ <P>ucb::<B>XCommandInfoChangeNotifier</B></P>
+ <P>ucb::<B>XContentCreator</B></P>
+ <P>container::<B>XChild</B></P>
+ <P><BR>
+ </P>
+ </TD>
+ </TR>
+ <TR VALIGN=TOP>
+ <TD WIDTH=12%>
+ <P>Document</P>
+ </TD>
+ <TD WIDTH=21%>
+ <P>application/vnd.sun.staroffice.ftp-file</P>
+ </TD>
+ <TD WIDTH=26%>
+ <P>[readonly] ContentType</P>
+ <P>[readonly] IsDocument</P>
+ <P>[readonly] IsFolder</P>
+ <P>Title</P>
+ <P>[readonly] DateCreated</P>
+ <P>[readonly] DateModified</P>
+ <P>[readonly] IsReadOnly</P>
+ <P>[readonly] Size</P>
+ <P>MediaType</P>
+ </TD>
+ <TD WIDTH=20%>
+ <P>getCommandInfo</P>
+ <P>getPropertySetInfo</P>
+ <P>getPropertyValues</P>
+ <P>setPropertyValues</P>
+ <P>insert</P>
+ <P>delete</P>
+ <P>open</P>
+ </TD>
+ <TD WIDTH=20%>
+ <P>same as FTP Folder</P>
+ </TD>
+ </TR>
+ </TBODY>
+</TABLE>
+</BODY>
+</HTML>
\ No newline at end of file
Propchange: incubator/ooo/ooo-site/trunk/content/ucb/docs/ucp-ref/ftp-ucp.html
------------------------------------------------------------------------------
svn:eol-style = native
Added: incubator/ooo/ooo-site/trunk/content/ucb/docs/ucp-ref/help-ucp.html
URL: http://svn.apache.org/viewvc/incubator/ooo/ooo-site/trunk/content/ucb/docs/ucp-ref/help-ucp.html?rev=1206884&view=auto
==============================================================================
--- incubator/ooo/ooo-site/trunk/content/ucb/docs/ucp-ref/help-ucp.html (added)
+++ incubator/ooo/ooo-site/trunk/content/ucb/docs/ucp-ref/help-ucp.html Sun Nov 27 22:36:56 2011
@@ -0,0 +1,332 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
+<HTML>
+<HEAD>
+ <META HTTP-EQUIV="CONTENT-TYPE" CONTENT="text/html; charset=iso-8859-1">
+ <TITLE></TITLE>
+ <META NAME="GENERATOR" CONTENT="StarOffice/5.2 (Win32)">
+ <META NAME="CREATED" CONTENT="20010424;10314885">
+ <META NAME="CHANGEDBY" CONTENT="Kai Sommerfeld">
+ <META NAME="CHANGED" CONTENT="20010503;10153113">
+ <STYLE>
+ <!--
+ @page { size: 21cm 29.7cm; margin: 2cm }
+ H1 { margin-bottom: 0.21cm; font-family: "Arial", sans-serif; font-size: 16pt }
+ TD P { margin-bottom: 0.21cm }
+ H2 { margin-bottom: 0.21cm; font-family: "Arial", sans-serif; font-size: 14pt; font-style: italic }
+ P { margin-bottom: 0.21cm }
+ -->
+ </STYLE>
+</HEAD>
+<BODY>
+<H1>The Help Content Provider</H1>
+<H2><I>Preface</I></H2>
+<P STYLE="margin-bottom: 0cm">Currently, the Help Content Provider
+has the following responsibilities:</P>
+<P STYLE="margin-bottom: 0cm"><BR>
+</P>
+<OL>
+ <LI><P STYLE="margin-bottom: 0cm">It is the interface to a search
+ engine, which allows fulltext search and searching in more specific
+ scopes like headers. The range of accessible scopes depends on the
+ indexing process and is currently not changeable after setup.</P>
+ <LI><P STYLE="margin-bottom: 0cm">It delivers a keyword index to its
+ clients.</P>
+ <LI><P STYLE="margin-bottom: 0cm">Minor: It gives its clients the
+ modules, for which help is available.</P>
+</OL>
+<P STYLE="margin-bottom: 0cm"><BR>
+</P>
+<P STYLE="margin-bottom: 0cm">The actual help content has media type
+"text/html", with some images of type "image/gif"
+embedded. The content is generated on the fly from packed xml-files,
+which have to be transformed according to a xsl-transformation to
+produce the resulting XHTML. There is a cascading style sheet, used
+for formatting the XHTML files of media type "text/css".</P>
+<H2>Provided content</H2>
+<P>The above mentioned responsibilities are fulfilled by providing
+different kinds of content-objects to the client, namely a Root
+Content, giving general information about the installed help-files, a
+Module Content, serving as the interface to all search functionality,
+and Picture Contents and XHTML Contents, providing the actual content
+of the transformed help files and pictures. These contents are more
+specifically described below.
+</P>
+<H2><I>URL - scheme</I></H2>
+<P STYLE="margin-bottom: 0cm">The interface of the Help Content
+Provider is the usual one:</P>
+<P STYLE="margin-bottom: 0cm">One has to create a
+(X)ContentIdentifier from an URL in string form, and in turn a
+(X)Content with the help of the (X)ContentIdentifier. This (X)Content
+object has various properties and is able to execute a number of
+named commands, both listings dependent from the URL.</P>
+<P STYLE="margin-bottom: 0cm">The URL string encodes in a rather
+obvious way the information about the requested content and should
+have the following form ( given as a regular expression ):</P>
+<P STYLE="margin-bottom: 0cm"><BR>
+</P>
+<P STYLE="margin-bottom: 0cm"><FONT FACE="Courier New, monospace">URL
+ = scheme delimiter path? query? anchor?</FONT></P>
+<P STYLE="margin-bottom: 0cm"><FONT FACE="Courier New, monospace">scheme
+ = "vnd.sun.star.help"</FONT></P>
+<P STYLE="margin-bottom: 0cm"><FONT FACE="Courier New, monospace">delimiter
+ = "://" | ":/"</FONT></P>
+<P STYLE="margin-bottom: 0cm"><FONT FACE="Courier New, monospace">path
+ = module ( "/" id )?</FONT></P>
+<P STYLE="margin-bottom: 0cm"><FONT FACE="Courier New, monospace">query
+ = "?" key-value-list?</FONT></P>
+<P STYLE="margin-bottom: 0cm"><FONT FACE="Courier New, monospace">keyvaluelist
+= keyvalue ( "&" keyvalue )?</FONT></P>
+<P STYLE="margin-bottom: 0cm"><FONT FACE="Courier New, monospace">keyvalue
+ = key "=" value // See below for optional and mandatory
+keys and values</FONT></P>
+<P STYLE="margin-bottom: 0cm"><FONT FACE="Courier New, monospace">anchor
+ = "#" anchor-name</FONT></P>
+<P STYLE="margin-bottom: 0cm"><BR>
+</P>
+<P STYLE="margin-bottom: 0cm">Currently, to have a more fault
+tolerant system, some enveloping set of this is allowed, but without
+carrying more information.</P>
+<P STYLE="margin-bottom: 0cm"><BR>
+</P>
+<P STYLE="margin-bottom: 0cm">Examples:</P>
+<P STYLE="margin-bottom: 0cm"><BR>
+</P>
+<P STYLE="margin-bottom: 0cm"><B>vnd.sun.star.help://?System=WIN&Language=de</B></P>
+<P STYLE="margin-bottom: 0cm"><BR>
+</P>
+<P STYLE="margin-bottom: 0cm"><B>vnd.sun.star.help://swriter?System=WIN&Language=de&Query=text&HitCount=120&Scope=Heading</B></P>
+<P STYLE="margin-bottom: 0cm"><BR>
+</P>
+<P STYLE="margin-bottom: 0cm"><B>vnd.sun.star.help://portal/4711?System=UNIX&Language=en<SUP>_</SUP>US&HelpPrefix=http%3A%2F%2Fportal%2Fportal</B></P>
+<P STYLE="margin-bottom: 0cm"><BR>
+</P>
+<P STYLE="margin-bottom: 0cm">Some information should/must be given
+in every URL, namely the value of the keys "System"/"Language".</P>
+<P STYLE="margin-bottom: 0cm"><BR>
+</P>
+<P STYLE="margin-bottom: 0cm">"System" may be one of
+"UNIX","WIN","OS2" and "MAC".
+This key parametrizes the xsl-transformation applied to the
+help-files ( their content changes according to this parameter ) and
+is mandatory only for helpcontents delivering XHTML-files. This may
+change in the future.</P>
+<P STYLE="margin-bottom: 0cm"><BR>
+</P>
+<P STYLE="margin-bottom: 0cm">"Language" is coded as
+ISO639-language code, optionally followed by "-" and
+ISO3166-country code. Only the language code part of "Language"
+is used and determines directly the directory, where relative to the
+installation path the help files are found. In the following the term
+"help-directory" is used to determine the directory named
+"help" in the office/portal installation. The term
+"help-installation-directory" is used to denote the
+particular language dependent subdirectory of the help-directory,
+which contains the actual help-files as a packed jar-file, the index,
+configuration files and some other stuff not directly used by the
+help content provider.</P>
+<H2><I>Properties and Commands</I></H2>
+<P STYLE="margin-bottom: 0cm">Every content is able to execute the
+following commands ( not constrained to a particular URL-scheme )</P>
+<P STYLE="margin-bottom: 0cm"><BR>
+</P>
+<P STYLE="margin-bottom: 0cm">com::sun::star::ucb::XCommandInfo
+getCommandInfo( void )</P>
+<P STYLE="margin-bottom: 0cm">com::sun::star::beans::XPropertySetInfo
+getPropertySetInfo( void )</P>
+<P STYLE="margin-bottom: 0cm">com::sun::star::sdbc::XRow
+getPropertyValues( sequence< com::sun::star::beans::Property >
+)</P>
+<P STYLE="margin-bottom: 0cm">void setPropertyValues( sequence<
+com::sun::star::beans::PropertyValue > )</P>
+<P STYLE="margin-bottom: 0cm"><BR>
+</P>
+<P STYLE="margin-bottom: 0cm">These commands mainly repeat the
+information given in the following.</P>
+<P STYLE="margin-bottom: 0cm"><BR>
+</P>
+<P STYLE="margin-bottom: 0cm">It is most appropriate to explain for
+the given URL-examples the available properties and commands:</P>
+<P STYLE="margin-bottom: 0cm"><BR>
+</P>
+<P STYLE="margin-bottom: 0cm"><U>A: Root Content</U>
+</P>
+<P STYLE="margin-bottom: 0cm"><BR>
+</P>
+<P STYLE="margin-bottom: 0cm">Sample URL:
+<B>vnd.sun.star.help://?System=WIN&Language=de</B></P>
+<P STYLE="margin-bottom: 0cm"><BR>
+</P>
+<P STYLE="margin-bottom: 0cm"><B>Properties:</B></P>
+<P STYLE="margin-bottom: 0cm"><BR>
+</P>
+<P STYLE="margin-bottom: 0cm">Title string "root"
+</P>
+<P STYLE="margin-bottom: 0cm">IsFolder boolean true</P>
+<P STYLE="margin-bottom: 0cm">IsDocument boolean true</P>
+<P STYLE="margin-bottom: 0cm">ContentType string
+"application/vnd.sun.star.help"
+</P>
+<P STYLE="margin-bottom: 0cm">MediaType string "text/css"</P>
+<P STYLE="margin-bottom: 0cm"><BR>
+</P>
+<P STYLE="margin-bottom: 0cm"><B>Commands:</B></P>
+<P STYLE="margin-bottom: 0cm"><BR>
+</P>
+<P STYLE="margin-bottom: 0cm">XDynamicResultSet open(
+OpenCommandArgument2 )</P>
+<P STYLE="margin-bottom: 0cm"><BR>
+</P>
+<P STYLE="margin-bottom: 0cm">Return value of this command contains
+the modules available in the particular installation for the
+requested language. The modules are currently determined by looking
+for the files in the help-installation-directory matching "*.db"
+( with the exception of the file "picture.db" ). Quite
+generally, a module corresponds to a particular application, namely,
+if the writer-application is installed, there should be a module
+"vnd.sun.star.help://swriter" and so on.</P>
+<P STYLE="margin-bottom: 0cm"><BR>
+</P>
+<P STYLE="margin-bottom: 0cm">The written XOutputStream, or the set
+XInputStream ( set at XActiveDataSink ) make the cascading style
+sheet available, used to format the XHTML-files. Physically, the
+stream contains the content of the file "custom.css" in the
+help-directory of the office/portal-installation.</P>
+<P STYLE="margin-bottom: 0cm"><BR>
+</P>
+<P STYLE="margin-bottom: 0cm">Only the key "Language" is
+used, any other key may be set, but is ignored.</P>
+<P STYLE="margin-bottom: 0cm"><BR>
+</P>
+<P ALIGN=LEFT STYLE="margin-bottom: 0cm"><U>B: Module Content</U></P>
+<P ALIGN=LEFT STYLE="margin-bottom: 0cm"><BR>
+</P>
+<P ALIGN=LEFT STYLE="margin-bottom: 0cm"><SPAN STYLE="text-decoration: none">Sample
+URL:
+</SPAN><B>vnd.sun.star.help://swriter?System=WIN&Language=de&Query=text&HitCount=120&Scope=Heading</B></P>
+<P ALIGN=LEFT STYLE="margin-bottom: 0cm"><BR>
+</P>
+<P ALIGN=LEFT STYLE="margin-bottom: 0cm"><B>Properties:</B></P>
+<P STYLE="margin-bottom: 0cm"><BR>
+</P>
+<P STYLE="margin-bottom: 0cm">Title string determined from
+configuration file in help-installation-directory</P>
+<P STYLE="margin-bottom: 0cm">IsFolder boolean true</P>
+<P STYLE="margin-bottom: 0cm">IsDocument boolean false</P>
+<P STYLE="margin-bottom: 0cm">ContentType string
+"application/vnd.sun.star.help"
+</P>
+<P STYLE="margin-bottom: 0cm"><BR>
+</P>
+<P STYLE="margin-bottom: 0cm">KeywordList sequence< string >
+</P>
+<P STYLE="margin-bottom: 0cm">KeywordRef sequence< sequence<
+string > ></P>
+<P STYLE="margin-bottom: 0cm">KeywordAnchorForRef sequence<
+sequence< string > ></P>
+<P STYLE="margin-bottom: 0cm">KeywordTitleForRef sequence<
+sequence< string > ></P>
+<P STYLE="margin-bottom: 0cm">SearchScopes sequence< string ></P>
+<P STYLE="margin-bottom: 0cm"><BR>
+</P>
+<P STYLE="margin-bottom: 0cm">The help files contain specially marked
+key-words. The alphabetically sorted list of key-words is contained
+in the property "KeywordList".</P>
+<P STYLE="margin-bottom: 0cm">Suppose now you are looking for
+key-word "KeywordList[i]", where "i" is an
+integer. The help-module, in which this key-word should be found is
+determined by the module-part of the content-URL, "swriter"
+in our example. Now KeywordRef[i] contains a list of document-ids,
+where the document belonging to that id contains the key-word: string
+docid = KeywordRef[i][j]; The place in the XHTML-document, to which
+this particular key-word refers, is marked by an html-anchor-element:
+<A name="anchor"/> Here "anchor" is given
+by string anchor = KeywordAnchorForRef[i][j].</P>
+<P STYLE="margin-bottom: 0cm"><BR>
+</P>
+<P STYLE="margin-bottom: 0cm">So, for our example, the URL of the j
+document in the swriter-module containing the key-word Keyword[i] can
+be determined as
+<B>vnd.sun.star.help://swriter/docid?System=WIN&Language=de#anchor
+</B>The value of keys "HitCount", "Query" and key
+"Scope" are unimportant with regards to the key-words.
+Finally, the title of the resulting document can be determined
+directly, without having</P>
+<P STYLE="margin-bottom: 0cm">to instantiate the content, by the
+value of "KeywordTitleForRef[i][j]".</P>
+<P STYLE="margin-bottom: 0cm"><BR>
+</P>
+<P STYLE="margin-bottom: 0cm">The module contents are also the
+interface to the search engine. To this end a number of additional
+keys in the URL are necessary, namely the keys</P>
+<P STYLE="margin-bottom: 0cm">"HitCount", "Query"
+and "Scope". The value of "Scope" should be one
+of the strings given by the property "SearchScopes",
+currently either "Heading" or "FullText". Leaving
+the key undefined defaults to fulltext-search, setting it to
+"Heading" means search in document titles only. There may
+be any number of "Query"-key definitions in the URL. Many
+"Query"-keys determine a query searching first for
+documents containing all values, than searching for those containing
+only subsets of all values. The requested number of results is
+determined by the value of the key "HitCount", the actual
+returned number may be smaller. The interface to the results returned
+by the search engine is given by an XDynamicResultSet, which in turn
+is return value of</P>
+<P STYLE="margin-bottom: 0cm"><BR>
+</P>
+<P STYLE="margin-bottom: 0cm"><B>Commands:</B></P>
+<P STYLE="margin-bottom: 0cm"><BR>
+</P>
+<P STYLE="margin-bottom: 0cm">XDynamicResultSet open(
+OpenCommandArgument2 ),</P>
+<P STYLE="margin-bottom: 0cm"><BR>
+</P>
+<P STYLE="margin-bottom: 0cm"><U>C: XHTML Contents, Picture Contents</U></P>
+<P STYLE="margin-bottom: 0cm"><BR>
+</P>
+<P STYLE="margin-bottom: 0cm"><SPAN STYLE="text-decoration: none"><SPAN STYLE="font-weight: medium">Sample
+URL:</SPAN><B>
+</B></SPAN><B>vnd.sun.star.help://portal/4711?System=UNIX&Language=en<SUP>_</SUP>US&HelpPrefix=http%3A%2F%2Fportal%2Fportal%2F</B></P>
+<P STYLE="margin-bottom: 0cm"><BR>
+</P>
+<P STYLE="margin-bottom: 0cm"><B>Properties</B>:</P>
+<P STYLE="margin-bottom: 0cm"><BR>
+</P>
+<P STYLE="margin-bottom: 0cm">Title string determined from database</P>
+<P STYLE="margin-bottom: 0cm">IsFolder boolean false</P>
+<P STYLE="margin-bottom: 0cm">IsDocument boolean true</P>
+<P STYLE="margin-bottom: 0cm">ContentType string
+"application/vnd.sun.star.help"
+</P>
+<P STYLE="margin-bottom: 0cm">MediaType string "text/html"
+or "image/gif"</P>
+<P STYLE="margin-bottom: 0cm"><BR>
+</P>
+<P STYLE="margin-bottom: 0cm">The MediaType "image/gif"
+corresponds to an URL, which contains as module part "picture"
+( as opposed to "portal" in the example ).</P>
+<P STYLE="margin-bottom: 0cm"><BR>
+</P>
+<P STYLE="margin-bottom: 0cm"><B>Commands:</B></P>
+<P STYLE="margin-bottom: 0cm"><BR>
+</P>
+<P STYLE="margin-bottom: 0cm">void open( OpenCommandArgument2 )</P>
+<P STYLE="margin-bottom: 0cm"><BR>
+</P>
+<P STYLE="margin-bottom: 0cm">Returns the transformed XHTML-content,
+or the gif-content of a PictureContent.</P>
+<P STYLE="margin-bottom: 0cm"><BR>
+</P>
+<P STYLE="margin-bottom: 0cm">There is one special document for every
+module, namely those named "start" ( replace "4711"
+by "start" in our example ). It identifies the main help
+page for every module.</P>
+<P STYLE="margin-bottom: 0cm"><BR>
+</P>
+<P STYLE="margin-bottom: 0cm">There is an additional key named
+"HelpPrefix".If set, every link in a generated document
+pointing to another help-document ( either xhmtl- or image-document )
+is first encoded and then prefixed by the URL-decoded form of the
+value of this key. This key is only used by Sun OneWebtop.</P>
+</BODY>
+</HTML>
\ No newline at end of file
Propchange: incubator/ooo/ooo-site/trunk/content/ucb/docs/ucp-ref/help-ucp.html
------------------------------------------------------------------------------
svn:eol-style = native
Added: incubator/ooo/ooo-site/trunk/content/ucb/docs/ucp-ref/hierarchy-contents.gif
URL: http://svn.apache.org/viewvc/incubator/ooo/ooo-site/trunk/content/ucb/docs/ucp-ref/hierarchy-contents.gif?rev=1206884&view=auto
==============================================================================
Binary file - no diff available.
Propchange: incubator/ooo/ooo-site/trunk/content/ucb/docs/ucp-ref/hierarchy-contents.gif
------------------------------------------------------------------------------
svn:mime-type = image/gif
Added: incubator/ooo/ooo-site/trunk/content/ucb/docs/ucp-ref/hierarchy-ucp.html
URL: http://svn.apache.org/viewvc/incubator/ooo/ooo-site/trunk/content/ucb/docs/ucp-ref/hierarchy-ucp.html?rev=1206884&view=auto
==============================================================================
--- incubator/ooo/ooo-site/trunk/content/ucb/docs/ucp-ref/hierarchy-ucp.html (added)
+++ incubator/ooo/ooo-site/trunk/content/ucb/docs/ucp-ref/hierarchy-ucp.html Sun Nov 27 22:36:56 2011
@@ -0,0 +1,224 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
+<HTML>
+<HEAD>
+ <META HTTP-EQUIV="CONTENT-TYPE" CONTENT="text/html; charset=iso-8859-1">
+ <TITLE></TITLE>
+ <META NAME="GENERATOR" CONTENT="StarOffice/5.2 (Win32)">
+ <META NAME="AUTHOR" CONTENT="Kai Sommerfeld">
+ <META NAME="CREATED" CONTENT="20000714;12280562">
+ <META NAME="CHANGEDBY" CONTENT="Kai Sommerfeld">
+ <META NAME="CHANGED" CONTENT="20010503;10171433">
+ <STYLE>
+ <!--
+ @page { size: 21cm 29.7cm; margin: 2cm }
+ H1 { margin-bottom: 0.21cm; font-family: "Arial", sans-serif; font-size: 16pt }
+ TH P { margin-bottom: 0.21cm; font-style: italic }
+ TD P { margin-bottom: 0.21cm }
+ H2 { margin-bottom: 0.21cm; font-family: "Arial", sans-serif; font-size: 14pt; font-style: italic }
+ P { margin-bottom: 0.21cm }
+ -->
+ </STYLE>
+</HEAD>
+<BODY>
+<H1>The Hierarchy Content Provider</H1>
+<H2>Preface</H2>
+<P>The Hierarchy Content Provider ( HCP ) implements a Content
+Provider for the Universal Content Broker (UCB). It provides access
+to a persistent, customizable hierarchy of contents.</P>
+<H2>HCP Contents</H2>
+<P>The HCP provides three different types of contents: <B>Link</B>,
+<B>Folder</B> and <B>Root Folder</B>.</P>
+<OL>
+ <LI><P>A HCP Link is a content which „points“ to another
+ (UCB) content. It is always contained in HCP Folder. A HCP Link has
+ no children.</P>
+ <LI><P>A HCP Folder is a container for other HCP Folders and HCP
+ Links.</P>
+ <LI><P>There is at most one instance of a HCP Root Folder at a time.
+ All other HCP contents are children of this folder. The HCP Root
+ Folder can contain HCP Folders and HCP Links. It has the URL
+ „<B>vnd.sun.star.hier:/</B><SPAN STYLE="font-weight: medium">“.</SPAN></P>
+</OL>
+<P><IMG SRC="hierarchy-contents.gif" NAME="Graphic1" ALIGN=LEFT WIDTH=496 HEIGHT=231 BORDER=0><BR><BR>
+</P>
+<P><BR><BR>
+</P>
+<P><BR><BR>
+</P>
+<P><BR><BR>
+</P>
+<H2><BR><BR>
+</H2>
+<H2><BR><BR>
+</H2>
+<H2><BR><BR>
+</H2>
+<H2>Creation Of New HCP Contents</H2>
+<P>HCP Folders and the HCP Root Folder implement the interface
+XContentCreator. HCP Links and HCP Folders support the command
+„insert“. Thats why all HCP Folders and the HCP Root Folder
+as well can create new HCP Folders and HCP Links. To create a new
+child of a HCP Folder:</P>
+<OL>
+ <LI><P>Let the parent folder create a new content by calling its
+ createNewContent-method. The content type to use for new folders is
+ <B>application/vnd.sun.star.hier-folder</B><SPAN STYLE="font-weight: medium">.
+ To create a new link, use the type string
+ </SPAN><B>application/vnd.sun.star.hier-link</B><SPAN STYLE="font-weight: medium">.</SPAN></P>
+ <LI><P STYLE="font-weight: medium">Set a title at the new
+ folder/link. ( Let the new child execute a setPropertyValues –
+ command, which sets at least the property „Title“ to a
+ non-empty value ). For a link, you need to set the property
+ „TargetURL“ as well at this time to a non-empty value.</P>
+ <LI><P STYLE="font-weight: medium">Let the new child ( not the
+ parent! ) execute the command „insert“. This will commit
+ the creation process.</P>
+</OL>
+<H2>URL Scheme for HCP Contents</H2>
+<P>Each HCP content has an identifier corresponding to the following
+scheme:</P>
+<P>vnd.sun.star.hier:/<path></P>
+<P>where <path> is a hierarchical path of the form</P>
+<P><name>/<name>/.../<name></P>
+<P>where <name> is a string encoded according to the URL
+conventions.</P>
+<P><BR><BR>
+</P>
+<P STYLE="font-weight: medium">Examples:</P>
+<P STYLE="font-weight: medium"><B>vnd.sun.star.hier:/ </B>( The URL
+of the HCP Root Folder )</P>
+<P><B>vnd.sun.star.hier:/Bookmarks/Sun%20Microssystems%20Home%20Page</B></P>
+<P><B>vnd.sun.star.hier:/Workplace/Printers</B></P>
+<P><BR><BR>
+</P>
+<H2 STYLE="page-break-before: always">Appendix</H2>
+<P>The following table gives an overview of the different HCP
+contents.</P>
+<TABLE WIDTH=100% BORDER=1 BORDERCOLOR="#000000" CELLPADDING=4 CELLSPACING=0>
+ <COL WIDTH=35*>
+ <COL WIDTH=54*>
+ <COL WIDTH=64*>
+ <COL WIDTH=51*>
+ <COL WIDTH=51*>
+ <THEAD>
+ <TR VALIGN=TOP>
+ <TH WIDTH=14%>
+ <P><BR>
+ </P>
+ </TH>
+ <TH WIDTH=21%>
+ <P>UCB Type</P>
+ <P>(returned by XContent::getContentType )</P>
+ </TH>
+ <TH WIDTH=25%>
+ <P>Properties</P>
+ </TH>
+ <TH WIDTH=20%>
+ <P>Commands</P>
+ </TH>
+ <TH WIDTH=20%>
+ <P>Interfaces</P>
+ </TH>
+ </TR>
+ </THEAD>
+ <TBODY>
+ <TR VALIGN=TOP>
+ <TD WIDTH=14%>
+ <P>Link</P>
+ </TD>
+ <TD WIDTH=21%>
+ <P>application/vnd.sun.star.hier-link</P>
+ </TD>
+ <TD WIDTH=25%>
+ <P>[readonly] ContentType</P>
+ <P>[readonly] IsDocument</P>
+ <P>[readonly] IsFolder</P>
+ <P>Title</P>
+ <P>TargetURL
+ </P>
+ </TD>
+ <TD WIDTH=20%>
+ <P>getCommandInfo</P>
+ <P>getPropertySetInfo</P>
+ <P>getPropertyValues</P>
+ <P>setPropertyValues</P>
+ <P>insert</P>
+ <P>delete</P>
+ <P><BR>
+ </P>
+ </TD>
+ <TD WIDTH=20%>
+ <P>lang::<B>XTypeProvider</B>,</P>
+ <P>lang::<B>XServiceInfo</B>,</P>
+ <P>lang::<B>XComponent</B>,</P>
+ <P>ucb::<B>XContent</B>,</P>
+ <P>ucb::<B>XCommandProcessor</B>,</P>
+ <P>beans::<B>XPropertiesChangeNotifier</B>,</P>
+ <P>beans::<B>XPropertyContainer</B>,</P>
+ <P>beans::<B>XPropertySetInfoChangeNotifier</B>,</P>
+ <P>ucb::<B>XCommandInfoChangeNotifier</B>,</P>
+ <P>container::<B>XChild</B></P>
+ </TD>
+ </TR>
+ <TR VALIGN=TOP>
+ <TD WIDTH=14%>
+ <P>Folder</P>
+ </TD>
+ <TD WIDTH=21%>
+ <P>application/vnd.sun.star.hier-folder</P>
+ </TD>
+ <TD WIDTH=25%>
+ <P>[readonly] ContentType</P>
+ <P>[readonly] IsDocument</P>
+ <P>[readonly] IsFolder</P>
+ <P>Title
+ </P>
+ </TD>
+ <TD WIDTH=20%>
+ <P>getCommandInfo</P>
+ <P>getPropertySetInfo</P>
+ <P>getPropertyValues</P>
+ <P>setPropertyValues</P>
+ <P>insert</P>
+ <P>delete</P>
+ <P>open</P>
+ <P>transfer*</P>
+ </TD>
+ <TD WIDTH=20%>
+ <P><B>same as HCP Link</B></P>
+ <P>plus ucb::<B>XContentCreator</B></P>
+ </TD>
+ </TR>
+ <TR VALIGN=TOP>
+ <TD WIDTH=14%>
+ <P>Root Folder</P>
+ </TD>
+ <TD WIDTH=21%>
+ <P>application/vnd.sun.star.hier-folder</P>
+ </TD>
+ <TD WIDTH=25%>
+ <P>[readonly] ContentType</P>
+ <P>[readonly] IsDocument</P>
+ <P>[readonly] IsFolder</P>
+ <P>Title
+ </P>
+ </TD>
+ <TD WIDTH=20%>
+ <P>getCommandInfo</P>
+ <P>getPropertySetInfo</P>
+ <P>getPropertyValues</P>
+ <P>setPropertyValues</P>
+ <P>open</P>
+ <P>transfer*</P>
+ </TD>
+ <TD WIDTH=20%>
+ <P><B>same as HCP Folder</B></P>
+ </TD>
+ </TR>
+ </TBODY>
+</TABLE>
+<P STYLE="font-weight: medium">*) The „transfer“ command
+only transfers HCP-contents to HCP folders. It does not handle
+contents with a URL scheme other then the HCP-URL-scheme.</P>
+</BODY>
+</HTML>
\ No newline at end of file
Propchange: incubator/ooo/ooo-site/trunk/content/ucb/docs/ucp-ref/hierarchy-ucp.html
------------------------------------------------------------------------------
svn:eol-style = native
Added: incubator/ooo/ooo-site/trunk/content/ucb/docs/ucp-ref/odma-ucp.gif
URL: http://svn.apache.org/viewvc/incubator/ooo/ooo-site/trunk/content/ucb/docs/ucp-ref/odma-ucp.gif?rev=1206884&view=auto
==============================================================================
Binary file - no diff available.
Propchange: incubator/ooo/ooo-site/trunk/content/ucb/docs/ucp-ref/odma-ucp.gif
------------------------------------------------------------------------------
svn:mime-type = image/gif