Trait

net.liftmodules.machine

ProtoStateMachine

Related Doc: package machine

Permalink

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], SourceInfo, Serializable, Serializable, BaseMapper, FieldContainer, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ProtoStateMachine
  2. KeyedMapper
  3. BaseKeyedMapper
  4. Mapper
  5. SourceInfo
  6. Serializable
  7. Serializable
  8. BaseMapper
  9. FieldContainer
  10. AnyRef
  11. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

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

    Permalink
    Definition Classes
    Mapper
  2. type KeyedMapperType = MyType

    Permalink
    Definition Classes
    KeyedMapper → BaseKeyedMapper
  3. type MapperType = MyType

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

    Permalink

    Shorthand for the meta state machine

  5. type StV = StateType.Value

    Permalink

    Shorthand for one of the states

  6. type TheKeyType = Long

    Permalink
    Definition Classes
    KeyedMapper → BaseKeyedMapper

Abstract Value Members

  1. abstract def getSingleton: MyType.Meta

    Permalink

    Implement a method that returns the singleton

    Implement a method that returns the singleton

    Definition Classes
    ProtoStateMachine → KeyedMapper → Mapper

Concrete Value Members

  1. def !(event: Event): Unit

    Permalink
  2. final def !=(arg0: Any): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  5. def allFieldNames(): Seq[(String, SourceFieldMetadata)]

    Permalink
    Definition Classes
    Mapper → SourceInfo
  6. def allFields: Seq[BaseField]

    Permalink
    Definition Classes
    Mapper → FieldContainer
  7. def appendFieldTransform(transform: CssSel): Unit

    Permalink
    Definition Classes
    Mapper
  8. def asHtml: NodeSeq

    Permalink
    Definition Classes
    Mapper
  9. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  10. def asJs: JsExp

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

    Permalink
    Definition Classes
    KeyedMapper
  12. def asValid: Box[MyType]

    Permalink
    Definition Classes
    Mapper
  13. def checkNames: Unit

    Permalink
    Definition Classes
    Mapper
  14. def clone(): AnyRef

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

    Permalink
    Definition Classes
    KeyedMapper → Mapper
  16. def connectionIdentifier: ConnectionIdentifier

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

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

    Permalink
    Definition Classes
    Mapper
  19. object currentState extends MappedInt[MyType]

    Permalink

    The column in the database that stores the current state

  20. def dbCalculateConnectionIdentifier: PartialFunction[MyType, ConnectionIdentifier]

    Permalink
    Definition Classes
    Mapper
  21. def dbName: String

    Permalink
    Definition Classes
    Mapper → BaseMapper
  22. def db_can_delete_?: Boolean

    Permalink
    Definition Classes
    Mapper
  23. def delete_!: Boolean

    Permalink
    Definition Classes
    Mapper
  24. def dirty_?: Boolean

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

    Permalink
    Definition Classes
    Mapper
  26. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  27. def equals(other: Any): Boolean

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

    Permalink
    Definition Classes
    Mapper
  29. def fieldMapperTransforms(fieldTransform: (BaseOwnedMappedField[MyType]) ⇒ NodeSeq): Seq[CssSel]

    Permalink
    Definition Classes
    Mapper
  30. def fieldTransforms: Seq[CssSel]

    Permalink
    Definition Classes
    Mapper
  31. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  32. def findSourceField(name: String): Box[SourceFieldInfo]

    Permalink
    Definition Classes
    Mapper → SourceInfo
  33. def flatMapFieldTitleForm[T](func: (NodeSeq, Box[NodeSeq], NodeSeq) ⇒ Seq[T]): List[T]

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

    Permalink
    Definition Classes
    Mapper
  35. def formFields: List[MappedField[_, MyType]]

    Permalink
    Definition Classes
    Mapper
  36. final def getClass(): Class[_]

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

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

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

    Permalink

    the primary key for the database

  40. object inProcess extends MappedBoolean[MyType]

    Permalink
  41. final def isInstanceOf[T0]: Boolean

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

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

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

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

    Permalink
  46. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  48. def prependFieldTransform(transform: CssSel): Unit

    Permalink
    Definition Classes
    Mapper
  49. def primaryKeyField: MyType.id.type

    Permalink

    get the primary key field

    get the primary key field

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

    Permalink

    Process an event

  51. def reload: MyType

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

    Permalink
    Definition Classes
    Mapper
  53. final def safe_?: Boolean

    Permalink
    Definition Classes
    Mapper
  54. def save(): Boolean

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

    Permalink
    Definition Classes
    Mapper
  56. def saved_?: Boolean

    Permalink
    Definition Classes
    Mapper
  57. def setupTime(when: liftweb.util.Helpers.TimeSpan): Unit

    Permalink
  58. def state: StateType.Value

    Permalink

    Get the current state

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

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

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

    Permalink

    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

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

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

    Permalink

    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

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

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

    Permalink
    Definition Classes
    Mapper
  68. def toHtml: NodeSeq

    Permalink
    Definition Classes
    Mapper
  69. def toString(): String

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

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

    Permalink

    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]

    Permalink
    Definition Classes
    Mapper
  73. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from KeyedMapper[Long, MyType]

Inherited from BaseKeyedMapper

Inherited from Mapper[MyType]

Inherited from SourceInfo

Inherited from Serializable

Inherited from Serializable

Inherited from BaseMapper

Inherited from FieldContainer

Inherited from AnyRef

Inherited from Any

Ungrouped