Package org.apache.stanbol.commons.web.viewable

Examples of org.apache.stanbol.commons.web.viewable.RdfViewable


     */
    @GET
    @Path("view-user")
    @Produces(MediaType.TEXT_HTML)
    public RdfViewable viewUser(@QueryParam("userName") String userName) {
        return new RdfViewable("edit", getUser(userName), this.getClass());
    }
View Full Code Here


     * @return
     */
    @GET
    @Path("users/edit/{username}")
    public RdfViewable editUser(@PathParam("username") String userName) {
        return new RdfViewable("editUser", getUser(userName),
                this.getClass());
    }
View Full Code Here

     */
    @GET
    @Path("users")
    @Produces(MediaType.TEXT_HTML)
    public RdfViewable listUsers() {
        return new RdfViewable("listUser", getUserType(), this.getClass());
    }
View Full Code Here

     */
    @GET
    @Path("create-form")
    @Produces(MediaType.TEXT_HTML)
    public RdfViewable getCreateUserForm(@Context UriInfo uriInfo) {
        return new RdfViewable("editUser", dummyNode,
                this.getClass());
    }
View Full Code Here

     */
    @GET
    @Path("roles")
    @Produces(MediaType.TEXT_HTML)
    public RdfViewable listRoles() {
        return new RdfViewable("listRole", getRoleType(), this.getClass());
    }
View Full Code Here

     */
    @GET
    @Path("create-role")
    @Produces(MediaType.TEXT_HTML)
    public RdfViewable getCreateRoleForm(@Context UriInfo uriInfo) {
        return new RdfViewable("editRole", dummyNode,
                this.getClass());
    }
View Full Code Here

     */
    @GET
    @Path("roles/edit/{rolename}")
    @Produces(MediaType.TEXT_HTML)
    public RdfViewable editRole(@PathParam("rolename") String roleName) {
        return new RdfViewable("editRole", getRole(roleName),
                this.getClass());
    }
View Full Code Here

    @GET
    @Path("permissions")
    @Produces(MediaType.TEXT_HTML)
    public RdfViewable listPermissions() {
        addClassToPermissions(); // workaround
        return new RdfViewable("listPermission", getPermissionType(), this.getClass());
    }
View Full Code Here

            node.addProperty(Ontology.describes, iri);
            addResourceDescription(iri, responseGraph);
            logRequest(iri, userAgent);
        }
        //What we return is the GraphNode we created with a template path
        return new RdfViewable("ResourceResolver", node, ResourceResolver.class);
    }
View Full Code Here

        //The triples will be added to the first graph of the union
        //i.e. to the in-memory responseGraph
        node.addProperty(RDF.type, Ontology.MultiEnhancer);
        node.addProperty(RDFS.comment, new PlainLiteralImpl("A Multi Enhancer service"));
        //What we return is the GraphNode we created with a template path
        return new RdfViewable("MultiEnhancer", node, MultiEnhancer.class);
    }
View Full Code Here

TOP

Related Classes of org.apache.stanbol.commons.web.viewable.RdfViewable

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.