net.liftmodules.machine

ProtoStateMachine

trait ProtoStateMachine [MyType <: ProtoStateMachine[MyType, StateType], StateType <: Enumeration] extends KeyedMapper[Long, MyType]

This trait manages state/workflow transition

Self Type
MyType
Linear Supertypes
KeyedMapper[Long, MyType], BaseKeyedMapper, Mapper[MyType], Serializable, Serializable, BaseMapper, FieldContainer, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. ProtoStateMachine
  2. KeyedMapper
  3. BaseKeyedMapper
  4. Mapper
  5. Serializable
  6. Serializable
  7. BaseMapper
  8. FieldContainer
  9. AnyRef
  10. Any
Visibility
  1. Public
  2. All

Type Members

  1. type FieldPF = PartialFunction[String, (NodeSeq) ⇒ NodeSeq]

    Definition Classes
    Mapper
  2. type KeyedMapperType = MyType

    Definition Classes
    KeyedMapper → BaseKeyedMapper
  3. type MapperType = MyType

    Definition Classes
    Mapper → BaseMapper
  4. type Meta = MetaProtoStateMachine[MyType, StateType]

    Shorthand for the meta state machine

  5. type StV = Value

    Shorthand for one of the states

  6. type TheKeyType = Long

    Definition Classes
    KeyedMapper → BaseKeyedMapper

Abstract Value Members

  1. def getSingleton : Meta

    Implement a method that returns the singleton

    Implement a method that returns the singleton

    Attributes
    abstract
    Definition Classes
    ProtoStateMachine → KeyedMapper → Mapper

