- public synchronized List<MetaData> getListByAuthor(String author)
- throws IOException {
- List<MetaData> list = new ArrayList<MetaData>();
- for (MetaData meta : getMetas(null)) {
- String storyAuthor = meta.getAuthor();
- if (author == null || author.equalsIgnoreCase(storyAuthor)) {
- list.add(meta);
- }
+ public synchronized List<MetaData> getListByAuthor(String author) throws IOException {
+ List<String> authors = null;
+ if (author != null) {
+ authors = new ArrayList<String>();
+ authors.add(author);