// Path: src/WEB-INF/classes/org/jiffy/server/security/Roles.java
// public class Roles 
// {
// 	//////////
// 	// Outline all the roles available in the software
// 	//////////
// 	public static final String ADMIN = "admin";
// 	public static final String USER = "user";
// 
// 	public static final String[] ALL_SYSTEM_ROLES = new String[]{ADMIN, USER};
// 	
// 	// a shortcut to ALL_ROLES, since we can't use [] with Services
// 	public static final String ALL_ROLES = "any_role";
// 	// no access for anyone
// 	public static final String NO_ACCESS = "no_one";
// 	// everyone is allowed, even those that aren't logged in (e.g. index.jsp)
// 	public static final String ALL = "all";	
// }
// 
// Path: src/WEB-INF/classes/org/jiffy/server/services/ServiceRequest.java
// public class ServiceRequest
// {
// 	public HttpServletRequest request;
// 	public HttpServletResponse response;
// 	public UserSession appSession;
// 	public String requestType;
// 	public String restID;
// 	public boolean shouldReturnJson;
// 	
// 	public String getParameter(String param)
// 	{
// 		return request.getParameter(param);
// 	}
// 	
// 	public int getIntParameter(String param)
// 	{
// 		return Integer.parseInt(request.getParameter(param));
// 	}
// 	
// 	public double getDoubleParameter(String param)
// 	{
// 		return Double.parseDouble(request.getParameter(param));
// 	}
// 	
// 	public boolean getBooleanParameter(String param)
// 	{
// 		return StringUtils.equals(request.getParameter(param), "checked");
// 	}
// 	
// }
// 
// Path: src/WEB-INF/classes/org/jiffy/server/services/ServiceResponse.java
// public abstract class ServiceResponse 
// {
// 	public abstract void respond(HttpServletRequest req, HttpServletResponse resp) throws Exception;
// }
// 
// Path: src/WEB-INF/classes/org/jiffy/server/services/responses/NoResponse.java
// public class NoResponse extends ServiceResponse
// {
// 	@Override
// 	public void respond(HttpServletRequest req, HttpServletResponse resp) throws Exception
// 	{
// 		
// 	}
// }


import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.jiffy.server.security.Roles;
import org.jiffy.server.services.Service;
import org.jiffy.server.services.ServiceRequest;
import org.jiffy.server.services.ServiceResponse;
import org.jiffy.server.services.responses.NoResponse;
package org.jiffy.controllers;


public class JiffyController 
{
	protected static Logger logger = LogManager.getLogger();

	@Service(access=Roles.NO_ACCESS)
	public static ServiceResponse index(ServiceRequest input) throws Exception
	{
		return new NoResponse();
	}

	@Service(access=Roles.NO_ACCESS)
	public static ServiceResponse show(ServiceRequest input) throws Exception
	{
		return new NoResponse();
	}

	@Service(access=Roles.NO_ACCESS)
	public static ServiceResponse destroy(ServiceRequest input) throws Exception
	{
		return new NoResponse();
	}

	@Service(access=Roles.NO_ACCESS)
	public static ServiceResponse create(ServiceRequest input) throws Exception
	{
		return new NoResponse();
	}

	@Service(access=Roles.NO_ACCESS)
// Path: src/WEB-INF/classes/org/jiffy/server/security/Roles.java
// public class Roles 
// {
// 	//////////
// 	// Outline all the roles available in the software
// 	//////////
// 	public static final String ADMIN = "admin";
// 	public static final String USER = "user";
// 
// 	public static final String[] ALL_SYSTEM_ROLES = new String[]{ADMIN, USER};
// 	
// 	// a shortcut to ALL_ROLES, since we can't use [] with Services
// 	public static final String ALL_ROLES = "any_role";
// 	// no access for anyone
// 	public static final String NO_ACCESS = "no_one";
// 	// everyone is allowed, even those that aren't logged in (e.g. index.jsp)
// 	public static final String ALL = "all";	
// }
// 
// Path: src/WEB-INF/classes/org/jiffy/server/services/ServiceRequest.java
// public class ServiceRequest
// {
// 	public HttpServletRequest request;
// 	public HttpServletResponse response;
// 	public UserSession appSession;
// 	public String requestType;
// 	public String restID;
// 	public boolean shouldReturnJson;
// 	
// 	public String getParameter(String param)
// 	{
// 		return request.getParameter(param);
// 	}
// 	
// 	public int getIntParameter(String param)
// 	{
// 		return Integer.parseInt(request.getParameter(param));
// 	}
// 	
// 	public double getDoubleParameter(String param)
// 	{
// 		return Double.parseDouble(request.getParameter(param));
// 	}
// 	
// 	public boolean getBooleanParameter(String param)
// 	{
// 		return StringUtils.equals(request.getParameter(param), "checked");
// 	}
// 	
// }
// 
// Path: src/WEB-INF/classes/org/jiffy/server/services/ServiceResponse.java
// public abstract class ServiceResponse 
// {
// 	public abstract void respond(HttpServletRequest req, HttpServletResponse resp) throws Exception;
// }
// 
// Path: src/WEB-INF/classes/org/jiffy/server/services/responses/NoResponse.java
// public class NoResponse extends ServiceResponse
// {
// 	@Override
// 	public void respond(HttpServletRequest req, HttpServletResponse resp) throws Exception
// 	{
// 		
// 	}
// }


// Path: src/WEB-INF/classes/org/jiffy/controllers/JiffyController.java
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.jiffy.server.security.Roles;
import org.jiffy.server.services.Service;
import org.jiffy.server.services.ServiceRequest;
import org.jiffy.server.services.ServiceResponse;
import org.jiffy.server.services.responses.NoResponse;

package org.jiffy.controllers;


public class JiffyController 
{
	protected static Logger logger = LogManager.getLogger();

	@Service(access=Roles.NO_ACCESS)
	public static ServiceResponse index(ServiceRequest input) throws Exception
	{
		return new NoResponse();
	}

	@Service(access=Roles.NO_ACCESS)
	public static ServiceResponse show(ServiceRequest input) throws Exception
	{
		return new NoResponse();
	}

	@Service(access=Roles.NO_ACCESS)
	public static ServiceResponse destroy(ServiceRequest input) throws Exception
	{
		return new NoResponse();
	}

	@Service(access=Roles.NO_ACCESS)
	public static ServiceResponse create(ServiceRequest input) throws Exception
	{
		return new NoResponse();
	}

	@Service(access=Roles.NO_ACCESS)
	public static ServiceResponse update(ServiceRequest input) throws Exception