package de.cinovo.cloudconductor.api.interfaces;

import de.cinovo.cloudconductor.api.IRestPath;
import de.cinovo.cloudconductor.api.MediaType;
import de.cinovo.cloudconductor.api.model.Settings;

import javax.annotation.security.RolesAllowed;
import javax.ws.rs.Consumes;
import javax.ws.rs.GET;
import javax.ws.rs.PUT;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;

/**
 * Copyright 2017 Cinovo AG<br>
 * <br>
 *
 * @author psigloch
 */
@Path(IRestPath.SETTINGS)
@Produces(MediaType.APPLICATION_JSON)
@Consumes(MediaType.APPLICATION_JSON)
public interface ISettings {
	
	/**
	 * @return set of service objects
	 */
	@GET
	@RolesAllowed({"VIEW_CONFIGURATIONS","EDIT_CONFIGURATIONS"})
	Settings get();
	
	/**
	 * @param settings the settings to save
	 */
	@PUT
	@RolesAllowed({"EDIT_CONFIGURATIONS"})
	void save(Settings settings);
}

@@ -47,155 +47,8 @@
 s;%0A%0A
-import de.cinovo.cloudconductor.api.IRestPath;%0Aimport de.cinovo.cloudconductor.api.MediaType;%0Aimport de.cinovo.cloudconductor.api.model.Settings;%0A%0A
 impo
@@ -222,16 +222,163 @@
 duces;%0A%0A
+import de.cinovo.cloudconductor.api.IRestPath;%0Aimport de.cinovo.cloudconductor.api.MediaType;%0Aimport de.cinovo.cloudconductor.api.model.Settings;%0A%0A
 /**%0A * C
@@ -628,70 +628,8 @@
 GET%0A
-%09@RolesAllowed(%7B%22VIEW_CONFIGURATIONS%22,%22EDIT_CONFIGURATIONS%22%7D)%0A
 %09Set

Enable settings to be read without login.