class CoursePublisher {

    List<String> getAllPublishNodeIds(CourseEditorTreeModel editorTreeModel) {
        final List<String> nodeIds = new ArrayList<String>();
        addChildNodeIdRecursive(nodeIds, editorTreeModel.getRootNode());
        return nodeIds;
    }

}