Created
June 2, 2015 10:00
-
-
Save sujaypillai/12c8316c9ed923d2ce32 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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