04-21-2006 04:11 AM
String[] aspectos = row.getNode().getAspects();04-21-2006 05:44 AM
<aspect name="cm:localizable">
<title>Localizable</title>
<properties>
<property name="cm:locale">
<title>Locale</title>
<!– need to have means to identify root instance of appropriate category –>
<type>d:category</type>
</property>
</properties>
</aspect><aspect name="cm:translatable">
<title>Translatable</title>
<parent>cm:localizable</parent>
<!– TODO: Support mandatory-aspects on an aspect in the meta-model
<mandatory-aspects>
<aspect>cm:localizable</aspect>
</mandatory-aspects>
–>
<associations>
<association name="cm:translations">
<title>Translations</title>
<source>
<role>cm:translationOf</role>
<mandatory>false</mandatory>
<many>false</many>
</source>
<target>
<class>cm:content</class>
<role>cm:hasTranslation</role>
<mandatory>false</mandatory>
<many>true</many>
</target>
</association>
</associations>
</aspect>Query queryAS = new Query(QueryLanguageEnum.lucene,"ASPECT:\"{http://www.alfresco.org/model/content/1.0}imagenNot\"");04-24-2006 06:56 AM
04-24-2006 11:47 AM
queryAssociated
Execute a query to retrieve associated resources of the specified resource.
QueryResult queryAssociated(Reference node, Association[] association)
Parameters:
* node - the reference
* associatoin - the association
Return:
* a query result containing the references associatied to the specified reference Association
* associationType - cms:Name
* direction - string (source, target)
The Reference is not problem, BUT….How i create an Association[]?
04-24-2006 12:29 PM
RepositoryServiceSoapBindingStub repositoryService = WebServiceFactory.getRepositoryService();
Association[] assoc = new Association[10];
Reference reference = new Reference(STORE, row.getNode().getId(), null);
QueryResult queryAssoc = repositoryService.queryAssociated(reference, assoc);
ResultSet resultSetAssoc = queryAssoc.getResultSet();Association[] assoc = new Association[10];
assoc[0].setAssociationType(tipo);05-02-2006 06:46 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.