cancel
Showing results for 
Search instead for 
Did you mean: 

How to fetch a node at a given path?

hbf
Champ on-the-rise
Champ on-the-rise
Hi everybody,

In an extension module I am developing I need to get a NodeRef to a folder in 'Company Home/Data Dictionary/Derivers'. What is the standard way to do this? I've been scanning through the wiki for more than an hour without a clear winner.

1. I could use the Search API
String path = DerivativesModel.DERIVERS_PATH+deriver+".js";
    SearchParameters sp = new SearchParameters();
    sp.addStore(storeRef);
But how can I get a store-ref to the standard store (the one holding the company home)?

2. There is the dictionaryService but it does not seem to provide a way to access the dictionary's children.

Thanks a lot for a short hint,
Kaspar
1 REPLY 1

hbf
Champ on-the-rise
Champ on-the-rise
Answer myself, an example can be found in

HEAD/root/projects/sdk/samples/FirstFoundationClient/source/org/alfresco/sample/FirstFoundationClient.java

(this refers to the Alfresco SVN repository).

Just for the sake of completeness, in case somebody else runs into this problem…