Class/Object

razie.wiki.model.features

WikiCount

Related Docs: object WikiCount | package features

Permalink

case class WikiCount(pid: ObjectId, count: Long = 1, wpath: Option[String] = None, _id: ObjectId = new ObjectId()) extends REntity[WikiCount] with Product with Serializable

keep track of view counts, per wiki page id

use pid - page ID only, for regular topics

use wpath only for special pages (like hardcoded templates). make sure the wpaths is realm-neutral (i.e. make it up with category:name)

Annotations
@RTable()
Linear Supertypes
Serializable, Serializable, Product, Equals, REntity[WikiCount], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. WikiCount
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. REntity
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new WikiCount(pid: ObjectId, count: Long = 1, wpath: Option[String] = None, _id: ObjectId = new ObjectId())

    Permalink

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. val _id: ObjectId

    Permalink
  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. val count: Long

    Permalink
  8. def create(implicit txn: Txn): Unit

    Permalink
    Definition Classes
    REntity
  9. def createNoAudit(implicit txn: Txn): Unit

    Permalink
    Definition Classes
    REntity
  10. def delete(implicit txn: Txn): Unit

    Permalink
    Definition Classes
    REntity
  11. def deleteNoAudit(implicit txn: Txn): Unit

    Permalink
    Definition Classes
    REntity
  12. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  13. def finalize(): Unit

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

    Permalink
    Definition Classes
    AnyRef → Any
  15. def grated: com.mongodb.casbah.Imports.DBObject

    Permalink
    Definition Classes
    REntity
  16. def inc: Option[Unit]

    Permalink
  17. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  18. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  19. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  21. val pid: ObjectId

    Permalink
  22. def set(newCount: Long): Unit

    Permalink
  23. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  24. def toJson: String

    Permalink
    Definition Classes
    REntity
  25. def toJsonNice: String

    Permalink
    Definition Classes
    REntity
  26. implicit def toroa(id: ObjectId): as

    Permalink
    Definition Classes
    REntity
  27. def trash(by: String)(implicit txn: Txn): Unit

    Permalink
    Definition Classes
    REntity
  28. def update(implicit txn: Txn): Unit

    Permalink
    Definition Classes
    REntity
  29. def updateNoAudit(implicit txn: Txn): Unit

    Permalink
    Definition Classes
    REntity
  30. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  33. val wpath: Option[String]

    Permalink

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from REntity[WikiCount]

Inherited from AnyRef

Inherited from Any

Ungrouped