Ignore:
Timestamp:
Feb 10, 2015, 5:11:17 PM (9 years ago)
Author:
casties
Branch:
default
Message:

added last update field for annotations in database.

File:
1 edited

Legend:

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

    r78 r95  
    6565    protected void doInit() throws ResourceException {
    6666        super.doInit();
    67         // id from URI /annotations/persons/{id}
     67        // id from URI /annotations/annotation/{id}
    6868        requestId = (String) getRequest().getAttributes().get("id");
    6969        logger.fine("annoation-id=" + requestId);
     
    8787
    8888    /**
    89      * GET with HTML content type. Shows the person.
     89     * GET with HTML content type. Shows the annotation.
    9090     *
    9191     * @param entity
     
    121121            */
    122122        } else {
    123             // output person content
     123            // output content
    124124            result = "<html><body>\n<h1>Annotation</h1>\n";
    125125            result += String.format("<p><a href=\"%s\">All annotations</a></p>", this.getReference().getParentRef());
     
    132132            result += String.format("<tr><td><b>resource</b></td><td>%s</td></tr>\n", annotation.getResourceUri());
    133133            result += String.format("<tr><td><b>creator</b></td><td>%s</td></tr>\n", annotation.getCreatorName());
     134            result += String.format("<tr><td><b>created</b></td><td>%s</td></tr>\n", annotation.getCreated());
     135            result += String.format("<tr><td><b>updated</b></td><td>%s</td></tr>\n", annotation.getUpdated());
    134136            result += "</table>\n";
    135137            result += "<br/>\n";
Note: See TracChangeset for help on using the changeset viewer.