Skip to content

Instantly share code, notes, and snippets.

@sujaypillai
Created June 2, 2015 10:00
Show Gist options
  • Save sujaypillai/12c8316c9ed923d2ce32 to your computer and use it in GitHub Desktop.
Save sujaypillai/12c8316c9ed923d2ce32 to your computer and use it in GitHub Desktop.
protected Map<String, String> getAllowableValuesImpl() {
Map<String, String> result = new HashMap<String, String>(23);
for(String path : searchPath){
List<NodeRef> nodeRefs = searchService.selectNodes(repository.getRootHome(),path,null,this.namespaceService,false);
NodeRef rootFolder = null;
if (nodeRefs.size() == 0)
{
throw new AlfrescoRuntimeException("The path '" + searchPath + "' did not return any results.");
}
else
{
rootFolder = nodeRefs.get(0);
}
buildMap(result, rootFolder);
}
Map<String,String> sortedResult = sortByName(result);
return sortedResult;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment