Changeset 21:1ac626309352 in AnnotationManagerN4J for src


Ignore:
Timestamp:
Sep 7, 2012, 4:10:18 PM (12 years ago)
Author:
casties
Branch:
default
Message:

more work on HTML UI (doesn't work yet).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/main/java/de/mpiwg/itgroup/annotations/restlet/AnnotationStoreGroups.java

    r19 r21  
    4545                result += String.format("<tr><td><a href=\"%s\">%s</a></td><td>%s</td><td>%s</td></tr>\n", groupLink, group.getId(), group.getName(), group.getUri());
    4646            }
    47            
     47        } else {
     48            // just one group
     49            List<Group> groups = store.getGroups("uri", "*");
     50            for (Group group : groups) {
     51                String groupLink = group.getId();
     52                result += String.format("<tr><td><a href=\"%s\">%s</a></td><td>%s</td><td>%s</td></tr>\n", groupLink, group.getId(), group.getName(), group.getUri());
     53            }
    4854        }
    4955        result += "</table>\n</body>\n</html>";
Note: See TracChangeset for help on using the changeset viewer.