Package org.apache.marmotta.platform.core.api.statistics

Examples of org.apache.marmotta.platform.core.api.statistics.StatisticsModule


    }

    @PUT
    @Path("/{module}/enabled")
    public Response setEnabled(@PathParam("module") String module, @QueryParam("value") boolean enabled) {
        final StatisticsModule mod = statisticsService.getModule(module);
        if (mod != null) {
            if (enabled) {
                mod.enable();
            } else {
                mod.disable();
            }
            return Response.ok().entity(enabled).build();
        }
        else
            return Response.status(404)
View Full Code Here


    }

    @GET
    @Path("/{module}/enabled")
    public boolean isEnabled(@PathParam("module") String module) {
        final StatisticsModule mod = statisticsService.getModule(module);
        if (mod != null)
            return mod.isEnabled();
        else
            return false;
    }
View Full Code Here

TOP

Related Classes of org.apache.marmotta.platform.core.api.statistics.StatisticsModule

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.