Created
November 24, 2013 10:27
-
-
Save v6ak/7625625 to your computer and use it in GitHub Desktop.
My idea about RequestWithUser and SecuredRequest inheritance in SecureSocial
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| abstract class RequestWithUser[A](request: Request[A]) extends WrappedRequest(request){ | |
| def userOption: Option[Identity] | |
| } | |
| final case class SecuredRequest[A](user: Identity, request: Request[A]) extends RequestWithUser(request){ | |
| override def userOption = Some(user) | |
| } | |
| final case class SimpleRequestWithUser[A](userOption: Option[Identity], request: Request[A]) extends RequestWithUser(request) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment