Search in sources :

Example 1 with Maintenance

use of io.hops.hopsworks.common.maintenance.Maintenance in project hopsworks by logicalclocks.

the class BannerService method findBanner.

@GET
@Produces(MediaType.APPLICATION_JSON)
@JWTNotRequired
public Response findBanner(@Context SecurityContext sc) {
    Maintenance maintenance = maintenanceController.getMaintenance();
    maintenance.setOtp(settings.getTwoFactorAuth());
    return noCacheResponse.getNoCacheResponseBuilder(Response.Status.OK).entity(maintenance).build();
}
Also used : Maintenance(io.hops.hopsworks.common.maintenance.Maintenance) Produces(javax.ws.rs.Produces) GET(javax.ws.rs.GET) JWTNotRequired(io.hops.hopsworks.api.filter.JWTNotRequired)

Aggregations

JWTNotRequired (io.hops.hopsworks.api.filter.JWTNotRequired)1 Maintenance (io.hops.hopsworks.common.maintenance.Maintenance)1 GET (javax.ws.rs.GET)1 Produces (javax.ws.rs.Produces)1