AnsweredAssumed Answered

Getting the NodeRef of Company Home/承認後

Question asked by nicolasraoul on Mar 17, 2010
Latest reply on Jan 11, 2011 by jeyaa
Hello,

I want to get a NodeRef to my "Company Home/承認後" directory. So I wrote:

StoreRef storeRef = new StoreRef(StoreRef.PROTOCOL_WORKSPACE, "SpacesStore");

ResultSet rs = searchService.query(storeRef, SearchService.LANGUAGE_XPATH,
   "/{http://www.alfresco.org/model/application/1.0}company_home/{http://www.alfresco.org/model/content/1.0}承認後");

NodeRef my = rs.getNodeRef(0);

But the resultset only contains one noderef: the root "/". Not the directory I indicated in the query.
What am I doing wrong?
Note: Even if I remplace 承認後 by its equivalent \u627f\u8a8d\u5f8c, same result.

Outcomes