From fcd5c677e2d67f55656a40246fbd5d150781571c Mon Sep 17 00:00:00 2001 From: Eckart Hertzler Date: Fri, 23 Oct 2009 17:22:23 +0200 Subject: [PATCH] add missing @DenyAll annotation --- akka-samples-security/src/main/scala/SimpleService.scala | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/akka-samples-security/src/main/scala/SimpleService.scala b/akka-samples-security/src/main/scala/SimpleService.scala index db328cc6ad..e8c58ae403 100644 --- a/akka-samples-security/src/main/scala/SimpleService.scala +++ b/akka-samples-security/src/main/scala/SimpleService.scala @@ -95,7 +95,6 @@ import java.lang.Integer import javax.annotation.security.{RolesAllowed, DenyAll, PermitAll} import javax.ws.rs.{GET, Path, Produces} @Path("/secureticker") -@DenyAll class SecureTickActor extends Actor with Logging { makeTransactionRequired @@ -106,7 +105,7 @@ class SecureTickActor extends Actor with Logging { private val storage = TransactionalState.newMap[String, Integer] /** - * allow access for any user to the resource "/secureticker/public" + * allow access for any user to "/secureticker/public" */ @GET @Produces(Array("text/xml")) @@ -115,7 +114,7 @@ class SecureTickActor extends Actor with Logging { def publicTick = tick /** - * restrict access to resource "/secureticker/chef" users with "chef" role + * restrict access to "/secureticker/chef" users with "chef" role */ @GET @Path("/chef") @@ -124,10 +123,11 @@ class SecureTickActor extends Actor with Logging { def chefTick = tick /** - * access denied because of the class level annotation for any user + * access denied for any user to default Path "/secureticker/" */ @GET @Produces(Array("text/xml")) + @DenyAll def paranoiaTick = tick def tick = (this !! Tick) match {