Trait

controllers

Validation

Related Doc: package controllers

Permalink

trait Validation extends Logging

common validation utilities - utilities and constants for errors/corrections and so on. mix into your controllers to get these

this is meant to be mixed into controllers

Linear Supertypes
Logging, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Validation
  2. Logging
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. case class OptNope[A](o: Option[A]) extends Product with Serializable

    Permalink

    the laziness in orErr/orCorr means you can log security or other issues right there - it only calls it when failing

    the laziness in orErr/orCorr means you can log security or other issues right there - it only calls it when failing

    this class and implicits below allow stuff like:

    for ( au <- auth orCorr cNoAuth; // auts returns an option hasQuota <- (au.isAdmin || au.quota.canUpdate) orCorr cNoQuotaUpdates; )

  2. class cdebug extends AnyRef

    Permalink
    Definition Classes
    Logging
    Annotations
    @inline()
  3. class clog extends AnyRef

    Permalink
    Definition Classes
    Logging
    Annotations
    @inline()

Value Members

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  4. object InternalErr

    Permalink
  5. def Nope(msg: String): None.type

    Permalink
  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def audit(message: ⇒ String, e: Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
    Annotations
    @inline()
  8. def audit(message: ⇒ String): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
    Annotations
    @inline()
  9. final val cAccountNotActive: Corr

    Permalink
  10. final val cDemoAccount: Corr

    Permalink
  11. final val cExpired: Corr

    Permalink
  12. final val cNoAuth: Corr

    Permalink
  13. final def cNoPermission: Corr

    Permalink
  14. final val cNoProfile: Corr

    Permalink
  15. def cNoQuotaUpdates: Corr

    Permalink
  16. def cNotAdmin(clubName: String): Corr

    Permalink
  17. def cNotMember(clubName: String, role: String = "member"): Corr

    Permalink
  18. final val cNotVerified: Corr

    Permalink
  19. def cdebug: cdebug

    Permalink

    c++ memories, anyone...

    c++ memories, anyone... i do like to use the cout << x instead of println(x)

    Definition Classes
    Logging
    Annotations
    @inline()
  20. def clog: clog

    Permalink

    c++ memories, anyone...

    c++ memories, anyone... i do like to use the cout << x instead of println(x)

    Definition Classes
    Logging
    Annotations
    @inline()
  21. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  22. def debug(message: ⇒ String, e: Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
    Annotations
    @inline()
  23. def debug(message: ⇒ String): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
    Annotations
    @inline()
  24. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  26. def error(message: ⇒ String, e: Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
    Annotations
    @inline()
  27. def error(message: ⇒ String): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
    Annotations
    @inline()
  28. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  29. final def getClass(): Class[_]

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

    Permalink
    Definition Classes
    AnyRef → Any
  31. def info(message: ⇒ String, e: Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
    Annotations
    @inline()
  32. def info(message: ⇒ String): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
    Annotations
    @inline()
  33. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  34. def log(message: ⇒ String, e: Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
    Annotations
    @inline()
  35. def log(message: ⇒ String): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
    Annotations
    @inline()
  36. val logger: Log

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  37. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  38. def newlog(s: String): Log

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  39. def newlog(clazz: Class[_]): Log

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  40. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  41. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  42. def slf4j: Logger

    Permalink

    use this if you want to log with slf4j conventions instead of the formatting conventions implemented here (String.format).

    use this if you want to log with slf4j conventions instead of the formatting conventions implemented here (String.format).

    Printf rules!

    Attributes
    protected
    Definition Classes
    Logging
  43. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  44. def tee(message: ⇒ String): String

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
    Annotations
    @inline()
  45. implicit def toC2(t: (String, String)): Corr

    Permalink
  46. implicit def toON[A](o: Option[A]): OptNope[A]

    Permalink
  47. implicit def toON2(o: Boolean): OptNope[Boolean]

    Permalink
  48. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  49. def trace(message: ⇒ String, e: Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
    Annotations
    @inline()
  50. def trace(message: ⇒ String): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
    Annotations
    @inline()
  51. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  54. def warn(message: ⇒ String, e: Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
    Annotations
    @inline()
  55. def warn(message: ⇒ String): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
    Annotations
    @inline()

Inherited from Logging

Inherited from AnyRef

Inherited from Any

Ungrouped