12-14-2007 05:33 AM
12-14-2007 05:44 AM
(which i have to, because i want to order the results)What problems are you having sorting the results in Javascript?
12-14-2007 05:48 AM
12-19-2007 06:00 AM
08-20-2008 12:41 PM
08-21-2008 02:20 AM
08-21-2008 03:44 AM
search.luceneSearch(query, sortColumn, sortAscending);
12-15-2008 08:16 PM
12-17-2008 06:12 AM
After a long search, i found what was causing this.
I was using spring beans to set the searchService to my own search implementation. The given searchService has admin access.
Alfresco's search implementation retrieves the searchService at runtime via the serviceRegistry. This searchService has the access of the current user.
This method appears to apply to all of Alfresco's services. Basically, if you want to do something that requires admin access, you can get the services directly from Spring. If you want to be restricted by the users' capabilities, you need to retrieve the services dynamically via the serviceRegistry.
Personally, i feel this is poor design - i'd be much happier if you could tell the service what kind of access you'd like to use. Any thoughts?
02-16-2009 03:19 AM
Just use the "SearchService" rather than the "searchService". The "SearchService" is the one you'd get from the service registry, without the need for the service registry…
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.