Eléments d'un flux de modèle
Ces sections présentent des exemples de flux pour les différents modèles.
Pour en savoir plus sur les informations affichées par les flux, voir la section Mappage d'éléments de flux aux éléments de la SPI de modèle.
Flux de modèle de contenu
Pour obtenir des informations sur le modèle de contenu, vous devez envoyer une requête HTTP GET au gestionnaire de contenu avec le schéma de modèle cm.
Exemple - Flux de modèle de contenu pour le noeud racine de modèle de contenu :
<?xml version="1.0" encoding="UTF-8"?>
<atom:feed xmlns:atom="http://www.w3.org/2005/Atom"
xml:base="http://yourservername:10039/wps/mycontenthandler"
xmlns:thr="http://purl.org/syndication/thread/1.0"
xmlns:xhtml="http://www.w3.org/1999/xhtml"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:portal="http://www.ibm.com/xmlns/prod/websphere/portal/v6.0.1/portal-model"
xmlns:model="http://www.ibm.com/xmlns/prod/websphere/portal/v6.0.1/portal-model-elements"
xmlns:base="http://www.ibm.com/xmlns/prod/websphere/portal/v6.0/ibm-portal-composite-base">
<atom:author>
<atom:name>HCL Digital Experience Portal/6.1</atom:name>
</atom:author>
<atom:title>HCL Digital Experience Portal Model Feed</atom:title>
<atom:id>cm:oid:6_000000000000000000000000A0</atom:id>
<atom:link href="?uri=cm:oid:6_000000000000000000000000A0&mode=download&levels=1&rep=compact"
rel="self" type="application/atom+xml"/>
<atom:updated>2008-02-26T06:36:02.239Z</atom:updated>
<atom:entry>
<atom:title>Content Root</atom:title>
<atom:id portal:uniquename="wps.content.root">cm:oid:6_000000000000000000000000A0</atom:id>
<atom:published>2002-05-31T22:00:00.000Z</atom:published>
<atom:updated>2008-02-26T06:36:02.239Z</atom:updated>
<atom:content type="application/xml">
<model:content-label>
<model:title>
<base:nls-string xml:lang="de">[G'Content Root13:48, 3 Mar 2008 (
W. Europe Standard Time)İı|]</base:nls-string>
<base:nls-string xml:lang="fr-fr">Content Root</base:nls-string>
</model:title>
<model:active>true</model:active>
<model:supportedMarkup>wml</model:supportedMarkup>
<model:supportedMarkup>html</model:supportedMarkup>
</model:content-label>
</atom:content>
<atom:link href="?uri=cm:oid:6_000000000000000000000000A0&mode=download&levels=2&rep=compact"
rel="replies" type="application/atom+xml"/>
<atom:link portal:rel="contextMenu"
portal:uri="wp.operations:page:oid:6_000000000000000000000000A0"
portal:uniquename="wps.content.root"
href="?uri=wp.operations:page:oid:6_000000000000000000000000A0&mode=download"
rel="related" type="application/vnd.mozilla.xul+xml"/>
</atom:entry>
</atom:feed>
Flux de modèle de présentation
Pour obtenir des informations sur le modèle de disposition, envoyez une requête HTTP GET au gestionnaire de contenu avec le schéma de modèle lm.
Exemple - Flux du modèle de présentation pour un noeud racine de modèle de présentation d'un noeud de contenu spécifique
<?xml version="1.0" encoding="UTF-8"?>
<atom:feed xmlns:atom="http://www.w3.org/2005/Atom"
xml:base="http://yourservername:10039/wps/mycontenthandler"
xmlns:thr="http://purl.org/syndication/thread/1.0"
xmlns:xhtml="http://www.w3.org/1999/xhtml"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:portal="http://www.ibm.com/xmlns/prod/websphere/portal/v6.0.1/portal-model"
xmlns:model="http://www.ibm.com/xmlns/prod/websphere/portal/v6.0.1/portal-model-elements"
xmlns:base="http://www.ibm.com/xmlns/prod/websphere/portal/v6.0/ibm-portal-composite-base">
<atom:author>
<atom:name>HCL Digital Experience Portal/6.1</atom:name>
</atom:author>
<atom:title>HCL Digital Experience Portal Model Feed</atom:title>
<atom:id>lm:oid:6_CGAH47L00GD87023IKNDD41G65</atom:id>
<atom:link href="?uri=lm:oid:6_CGAH47L00GD87023IKNDD41G65&mode=download&levels=1&rep=compact"
rel="self" type="application/atom+xml"/>
<atom:updated>2008-02-24T03:30:17.059Z</atom:updated>
<atom:entry>
<atom:title>7_CGAH47L00GD87023IKNDD41G67</atom:title>
<atom:id>lm:oid:7_CGAH47L00GD87023IKNDD41G67@oid:6_CGAH47L00GD87023IKNDD41G65</atom:id>
<atom:published>2008-02-24T03:30:16.817Z</atom:published>
<atom:updated>2008-02-24T03:30:16.862Z</atom:updated>
<atom:content type="application/xml">
<model:layout-container>
<model:metadata name="ORIENTATION">
<base:value xsi:type="base:String" value="Horizontal"/>
</model:metadata>
<model:templateName>UnlayeredContainer-H</model:templateName>
<model:deletable>true</model:deletable>
<model:deletableFlag>true</model:deletableFlag>
<model:modifiable>true</model:modifiable>
<model:modifiableFlag>true</model:modifiableFlag>
<model:containerChild>true</model:containerChild>
<model:controlChild>false</model:controlChild>
</model:layout-container>
</atom:content>
<atom:link portal:uri="lm:oid:7_CGAH47L00GD87023IKNDD41G67@oid:6_CGAH47L00GD87023IKNDD41G65"
href="/wps/mypoc/!ut/p/lm/oid:7_CGAH47L00GD87023IKNDD41G67@oid:6_CGAH47L00GD87023IKNDD41G65?uri
=lm%3aoid%3a7_CGAH47L00GD87023IKNDD41G67%40oid%3a6_CGAH47L00GD87023IKNDD41G65&mode=view"
type="text/html"/>
<atom:link href="?uri=lm:oid:7_CGAH47L00GD87023IKNDD41G67@oid:6_CGAH47L00GD87023IKNDD41G65&mode=download&levels=2&rep=compact"
rel="replies" type="application/atom+xml"/>
</atom:entry>
<atom:entry>
....
</atom:entry>
<model:allPortletsAllowed>true</model:allPortletsAllowed>
<atom:link portal:uri="wm:oid:6_CGAH47L00GD87023IKNDD41G65"
portal:uniquename="ibm.portal.Home.Web20Introduction"
href="?uri=wm:oid:6_CGAH47L00GD87023IKNDD41G65&mode=download&rep=compact"
rel="related" type="application/atom+xml"/>
</atom:feed>
Flux de modèle de navigation
Pour obtenir des informations sur le modèle de navigation, envoyez une requête HTTP GET au gestionnaire de contenu avec le schéma de modèle nm.
Exemple - Flux de modèle de navigation pour le noeud racine de modèle de navigation
<?xml version="1.0" encoding="UTF-8"?>
<atom:feed xmlns:atom="http://www.w3.org/2005/Atom"
xml:base="http://yourservername:10039/wps/mycontenthandler"
xmlns:thr="http://purl.org/syndication/thread/1.0"
xmlns:xhtml="http://www.w3.org/1999/xhtml"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:portal="http://www.ibm.com/xmlns/prod/websphere/portal/v6.0.1/portal-model"
xmlns:model="http://www.ibm.com/xmlns/prod/websphere/portal/v6.0.1/portal-model-elements"
xmlns:base="http://www.ibm.com/xmlns/prod/websphere/portal/v6.0/ibm-portal-composite-base">
<atom:author>
<atom:name>HCL Digital Experience Portal/6.1</atom:name>
</atom:author>
<atom:title>HCL Digital Experience Portal Model Feed</atom:title>
<atom:id>nm:oid:6_000000000000000000000000A0</atom:id>
<atom:link href="?uri=nm:oid:6_000000000000000000000000A0&mode=download&levels=1&rep=compact"
rel="self" type="application/atom+xml"/>
<atom:updated>2008-03-02T19:02:43.754Z</atom:updated>
<atom:entry>
<atom:title>Content Root</atom:title>
<atom:id portal:uniquename="wps.content.root">nm:oid:6_000000000000000000000000A0</atom:id>
<atom:published>2002-05-31T22:00:00.000Z</atom:published>
<atom:updated>2008-03-02T19:02:43.754Z</atom:updated>
<atom:content type="application/xml">
<model:navigation-node>
<model:title>
<base:nls-string xml:lang="de">[G'ontent Root~~~~~İı|]</base:nls-string>
<base:nls-string xml:lang="fr-fr">Content Root</base:nls-string>
</model:title>
</model:navigation-node>
</atom:content>
<atom:link portal:rel="label" portal:uri="cm:oid:6_000000000000000000000000A0"
portal:uniquename="wps.content.root"
href="?uri=cm:oid:6_000000000000000000000000A0&mode=download&levels=1&rep=compact"
rel="related" type="application/atom+xml"/>
<atom:link href="?uri=nm:oid:6_000000000000000000000000A0&mode=download&levels=2&rep=compact"
rel="replies" type="application/atom+xml"/>
<atom:link portal:rel="contextMenu" portal:uri="wp.operations:page:oid:6_000000000000000000000000A0"
portal:uniquename="wps.content.root"
href="?uri=wp.operations:page:oid:6_000000000000000000000000A0&mode=download"
rel="related" type="application/vnd.mozilla.xul+xml"/>
</atom:entry>
</atom:feed>