ca.shiftfocus.krispii.core.services

WorkService

Related Doc: package services

trait WorkService extends Service[Fail]

Linear Supertypes
Service[Fail], Lifting[Fail], Serialized, FutureMonad, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. WorkService
  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 val authService: AuthService

  2. abstract val componentScratchpadRepository: ComponentScratchpadRepository

  3. abstract val componentService: ComponentService

  4. abstract def createFeedback(studentId: UUID, taskId: UUID): Future[\/[Fail, TaskFeedback]]

  5. abstract def createLongAnswerWork(userId: UUID, taskId: UUID, isComplete: Boolean): Future[\/[Fail, LongAnswerWork]]

  6. abstract def createMatchingWork(userId: UUID, taskId: UUID, isComplete: Boolean): Future[\/[Fail, MatchingWork]]

  7. abstract def createMultipleChoiceWork(userId: UUID, taskId: UUID, isComplete: Boolean): Future[\/[Fail, MultipleChoiceWork]]

  8. abstract def createOrderingWork(userId: UUID, taskId: UUID, isComplete: Boolean): Future[\/[Fail, OrderingWork]]

  9. abstract def createShortAnswerWork(userId: UUID, taskId: UUID, isComplete: Boolean): Future[\/[Fail, ShortAnswerWork]]

  10. abstract def createTaskScratchpad(userId: UUID, taskId: UUID): Future[\/[Fail, TaskScratchpad]]

  11. abstract val db: DB

    Database connection (pool).

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

    Definition Classes
    Service
  12. abstract val documentService: DocumentService

  13. abstract def findFeedback(studentId: UUID, taskId: UUID): Future[\/[Fail, TaskFeedback]]

  14. abstract def findTaskScratchpad(userId: UUID, taskId: UUID): Future[\/[Fail, TaskScratchpad]]

  15. abstract def findWork(userId: UUID, taskId: UUID, version: Long): Future[\/[Fail, Work]]

  16. abstract def findWork(userId: UUID, taskId: UUID): Future[\/[Fail, Work]]

  17. abstract def findWork(workId: UUID): Future[\/[Fail, Work]]

  18. abstract def listFeedbacks(taskId: UUID): Future[\/[Fail, IndexedSeq[TaskFeedback]]]

  19. abstract def listFeedbacks(studentId: UUID, projectId: UUID): Future[\/[Fail, IndexedSeq[TaskFeedback]]]

  20. abstract def listTaskScratchpads(userId: UUID, projectId: UUID): Future[\/[Fail, IndexedSeq[TaskScratchpad]]]

  21. abstract def listWork(taskId: UUID): Future[\/[Fail, IndexedSeq[Work]]]

  22. abstract def listWork(userId: UUID, projectId: UUID): Future[\/[Fail, IndexedSeq[Work]]]

  23. abstract def listWorkRevisions(userId: UUID, taskId: UUID): Future[\/[Fail, Either[DocumentWork, IndexedSeq[ListWork[_ >: Int with Match]]]]]

  24. abstract val projectService: ProjectService

  25. abstract val schoolService: SchoolService

  26. abstract val taskFeedbackRepository: TaskFeedbackRepository

  27. abstract val taskScratchpadRepository: TaskScratchpadRepository

  28. abstract def updateLongAnswerWork(userId: UUID, taskId: UUID, isComplete: Boolean): Future[\/[Fail, LongAnswerWork]]

  29. abstract def updateMatchingWork(userId: UUID, taskId: UUID, version: Long, answer: IndexedSeq[Match], isComplete: Boolean): Future[\/[Fail, MatchingWork]]

  30. abstract def updateMultipleChoiceWork(userId: UUID, taskId: UUID, version: Long, answer: IndexedSeq[Int], isComplete: Boolean): Future[\/[Fail, MultipleChoiceWork]]

  31. abstract def updateOrderingWork(userId: UUID, taskId: UUID, version: Long, answer: IndexedSeq[Int], isComplete: Boolean): Future[\/[Fail, OrderingWork]]

  32. abstract def updateShortAnswerWork(userId: UUID, taskId: UUID, isComplete: Boolean): Future[\/[Fail, ShortAnswerWork]]

  33. abstract val workRepository: WorkRepository

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