ca.shiftfocus.krispii.core.services

SchoolService

Related Doc: package services

trait SchoolService extends Service[Fail]

Linear Supertypes
Service[Fail], Lifting[Fail], Serialized, FutureMonad, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. SchoolService
  2. Service
  3. Lifting
  4. Serialized
  5. FutureMonad
  6. AnyRef
  7. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def addUsers(course: Course, userIds: IndexedSeq[UUID]): Future[\/[Fail, IndexedSeq[User]]]

  2. abstract val authService: AuthService

  3. abstract val chatRepository: ChatRepository

  4. abstract val courseRepository: CourseRepository

  5. abstract def createCourse(teacherId: UUID, name: String, color: Color, slug: String): Future[\/[Fail, Course]]

  6. abstract val db: DB

    Database connection (pool).

    Database connection (pool). Services will take connections from this pool when making repository calls.

    Definition Classes
    Service
  7. abstract def deleteCourse(id: UUID, version: Long): Future[\/[Fail, Course]]

  8. abstract def findChat(courseId: UUID, messageNum: Long): Future[\/[Fail, Chat]]

  9. abstract def findCourse(slug: String): Future[\/[Fail, Course]]

  10. abstract def findCourse(id: UUID): Future[\/[Fail, Course]]

  11. abstract def findUserForTeacher(userId: UUID, teacherId: UUID): Future[\/[Fail, User]]

  12. abstract def insertChat(courseId: UUID, userId: UUID, message: String): Future[\/[Fail, Chat]]

  13. abstract def listChats(courseId: UUID, userId: UUID, num: Long, offset: Long): Future[\/[Fail, IndexedSeq[Chat]]]

  14. abstract def listChats(courseId: UUID, userId: UUID): Future[\/[Fail, IndexedSeq[Chat]]]

  15. abstract def listChats(courseId: UUID, num: Long, offset: Long): Future[\/[Fail, IndexedSeq[Chat]]]

  16. abstract def listChats(courseId: UUID): Future[\/[Fail, IndexedSeq[Chat]]]

  17. abstract def listCourses: Future[\/[Fail, IndexedSeq[Course]]]

  18. abstract def listCoursesByTeacher(userId: UUID): Future[\/[Fail, IndexedSeq[Course]]]

  19. abstract def listCoursesByUser(user: User): Future[\/[Fail, IndexedSeq[Course]]]

  20. abstract def listCoursesByUser(userId: UUID): Future[\/[Fail, IndexedSeq[Course]]]

  21. abstract def listStudents(course: Course): Future[\/[Fail, IndexedSeq[User]]]

  22. abstract def listStudents(courseId: UUID): Future[\/[Fail, IndexedSeq[User]]]

  23. abstract def removeUsers(course: Course, userIds: IndexedSeq[UUID]): Future[\/[Fail, IndexedSeq[User]]]

  24. abstract def updateChat(courseId: UUID, messageNum: Long, hidden: Boolean): Future[\/[Fail, Chat]]

  25. abstract def updateCourse(id: UUID, version: Long, teacherId: Option[UUID], name: Option[String], color: Option[Color], chatEnabled: Option[Boolean]): Future[\/[Fail, Course]]

  26. abstract val userRepository: UserRepository

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  5. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. implicit def eitherRunner[B](eithert: EitherT[Future, Fail, B]): Future[\/[Fail, B]]

    Definition Classes
    Lifting
  7. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  8. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  9. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. implicit val futureMonad: Monad[Future]

    Definition Classes
    FutureMonad
  11. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  12. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  13. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  14. def lift[B]: (Future[\/[Fail, B]]) ⇒ EitherT[Future, Fail, B]

    Definition Classes
    Lifting
  15. def liftSeq[B](fIntermediate: Future[IndexedSeq[\/[Fail, B]]])(implicit ec: ExecutionContext): EitherT[Future, Fail, IndexedSeq[B]]

    Definition Classes
    Lifting
  16. def liftSeq[B](interList: IndexedSeq[Future[\/[Fail, B]]])(implicit ec: ExecutionContext): EitherT[Future, Fail, IndexedSeq[B]]

    Definition Classes
    Lifting
  17. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  18. final def notify(): Unit

    Definition Classes
    AnyRef
  19. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  20. def predicate(fCondition: Future[Boolean])(fail: Fail)(implicit ec: ExecutionContext): EitherT[Future, Fail, Unit]

    Definition Classes
    Lifting
  21. def predicate(condition: Boolean)(fail: Fail): EitherT[Future, Fail, Unit]

    Definition Classes
    Lifting
  22. def serialized[E, R, L[E] <: IndexedSeq[E]](collection: L[E])(fn: (E) ⇒ Future[R])(implicit ec: ExecutionContext): Future[IndexedSeq[R]]

    Definition Classes
    Serialized
  23. def serializedT[E, R, L[E] <: IndexedSeq[E]](collection: L[E])(fn: (E) ⇒ Future[\/[Fail, R]])(implicit ec: ExecutionContext): Future[\/[Fail, IndexedSeq[R]]]

    Definition Classes
    Lifting
  24. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  25. def toString(): String

    Definition Classes
    AnyRef → Any
  26. def transactional[A](f: (Connection) ⇒ Future[A]): Future[A]

    Takes a function that returns a future, and runs it inside a database transaction.

    Takes a function that returns a future, and runs it inside a database transaction.

    Definition Classes
    Service
  27. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Service[Fail]

Inherited from Lifting[Fail]

Inherited from Serialized

Inherited from FutureMonad

Inherited from AnyRef

Inherited from Any

Ungrouped