Concrete Value Members

  1. def ! (event: Event): Unit

  2. def != (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  3. def != (arg0: Any): Boolean

    Attributes
    final
    Definition Classes
    Any
  4. def ## (): Int

    Attributes
    final
    Definition Classes
    AnyRef → Any
  5. def == (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  6. def == (arg0: Any): Boolean

    Attributes
    final
    Definition Classes
    Any
  7. def allFields : Seq[BaseField]

    Definition Classes
    Mapper → FieldContainer
  8. def appendField (pf: FieldPF): Unit

    Definition Classes
    Mapper
  9. def asHtml : NodeSeq

    Definition Classes
    Mapper
  10. def asInstanceOf [T0] : T0

    Attributes
    final
    Definition Classes
    Any
  11. def asJs : JsExp

    Definition Classes
    Mapper
  12. def asSafeJs (f: KeyObfuscator): JsExp

    Definition Classes
    KeyedMapper
  13. def asValid : Box[MyType]

    Definition Classes
    Mapper
  14. def checkNames : Unit

    Definition Classes
    Mapper
  15. def clone (): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  16. def comparePrimaryKeys (other: MyType): Boolean

    Definition Classes
    KeyedMapper → Mapper
  17. def connectionIdentifier : ConnectionIdentifier

    Definition Classes
    Mapper
  18. def connectionIdentifier (id: ConnectionIdentifier): MyType

    Definition Classes
    Mapper
  19. def countryField : Box[MappedCountry[MyType]]

    Definition Classes
    Mapper
  20. object currentState extends MappedInt[MyType]

    The column in the database that stores the current state

  21. def dbCalculateConnectionIdentifier : PartialFunction[MyType, ConnectionIdentifier]

    Definition Classes
    Mapper
  22. def dbName : String

    Definition Classes
    Mapper → BaseMapper
  23. def db_can_delete_? : Boolean

    Definition Classes
    Mapper
  24. def delete_! : Boolean

    Definition Classes
    Mapper
  25. def dirty_? : Boolean

    Definition Classes
    Mapper
  26. def doPostCommit (func: () ⇒ Unit): MyType

    Definition Classes
    Mapper
  27. def eq (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  28. def equals (other: Any): Boolean

    Definition Classes
    KeyedMapper → AnyRef → Any
  29. def fieldByName [T] (fieldName: String): Box[MappedField[T, MyType]]

    Definition Classes
    Mapper
  30. def fieldMapperPF (transform: (BaseOwnedMappedField[MyType]) ⇒ NodeSeq): FieldPF

    Definition Classes
    Mapper
  31. def fieldPF : FieldPF

    Definition Classes
    Mapper
  32. def finalize (): Unit

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  33. def flatMapFieldTitleForm [T] (func: (NodeSeq, Box[NodeSeq], NodeSeq) ⇒ Seq[T]): List[T]

    Definition Classes
    Mapper
  34. def flatMapFieldTitleForm2 [T] (func: (NodeSeq, net.liftweb.mapper.MappedField[_, MyType], NodeSeq) ⇒ Seq[T]): List[T]

    Definition Classes
    Mapper
  35. def formFields : List[net.liftweb.mapper.MappedField[_, MyType]]

    Definition Classes
    Mapper
  36. def getClass (): java.lang.Class[_]

    Attributes
    final
    Definition Classes
    AnyRef → Any
  37. def hashCode (): Int

    Definition Classes
    KeyedMapper → AnyRef → Any
  38. def htmlLine : NodeSeq

    Definition Classes
    Mapper
  39. object id extends MappedLongIndex[MyType]

    the primary key for the database

  40. object inProcess extends MappedBoolean[MyType]

  41. def isInstanceOf [T0] : Boolean

    Attributes
    final
    Definition Classes
    Any
  42. def localeField : Box[MappedLocale[MyType]]

    Definition Classes
    Mapper
  43. def mapFieldTitleForm [T] (func: (NodeSeq, Box[NodeSeq], NodeSeq) ⇒ T): List[T]

    Definition Classes
    Mapper
  44. def ne (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  45. object nextTransitionAt extends MappedLong[MyType] with LifecycleCallbacks

  46. def notify (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  47. def notifyAll (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  48. def prependField (pf: FieldPF): Unit

    Definition Classes
    Mapper
  49. def primaryKeyField : ProtoStateMachine.this.id.type

    get the primary key field

    get the primary key field

    Definition Classes
    ProtoStateMachine → KeyedMapper → BaseKeyedMapper
  50. def processEvent (event: Event): Unit

    Process an event

  51. def reload : MyType

    Definition Classes
    KeyedMapper
  52. def runSafe [T] (f: ⇒ T): T

    Definition Classes
    Mapper
  53. def safe_? : Boolean

    Attributes
    final
    Definition Classes
    Mapper
  54. def save (): Boolean

    Definition Classes
    Mapper → BaseMapper
  55. def saveMe (): MyType

    Definition Classes
    Mapper
  56. def saved_? : Boolean

    Definition Classes
    Mapper
  57. def setupTime (when: TimeSpan): Unit

  58. def state : Value

    Get the current state

  59. def suplementalJs (ob: Box[KeyObfuscator]): List[(String, JsExp)]

    Definition Classes
    Mapper
  60. def synchronized [T0] (arg0: ⇒ T0): T0

    Attributes
    final
    Definition Classes
    AnyRef
  61. def terminate (from: StV, to: StV, event: Event): Unit

    This item has reached a terminating state.

    This item has reached a terminating state. This method will remove the item from the database. Override this method (please call super at the end of your method) to do any cleanup.

  62. implicit def thisToMappee (in: Mapper[MyType]): MyType

    Attributes
    implicit
    Definition Classes
    Mapper
  63. def timeZoneField : Box[MappedTimeZone[MyType]]

    Definition Classes
    Mapper
  64. object timedEventAt extends MappedLong[MyType]

    The column in the database that stores the next time an event should go off

  65. def toForm (button: Box[String], redoSnippet: (NodeSeq) ⇒ NodeSeq, onSuccess: (MyType) ⇒ Unit): NodeSeq

    Definition Classes
    Mapper
  66. def toForm (button: Box[String], f: (MyType) ⇒ Any): NodeSeq

    Definition Classes
    Mapper
  67. def toForm (button: Box[String], onSuccess: String): NodeSeq

    Definition Classes
    Mapper
  68. def toHtml : NodeSeq

    Definition Classes
    Mapper
  69. def toString (): String

    Definition Classes
    Mapper → AnyRef → Any
  70. def toXml : Elem

    Definition Classes
    Mapper
  71. def transition (from: StV, to: StV, why: Event): Unit

    This method is called on a transition from one state to another.

    This method is called on a transition from one state to another. Override this method to perform an action. Please call super to actually change the state and save the instance

  72. def validate : List[FieldError]

    Definition Classes
    Mapper
  73. def wait (): Unit

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

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

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from KeyedMapper[Long, MyType]

Inherited from BaseKeyedMapper

Inherited from Mapper[MyType]

Inherited from Serializable

Inherited from Serializable

Inherited from BaseMapper

Inherited from FieldContainer

Inherited from AnyRef

Inherited from Any