Package com.lowtuna.jsonblob.view

Examples of com.lowtuna.jsonblob.view.EditorView


    }

    @GET
    @Timed
    public EditorView defaultEditor() {
        return new EditorView(gaConfig.getWebPropertyID(), "editor", gaConfig.getCustomTrackingCodes());
    }
View Full Code Here


    @GET
    @Timed
    @Path("new")
    public EditorView emptyEditor() {
        EditorView view = new EditorView(gaConfig.getWebPropertyID(), "editor", gaConfig.getCustomTrackingCodes());
        view.setJsonBlob("{}");
        return view;
    }
View Full Code Here

    @Path("{blobId}")
    public EditorView blobEditor(@PathParam("blobId") ObjectId blobId) {
        try {
            DBObject object = blobManager.read(blobId);
            Object blob = object.get("blob");
            EditorView view = new EditorView(gaConfig.getWebPropertyID(), "editor", gaConfig.getCustomTrackingCodes());
            view.setBlobId(blobId.toString());
            view.setJsonBlob(blob.toString());
            return view;
        } catch (BlobNotFoundException e) {
            throw new NotFoundException();
        }
    }
View Full Code Here

TOP

Related Classes of com.lowtuna.jsonblob.view.EditorView

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.