07-10-2009 05:17 AM
private Node getReportNode(Node noda) {
String path = noda.getPath();
path = path.replaceAll("\\{http://www.alfresco.org/model/application/1.0\\}", "app:");
path = path.replaceAll("\\{http://www.alfresco.org/model/content/1.0\\}", "cm:");
String query = "PATH:\"" + path + ".xml\"";
StoreRef storeRef = new StoreRef(StoreRef.PROTOCOL_WORKSPACE, "SpacesStore");
ResultSet resultSet = getSearchService().query(storeRef, SearchService.LANGUAGE_LUCENE, query);
for (ResultSetRow row : resultSet) {
Node foundNode = new Node(row.getNodeRef());
if (foundNode.hasAspect(ArchivaceModel.archProfileDescription))
return foundNode;
}
return null;
}
Unable to delete File due to system error: Failed to parse query: PATH:"/app:company_home/app:user_homes/{http://www.alfresco.org/model/system/1.0}xbalak00/cm:Profile/cm:kcab.png.xml"
String query = org.alfresco.util.ISO9075.encode("PATH:\"" + path + ".xml\"");
07-10-2009 06:25 AM
String query = "PATH:\"" + org.alfresco.util.ISO9075.encode(path + ".xml") + "\"";
As you only need to encode the parameters.07-10-2009 08:05 AM
String query = "PATH:\"" + org.alfresco.util.ISO9075.encode(path + ".xml") + "\"";
PATH:"_x002f_app_x003a_company_home_x002f_cm_x003a_Profile_x002f_cm_x003a_kcab.png.xml"
07-10-2009 08:11 AM
07-10-2009 08:30 AM
path = path.replaceAll("\\{http://www.alfresco.org/model/system/1.0\\}", "sys:");
07-10-2009 08:37 AM
searchString = search.ISO9075Encode(searchString);
if (searchType == "tag")
{
queryString = "PATH:\"/cm:categoryRoot/cm:taggable/cm:" + searchString + "/member\"";
}
else
{
queryString = "(TEXT:\"" + searchString + "\") OR (@cm\\:name:*" + searchString + "*)";
}
07-10-2009 08:49 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.