Package

uk.gov.hmrc.uniform

webmonad

Permalink

package webmonad

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. webmonad
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. sealed trait Control extends AnyRef

    Permalink
  2. type DbState = Map[String, JsValue]

    Permalink
  3. case class Delete(i: Int) extends Control with Product with Serializable

    Permalink
  4. case class Edit(i: Int) extends Control with Product with Serializable

    Permalink
  5. case class JourneyConfig(mode: JourneyMode = SingleStep, allowRestoreState: Boolean = false) extends Product with Serializable

    Permalink
  6. sealed trait JourneyMode extends AnyRef

    Permalink
  7. type Path = List[String]

    Permalink
  8. type WebInner[A] = IndexedReaderWriterStateT[Future, (JourneyConfig, String, Request[AnyContent]), Path, (Path, DbState), (Path, DbState), A]

    Permalink
  9. type WebMonad[A] = EitherT[WebInner, Result, A]

    Permalink
  10. trait WebMonadController extends Controller with I18nSupport

    Permalink

Value Members

  1. object Add extends Control with Product with Serializable

    Permalink
  2. object Done extends Control with Product with Serializable

    Permalink
  3. object LeapAhead extends JourneyMode with Product with Serializable

    Permalink

    Advance through to the latest possible page using whatever defaults or persisted data is available.

    Advance through to the latest possible page using whatever defaults or persisted data is available. If you have a check-your-answers page it is possible to simulate a hub-and-spoke design using this option with the added advantage of knowing that the state will always be consistent with the logic. Care must be taken with listing pages however.

  4. object SingleStep extends JourneyMode with Product with Serializable

    Permalink

    Only advance through the journey one page at a time.

    Only advance through the journey one page at a time. This is the normal behaviour.

  5. def cachedFuture[A](cacheId: String)(f: ⇒ Future[A])(implicit format: Format[A], ec: ExecutionContext): WebMonad[A]

    Permalink
  6. def cachedFutureOpt[A](cacheId: String)(f: ⇒ Future[Option[A]])(implicit format: Format[A], ec: ExecutionContext): WebMonad[Option[A]]

    Permalink
  7. def clear(implicit ec: ExecutionContext): WebMonad[Unit]

    Permalink
  8. def clear(key: String)(implicit ec: ExecutionContext): WebMonad[Unit]

    Permalink
  9. def getPath(implicit ec: ExecutionContext): WebMonad[List[String]]

    Permalink
  10. def getRequest(implicit ec: ExecutionContext): WebMonad[Request[AnyContent]]

    Permalink
  11. implicit val htmlSemigroup: Monoid[Html]

    Permalink
  12. lazy val log: Logger

    Permalink
  13. implicit val orderedLD: Order[LocalDate]

    Permalink
  14. def read[A](key: String)(implicit reads: Reads[A], ec: ExecutionContext): WebMonad[Option[A]]

    Permalink
  15. def update[A](key: String)(f: (Option[A]) ⇒ Option[A])(implicit format: Format[A], ec: ExecutionContext): WebMonad[Unit]

    Permalink
  16. def webMonad[A](f: (String, Request[AnyContent], Path, DbState) ⇒ Future[(Option[String], Path, DbState, Either[Result, A])])(implicit ec: ExecutionContext): WebMonad[A]

    Permalink
  17. def write[A](key: String, value: A)(implicit writes: Writes[A], ec: ExecutionContext): WebMonad[Unit]

    Permalink

Inherited from AnyRef

Inherited from Any

Ungrouped