Advertisement
Guest User

test

a guest
Feb 26th, 2015
205
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Scala 2.09 KB | None | 0 0
  1. trait UserService[U] extends scala.AnyRef {
  2.   def find(providerId : scala.Predef.String, userId : scala.Predef.String) : scala.concurrent.Future[scala.Option[securesocial.core.BasicProfile]]
  3.   def findByEmailAndProvider(email : scala.Predef.String, providerId : scala.Predef.String) : scala.concurrent.Future[scala.Option[securesocial.core.BasicProfile]]
  4.   def save(profile : securesocial.core.BasicProfile, mode : securesocial.core.services.SaveMode) : scala.concurrent.Future[U]
  5.   def link(current : U, to : securesocial.core.BasicProfile) : scala.concurrent.Future[U]
  6.   def passwordInfoFor(user : U) : scala.concurrent.Future[scala.Option[securesocial.core.PasswordInfo]]
  7.   def updatePasswordInfo(user : U, info : securesocial.core.PasswordInfo) : scala.concurrent.Future[scala.Option[securesocial.core.BasicProfile]]
  8.   def saveToken(token : securesocial.core.providers.MailToken) : scala.concurrent.Future[securesocial.core.providers.MailToken]
  9.   def findToken(token : scala.Predef.String) : scala.concurrent.Future[scala.Option[securesocial.core.providers.MailToken]]
  10.   def deleteToken(uuid : scala.Predef.String) : scala.concurrent.Future[scala.Option[securesocial.core.providers.MailToken]]
  11.   def deleteExpiredTokens() : scala.Unit
  12. }  
  13.  
  14. case class BasicProfile(val providerId : scala.Predef.String, val userId : scala.Predef.String, val firstName : scala.Option[scala.Predef.String], val lastName : scala.Option[scala.Predef.String], val fullName : scala.Option[scala.Predef.String], val email : scala.Option[scala.Predef.String], val avatarUrl : scala.Option[scala.Predef.String], val authMethod : securesocial.core.AuthenticationMethod, val oAuth1Info : scala.Option[securesocial.core.OAuth1Info], val oAuth2Info : scala.Option[securesocial.core.OAuth2Info] val passwordInfo : scala.Option[securesocial.core.PasswordInfo]) extends scala.AnyRef with securesocial.core.GenericProfile with scala.Product with scala.Serializable
  15.  
  16. case class User(basicProfile: BasicProfile, id: ObjectId = new ObjectId(),
  17.                 lastPosition: String,
  18.                 friends: List[User],
  19.                 lastLogin: DateTime)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement