12-13-2012 02:48 AM
12-13-2012 03:36 AM
<!– –>
<!– Indexing control –>
<!– –>
<aspect name="cm:indexControl">
<title>Index Control</title>
<properties>
<property name="cm:isIndexed">
<title>Is indexed</title>
<type>d:boolean</type>
<default>true</default>
</property>
<property name="cm:isContentIndexed">
<title>Is content indexed</title>
<type>d:boolean</type>
<default>true</default>
</property>
</properties>
</aspect>
NodeService nodeService = uirnetBl.getNodeService();
QName contentTypeQname = QName.createQName(<yourModelNamespace>, <yourCustomType>);
Map<QName, Serializable> properties = new HashMap<QName, Serializable>();
properties.put(ContentModel.PROP_NAME, tempFileOut.getName());
properties.put(ContentModel.PROP_IS_INDEXED, false);
properties.put(ContentModel.PROP_IS_CONTENT_INDEXED, false);
ChildAssociationRef children = nodeService.createNode(parent.getNodeRef(), ContentModel.ASSOC_CONTAINS,
DataDictionaryHelper.getAssocNameFromFileName(tempFileOut.getName()), contentTypeQname, properties);
NodeRef newNode = children.getChildRef();
ContentWriter writer = contentService.getWriter(newNode, ContentModel.PROP_CONTENT, true);
12-14-2012 12:32 AM
12-14-2012 02:42 AM
public static QName getAssocNameFromFileName(String name) {
// TODO: convert name to ISOwhatever encoding
return QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, name);
}
Regards,12-14-2012 04:19 AM
12-14-2012 04:24 AM
12-14-2012 04:34 AM
Hi,
I can't see your screenshot, but from Alfresco Web Client try with an advanced search based on content
Regards,
Andrea
<type name="cm:content">
<title>Content</title>
<parent>cm:cmobject</parent>
<archive>true</archive>
<properties>
<property name="cm:content">
<type>d:content</type>
<mandatory>false</mandatory>
<!– Although content is marked as indexed atomically it may end up asynchronous –>
<!– if the content conversion will take too long. Content that does not require conversion –>
<!– to UTF8 test/plain will always be indexed atomically –>
<index enabled="false">
<atomic>true</atomic>
<stored>false</stored>
<tokenised>true</tokenised>
</index>
</property>
</properties>
</type>
12-14-2012 04:45 AM
12-14-2012 04:47 AM
<config evaluator="node-type" condition="<yourCustomNameSpace:yourCustomTyoe>">
<property-sheet>
<show-property name="yourCustomNameSpace:prop1"/>
<show-property name="yourCustomNameSpace:prop2"/>
</property-sheet>
</config>
Here http://wiki.alfresco.com/wiki/Advanced_Search_Custom_Attributes more info about this.12-14-2012 04:51 AM
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.