12-04-2012 03:42 AM
<aspect name="erry:contentScan">
<title>Content Scan</title>
<!–
<properties>
<property name="erry:ruleFile">
<title>rule file</title>
<type>d:noderef</type>
<mandatory>true</mandatory>
</property>
</properties>
–>
<associations>
<association name="erry:ruleFile">
<source>
<mandatory>false</mandatory>
<many>false</many>
</source>
<target>
<class>erry:devDoc</class>
<mandatory>true</mandatory>
<many>false</many>
</target>
</association>
</associations>
</aspect>
added the aspect into some files, and maintain the erry:ruleFile parameters in aspect
NodeService ns = serviceRegistry.getNodeService();
NodeRef childNodeRef = childAssocRef.getChildRef();
NodeRef parentNodeRef = childAssocRef.getParentRef();
serviceRegistry.getAuthenticationService().authenticate(GlobalContext.userName, GlobalContext.password.toCharArray());
QName qname = QName.createQName("http://www.erry.com/model/1.0", "ruleFile");
List<ChildAssociationRef> ruleFileNodes = ns.getChildAssocs(parentNodeRef,qname , RegexQNamePattern.MATCH_ALL);
12-04-2012 12:05 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.