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.
protected static final Reference SAMPLE_FOLDER = new Reference(STORE, null, "/app:company_home/cm:sample_folder");
avm://mywebproject/-1;www;avm_webapps;ROOT;articles
Query query = new Query(Constants.QUERY_LANG_LUCENE, "+PARENT:\"/avm://mywebproject/-1;www;avm_webapps;ROOT;articles\"");
Reference ref = new Reference(STORE, uuid_folder, null); QueryResult resultado = WebServiceFactory.getRepositoryService().queryChildren(ref); if (resultado != null) { ResultSet resultset = resultado.getResultSet(); if (resultset.getRows() != null) { for (ResultSetRow row : resultset.getRows()) { for (NamedValue nm : row.getColumns()) { System.out.println(nm.getName() + " = " + nm.getValue()); } } } }
{http://www.alfresco.org/model/wcmappmodel/1.0}username = admin {http://www.alfresco.org/model/system/1.0}node-uuid = 105aa31d-3f93-11dc-9bd4-9980daf60ad1 {http://www.alfresco.org/model/system/1.0}node-dbid = 475 {http://www.alfresco.org/model/system/1.0}store-protocol = workspace {http://www.alfresco.org/model/content/1.0}name = 105aa31d-3f93-11dc-9bd4-9980daf60ad1 {http://www.alfresco.org/model/system/1.0}store-identifier = SpacesStore {http://www.alfresco.org/model/wcmappmodel/1.0}role = ContentManager associationType = {http://www.alfresco.org/model/wcmappmodel/1.0}webuser associationName = {http://www.alfresco.org/model/wcmappmodel/1.0}webuser isPrimary = true nthSibling = 0 {http://www.alfresco.org/model/content/1.0}path = /{http://www.alfresco.org/model/application/1.0}company_home/ {http://www.alfresco.org/model/application/1.0}wcm/ {http://www.alfresco.org/model/content/1.0}myWebProject/ {http://www.alfresco.org/model/wcmappmodel/1.0}webuser {http://www.alfresco.org/model/content/1.0}description = {http://www.alfresco.org/model/system/1.0}node-uuid = 10a95f71-3f93-11dc-9bd4-9980daf60ad1 {http://www.alfresco.org/model/system/1.0}node-dbid = 476 {http://www.alfresco.org/model/content/1.0}title = article {http://www.alfresco.org/model/wcmappmodel/1.0}formname = article {http://www.alfresco.org/model/wcmappmodel/1.0}outputpathpattern = ${name}.xml {http://www.alfresco.org/model/system/1.0}store-protocol = workspace {http://www.alfresco.org/model/content/1.0}name = 10a95f71-3f93-11dc-9bd4-9980daf60ad1 {http://www.alfresco.org/model/system/1.0}store-identifier = SpacesStore associationType = {http://www.alfresco.org/model/wcmappmodel/1.0}webform associationName = {http://www.alfresco.org/model/wcmappmodel/1.0}webform isPrimary = true nthSibling = 1 {http://www.alfresco.org/model/content/1.0}path = /{http://www.alfresco.org/model/application/1.0}company_home/ {http://www.alfresco.org/model/application/1.0}wcm/{http://www.alfresco.org/model/content/1.0} myWebProject/{http://www.alfresco.org/model/wcmappmodel/1.0}webform {http://www.alfresco.org/model/wcmappmodel/1.0}workflowname = jbpm$wcmwf:submit {http://www.alfresco.org/model/system/1.0}node-uuid = 10c12d3e-3f93-11dc-9bd4-9980daf60ad1 {http://www.alfresco.org/model/system/1.0}node-dbid = 479 {http://www.alfresco.org/model/system/1.0}store-protocol = workspace {http://www.alfresco.org/model/wcmappmodel/1.0}workflowdefaultproperties = contentUrl=store://2007/7/31/14/22/10c37731-3f93-11dc-9bd4-9980daf60ad1.bin| mimetype=application/octet-stream|size=701|encoding=UTF-8|locale=en_US_ {http://www.alfresco.org/model/wcmappmodel/1.0}filenamepattern = .* {http://www.alfresco.org/model/content/1.0}name = 10c12d3e-3f93-11dc-9bd4-9980daf60ad1 {http://www.alfresco.org/model/system/1.0}store-identifier = SpacesStore associationType = {http://www.alfresco.org/model/wcmappmodel/1.0}webworkflowdefaults associationName = {http://www.alfresco.org/model/wcmappmodel/1.0}webworkflowdefaults isPrimary = true nthSibling = 2 {http://www.alfresco.org/model/content/1.0}path = /{http://www.alfresco.org/model/application/1.0}company_home/ {http://www.alfresco.org/model/application/1.0}wcm/ {http://www.alfresco.org/model/content/1.0}myWebProject/ {http://www.alfresco.org/model/wcmappmodel/1.0}webworkflowdefaults Result 1: id=105aa31d-3f93-11dc-9bd4-9980daf60ad1; name=105aa31d-3f93-11dc-9bd4-9980daf60ad1; description=null; created=null; url=null Result 2: id=10a95f71-3f93-11dc-9bd4-9980daf60ad1; name=10a95f71-3f93-11dc-9bd4-9980daf60ad1; description=; created=null; url=null Result 3: id=10c12d3e-3f93-11dc-9bd4-9980daf60ad1; name=10c12d3e-3f93-11dc-9bd4-9980daf60ad1; description=null; created=null; url=null
Store STORE = new Store("avm", "myWebProject"); Reference reference = new Reference(STORE, null, "/cm:www/cm:avm_webapps/cm:ROOT");