As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
String[] aspectos = row.getNode().getAspects();
<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\"");
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)
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);