Commit 3568acfe authored by michael.simon's avatar michael.simon
Browse files

major refactoring, moving ecp functionality in service layer.

parent bf69aacd
......@@ -15,6 +15,8 @@ import javax.ws.rs.core.Response;
import javax.ws.rs.ext.ExceptionMapper;
import javax.ws.rs.ext.Provider;
import edu.kit.scc.webreg.exc.NoItemFoundException;
@Provider
public class NoItemFoundExceptionMapper implements ExceptionMapper<NoItemFoundException> {
......
......@@ -15,6 +15,8 @@ import javax.ws.rs.core.Response;
import javax.ws.rs.ext.ExceptionMapper;
import javax.ws.rs.ext.Provider;
import edu.kit.scc.webreg.exc.NoRegistryFoundException;
@Provider
public class NoRegistryFoundExceptionMapper implements ExceptionMapper<NoRegistryFoundException> {
......
......@@ -15,6 +15,8 @@ import javax.ws.rs.core.Response;
import javax.ws.rs.ext.ExceptionMapper;
import javax.ws.rs.ext.Provider;
import edu.kit.scc.webreg.exc.NoScopedUsernameException;
@Provider
public class NoScopedUsernameExceptionMapper implements ExceptionMapper<NoScopedUsernameException> {
......
......@@ -15,6 +15,8 @@ import javax.ws.rs.core.Response;
import javax.ws.rs.ext.ExceptionMapper;
import javax.ws.rs.ext.Provider;
import edu.kit.scc.webreg.exc.NoServiceFoundException;
@Provider
public class NoServiceFoundExceptionMapper implements ExceptionMapper<NoServiceFoundException> {
......
......@@ -15,6 +15,8 @@ import javax.ws.rs.core.Response;
import javax.ws.rs.ext.ExceptionMapper;
import javax.ws.rs.ext.Provider;
import edu.kit.scc.webreg.exc.NoUserFoundException;
@Provider
public class NoUserFoundExceptionMapper implements ExceptionMapper<NoUserFoundException> {
......
......@@ -15,6 +15,8 @@ import javax.ws.rs.core.Response;
import javax.ws.rs.ext.ExceptionMapper;
import javax.ws.rs.ext.Provider;
import edu.kit.scc.webreg.exc.PersistentIdException;
@Provider
public class PersistentIdExceptionMapper implements ExceptionMapper<PersistentIdException> {
......
......@@ -15,6 +15,8 @@ import javax.ws.rs.core.Response;
import javax.ws.rs.ext.ExceptionMapper;
import javax.ws.rs.ext.Provider;
import edu.kit.scc.webreg.exc.UnauthorizedException;
@Provider
public class UnauthorizedExceptionMapper implements ExceptionMapper<UnauthorizedException> {
......
......@@ -15,6 +15,8 @@ import javax.ws.rs.core.Response;
import javax.ws.rs.ext.ExceptionMapper;
import javax.ws.rs.ext.Provider;
import edu.kit.scc.webreg.exc.UserNotRegisteredException;
@Provider
public class UserNotRegisteredExceptionMapper implements ExceptionMapper<UserNotRegisteredException> {
......
......@@ -15,6 +15,8 @@ import javax.ws.rs.core.Response;
import javax.ws.rs.ext.ExceptionMapper;
import javax.ws.rs.ext.Provider;
import edu.kit.scc.webreg.exc.UserUpdateFailedException;
@Provider
public class UserUpdateFailedExceptionMapper implements ExceptionMapper<UserUpdateFailedException> {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment