07-23-2010 06:08 AM
<types>
<type name="az:doc">
<parent>cm:content</parent>
<properties>
<property name="az:version">
<type>d:text</type>
</property>
<property name="az:date">
<type>d:date</type>
</property>
</properties>
<associations>
<child-association name="az:azerty">
<source>
<mandatory>true</mandatory>
<many>false</many>
</source>
<target>
<class>az:model</class>
<mandatory>false</mandatory>
<many>false</many>
</target>
<duplicate>false</duplicate>
<propagateTimestamps>true</propagateTimestamps>
</child-association>
</associations>
<mandatory-aspects>
<aspect>cm:versionable</aspect>
<aspect>cm:auditable</aspect>
</mandatory-aspects>
</type>
<type name="az:model">
<title>Proof Reading</title>
<parent>cm:content</parent>
<properties>
<property name="az:fr">
<type>d:text</type>
</property>
</properties>
</type>
</types>
<config evaluator="node-type" condition="az:doc">
<property-sheet>
<show-property name="az:version" show-in-edit-mode="true" />
<show-property name="az:date" show-in-edit-mode="true" />
<show-child-association name="az:azerty" component-generator="ChildAssociationGenerator" />
</property-sheet>
</config>
<config evaluator="node-type" condition="az:model">
<property-sheet>
<show-property name="az:fr" />
<show-child-association name="az:azerty" show-in-edit-mode="false" />
</property-sheet>
</config>07-26-2010 06:54 AM
07-26-2010 09:54 AM
<%– Content list –%>
<a:richList id="contentRichList"
binding="#{BrowseBean.contentRichList}"
viewMode="#{BrowseBean.browseViewMode}"
pageSize="#{BrowseBean.pageSizeContent}"
styleClass="recordSet"
headerStyleClass="recordSetHeader"
rowStyleClass="recordSetRow"
altRowStyleClass="recordSetRowAlt"
width="100%"
value="#{BrowseBean.content}"
var="r"> for (FileInfo fileInfo : children)
{
// create our Node representation from the NodeRef
NodeRef nodeRef = fileInfo.getNodeRef();
// find it's type so we can see if it's a node we are interested in
QName type = this.getNodeService().getType(nodeRef);
// make sure the type is defined in the data dictionary
TypeDefinition typeDef = this.getDictionaryService().getType(type);
if (typeDef != null)
{
MapNode node = null;
[b]// look for File content node[/b]
if (this.getDictionaryService().isSubClass(type, ContentModel.TYPE_CONTENT))
{
// create our Node representation
node = new MapNode(nodeRef, this.getNodeService(), fileInfo.getProperties());
setupCommonBindingProperties(node);
[b][i] Rajouter ici :
si (noeud de mon type perso)
alors
si(noeud a des enfants)
this.contentNodes.add(enfant);
fin si[/i]
[/b]
this.contentNodes.add(node);
}
07-26-2010 05:12 PM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.