Object

razie.wiki.model

Wikis

Related Doc: package model

Permalink

object Wikis extends Logging with Validation

wiki factory and utils

Linear Supertypes
Validation, Logging, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Wikis
  2. Validation
  3. Logging
  4. AnyRef
  5. 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; )

    Definition Classes
    Validation
  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. final val DFLT: String("rk")

    Permalink
  5. final val HTML: String("html")

    Permalink
  6. object InternalErr

    Permalink
    Definition Classes
    Validation
  7. final val JS: String("js")

    Permalink
  8. final val JSON: String("json")

    Permalink
  9. final val MD: String("md")

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

    Permalink
    Definition Classes
    Validation
  11. final val PERSISTED: Array[String]

    Permalink

    these categories are persisted in their own tables

  12. final val RK: String("rk")

    Permalink
  13. val SAFECHARS: String

    Permalink

    these are the safe url characters.

    these are the safe url characters. I also included ',which are confusing many sites

  14. final val SCALA: String("scala")

    Permalink
  15. final val TABLE_NAME: String("WikiEntry")

    Permalink

    customize table names per category

  16. final val TABLE_NAMES: Map[String, String]

    Permalink
  17. final val TEXT: String("text")

    Permalink
  18. final val XML: String("xml")

    Permalink
  19. final val adultWords: Array[String]

    Permalink
  20. def apply(realm: String = RK): WikiInst

    Permalink
  21. final def asInstanceOf[T0]: T0

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

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

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
    Annotations
    @inline()
  24. final val badWords: Array[String]

    Permalink
  25. final val cAccountNotActive: Corr

    Permalink
    Definition Classes
    Validation
  26. final val cDemoAccount: Corr

    Permalink
    Definition Classes
    Validation
  27. final val cExpired: Corr

    Permalink
    Definition Classes
    Validation
  28. final val cNoAuth: Corr

    Permalink
    Definition Classes
    Validation
  29. final def cNoPermission: Corr

    Permalink
    Definition Classes
    Validation
  30. final val cNoProfile: Corr

    Permalink
    Definition Classes
    Validation
  31. def cNoQuotaUpdates: Corr

    Permalink
    Definition Classes
    Validation
  32. def cNotAdmin(clubName: String): Corr

    Permalink
    Definition Classes
    Validation
  33. def cNotMember(clubName: String, role: String = "member"): Corr

    Permalink
    Definition Classes
    Validation
  34. final val cNotVerified: Corr

    Permalink
    Definition Classes
    Validation
  35. 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()
  36. def childrenOf(parent: UWID): Iterator[UWID]

    Permalink
  37. def clearCache(wids: WID*): Unit

    Permalink
  38. 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()
  39. def clone(): AnyRef

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

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

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
    Annotations
    @inline()
  42. def dflt: WikiInst

    Permalink
  43. def divLater(x: String): String

    Permalink
  44. final def eq(arg0: AnyRef): Boolean

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

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

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

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
    Annotations
    @inline()
  48. def fallbackPage(a: String, b: String): String

    Permalink

    see if a exists otherwise return b

  49. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  50. def find(wid: WID): Option[WikiEntry]

    Permalink
  51. def findSimple(wid: WID): Option[WikiEntry]

    Permalink

    safe to call before reactors are initialized

  52. def flag(wid: WID, reason: String = ""): Unit

    Permalink
  53. def flag(we: WikiEntry): Unit

    Permalink
  54. def formFor(we: WikiEntry): Option[String]

    Permalink
  55. def format(wid: WID, markup: String, icontent: String, we: Option[WikiEntry], user: Option[WikiUser]): String

    Permalink

    main formatting function

    main formatting function

    wid

    - the wid being formatted

    markup

    - markup language being formatted

    icontent

    - the content being formatted or "" if there is a WikiEntry being formatted

    we

    - optional page for context for formatting

  56. def format(we: WikiEntry, user: Option[WikiUser]): String

    Permalink

    main formatting function

    main formatting function

    we

    - optional page for context for formatting

  57. def formatJson(wid: WID, markup: String, icontent: String, we: Option[WikiEntry] = None): String

    Permalink

    main formatting function

    main formatting function

    wid

    - the wid being formatted

    markup

    - markup language being formatted

    icontent

    - the content being formatted or "" if there is a WikiEntry being formatted

    we

    - optional page for context for formatting

  58. def formatName(wid: WID): String

    Permalink

    format a complex name cat:name

  59. def formatName(name: String): String

    Permalink
  60. def formatWikiLink(curRealm: String, wid: WID, nicename: String, label: String, role: Option[String], hover: Option[String] = None, rk: Boolean = false, max: Int = 1): (String, Some[ILink])

    Permalink

    format an even more complex name

    format an even more complex name

    rk

    force links back to RK main or leave them

  61. def fromGrated[T <: AnyRef](o: DBObject)(implicit m: Manifest[T]): T

    Permalink
  62. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  63. def hasBadWords(s: String, what: Array[String] = badWords): Boolean

    Permalink
  64. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  65. def hrefTag(wid: WID, t: String, label: String): String

    Permalink

    make a relative href for the given tag.

    make a relative href for the given tag. give more tags with 1/2/3

  66. def info(message: ⇒ String, e: Throwable): Unit

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

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
    Annotations
    @inline()
  68. def irunXp(what: String, w: WikiEntry, path: String): List[Any]

    Permalink
  69. def isEvent(cat: String): Boolean

    Permalink
  70. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  71. def label(wid: UWID): String

    Permalink
  72. def label(wid: WID): String

    Permalink
  73. def linksFrom(from: UWID, role: String): Iterator[WikiLink]

    Permalink
  74. def linksFrom(to: UWID): Iterator[WikiLink]

    Permalink
  75. def linksTo(cat: String, to: UWID, role: String): Iterator[WikiLink]

    Permalink
  76. def linksTo(to: UWID): Iterator[WikiLink]

    Permalink
  77. def log(message: ⇒ String, e: Throwable): Unit

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

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

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  80. object markups

    Permalink

    helper to deal with the different markups

  81. def mkFormData(spec: WikiEntry, defaults: Map[String, String] = Map.empty): String

    Permalink

    create the data section

  82. def mkVis(wid: WID, realm: String): String

    Permalink
  83. def mkwVis(wid: WID, realm: String): String

    Permalink
  84. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  87. def noBadWords(s: String): String

    Permalink
  88. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  90. def preprocess(wid: WID, markup: String, content: String, page: Option[WikiEntry]): (BaseAstNode, String)

    Permalink

    pre-process this wiki: do AST, includes etc

  91. def preprocessIncludes(wid: WID, markup: String, content: String, page: Option[WikiEntry] = None): String

    Permalink
  92. def propLater(id: String, url: String): String

    Permalink

    html for later

  93. def rk: WikiInst

    Permalink
  94. def runScript(s: String, lang: String, page: Option[WikiEntry], au: Option[WikiUser]): String

    Permalink
  95. def runXp(what: String, w: WikiEntry, path: String): String

    Permalink
  96. def sformat(content: String, markup: String = "md", realm: String, user: Option[WikiUser] = None): String

    Permalink
  97. def shouldFlag(name: String, label: String, content: String): Option[String]

    Permalink
  98. 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
  99. final def synchronized[T0](arg0: ⇒ T0): T0

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

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
    Annotations
    @inline()
  101. def template(wpath: String, parms: Map[String, String]): String

    Permalink

    format content from a template, given some parms

    format content from a template, given some parms

    - this is used only when creating new pages from spec

    DO NOT mess with this - one side effect is only replacing the ${} it understands...

    CANNOT should reconcile with templateFromContent

  102. def templateFor(we: WikiEntry): Option[String]

    Permalink
  103. def templateFromContent(content: String, parms: (String) ⇒ String): Unit

    Permalink

    format content from a template, given some parms

    format content from a template, given some parms

    parms

    will resolve expressions from the template into Strings. you can use a Map. parms("*") should return some details for debugging

  104. implicit def toC2(t: (String, String)): Corr

    Permalink
    Definition Classes
    Validation
  105. implicit def toON[A](o: Option[A]): OptNope[A]

    Permalink
    Definition Classes
    Validation
  106. implicit def toON2(o: Boolean): OptNope[Boolean]

    Permalink
    Definition Classes
    Validation
  107. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  108. def toUl(res: List[Any]): String

    Permalink

    a list to html

  109. def trace(message: ⇒ String, e: Throwable): Unit

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

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
    Annotations
    @inline()
  111. def updateUserName(uold: String, unew: String): Unit

    Permalink
  112. def w(we: WID, shouldCount: Boolean = true): String

    Permalink
  113. def w(we: UWID): String

    Permalink
  114. final def wait(): Unit

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

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

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

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

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
    Annotations
    @inline()
  119. def wvis(props: Option[Map[String, String]]): Option[String]

    Permalink

    extract wvis (edit permissions) prop from wiki

    extract wvis (edit permissions) prop from wiki

    Attributes
    protected

Deprecated Value Members

  1. def find(id: com.mongodb.casbah.Imports.ObjectId): Option[WikiEntry]

    Permalink

    Deprecated

    optimize with realm

  2. def findById(cat: String, id: com.mongodb.casbah.Imports.ObjectId): Option[WikiEntry]

    Permalink

    Deprecated

    optimize with realm

  3. def findById(id: String): Option[WikiEntry]

    Permalink

    Deprecated

    optimize with realm

Inherited from Validation

Inherited from Logging

Inherited from AnyRef

Inherited from Any

Ungrouped