net.liftweb.machine.ProtoStateMachine

trait ProtoStateMachine

trait ProtoStateMachine[MyType <: ProtoStateMachine[MyType, StateType], StateType <: Enumeration]

 extends KeyedMapper[Long, MyType]


This trait manages state/workflow transition


Source: ProtoStateMachine.scala(30)

Direct Known Subclasses

MetaProtoStateMachine,

 Fields

allFields.. def allFields Seq[BaseField] Mapper
asHtml.. def asHtml NodeSeq Mapper
asJs.. def asJs JsExp Mapper
asValid.. def asValid Box[A] Mapper
connectionIdentifier.. def connectionIdentifier ConnectionIdentifier Mapper
countryField.. def countryField Box[MappedCountry[A]] Mapper
currentState.. object currentState
The column in the database that stores the current state


 extends MappedInt[MyType]
dbCalculateConnectionIdentifier.. def dbCalculateConnectionIdentifier PartialFunction[A, ConnectionIdentifier] Mapper
dbName.. def dbName String Mapper
db_can_delete_?.. def db_can_delete_? Boolean Mapper
delete_!.. def delete_! Boolean Mapper
dirty_?.. def dirty_? Boolean Mapper
fieldPF.. def fieldPF PartialFunction Mapper
formFields.. def formFields List[MappedField[Any, A]] Mapper
getSingleton.. abstract def getSingleton
Implement a method that returns the singleton
MetaProtoStateMachine
htmlLine.. def htmlLine NodeSeq Mapper
id.. object id
the primary key for the database


 extends MappedLongIndex[MyType]
inProcess.. object inProcess

 extends MappedBoolean[MyType]
localeField.. def localeField Box[MappedLocale[A]] Mapper
nextTransitionAt.. object nextTransitionAt

 extends MappedLong[MyType] with LifecycleCallbacks
primaryKeyField.. override def primaryKeyField
get the primary key field
id
reload.. def reload OwnerType KeyedMapper
safe_?.. final def safe_? Boolean Mapper
saved_?.. def saved_? Boolean Mapper
state.. def state
Get the current state
Value
timeZoneField.. def timeZoneField Box[MappedTimeZone[A]] Mapper
timedEventAt.. object timedEventAt
The column in the database that stores the next time an event should go off


 extends MappedLong[MyType]
toHtml.. def toHtml NodeSeq Mapper
toXml.. def toXml Elem Mapper
validate.. def validate List[FieldError] Mapper

 Methods

!.. def !(event : Event) Unit
!=.. final def !=(arg0 : Object) Boolean AnyRef
!=.. final def !=(arg0 : Any) Boolean Any
==.. final def ==(arg0 : Any) Boolean Any
==.. final def ==(arg0 : Object) Boolean AnyRef
appendField.. def appendField(arg0 : PartialFunction) Unit Mapper
asInstanceOf.. final def asInstanceOf[T0] T0 Any
asSafeJs.. def asSafeJs(arg0 : KeyObfuscator) JsExp KeyedMapper
checkNames.. def checkNames Unit Mapper
clone.. protected def clone Object AnyRef
comparePrimaryKeys.. override def comparePrimaryKeys(arg0 : OwnerType) Boolean KeyedMapper
connectionIdentifier.. def connectionIdentifier(arg0 : ConnectionIdentifier) A Mapper
doPostCommit.. def doPostCommit(arg0 : () => Unit) A Mapper
eq.. final def eq(arg0 : Object) Boolean AnyRef
equals.. override def equals(arg0 : Any) Boolean KeyedMapper
fieldByName.. def fieldByName[T](arg0 : String) Box[MappedField[T, A]] Mapper
fieldMapperPF.. def fieldMapperPF(arg0 : (BaseOwnedMappedField[A]) => NodeSeq) PartialFunction Mapper
finalize.. protected def finalize Unit AnyRef
flatMapFieldTitleForm.. def flatMapFieldTitleForm[T](arg0 : (NodeSeq, Box[NodeSeq], NodeSeq) => Seq[T]) List[T] Mapper
flatMapFieldTitleForm2.. def flatMapFieldTitleForm2[T](arg0 : (NodeSeq, MappedField[Any, A], NodeSeq) => Seq[T]) List[T] Mapper
getClass.. final def getClass Class[Any] AnyRef
hashCode.. override def hashCode Int KeyedMapper
isInstanceOf.. final def isInstanceOf[T0] Boolean Any
mapFieldTitleForm.. def mapFieldTitleForm[T](arg0 : (NodeSeq, Box[NodeSeq], NodeSeq) => T) List[T] Mapper
ne.. final def ne(arg0 : Object) Boolean AnyRef
notify.. final def notify Unit AnyRef
notifyAll.. final def notifyAll Unit AnyRef
prependField.. def prependField(arg0 : PartialFunction) Unit Mapper
processEvent.. def processEvent(event : Event)
Process an event
Unit
runSafe.. def runSafe[T](arg0 : => T) T Mapper
save.. def save Boolean Mapper
saveMe.. def saveMe A Mapper
setupTime.. def setupTime(when : TimeSpan) Unit
suplementalJs.. def suplementalJs(arg0 : Box[KeyObfuscator]) List[(String, JsExp)] Mapper
synchronized.. final def synchronized[T0](arg0 : T0) T0 AnyRef
terminate.. def terminate(from : Value, to : Value, event : Event)
This item has reached a terminating state [details]
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.
Unit
thisToMappee.. implicit def thisToMappee(arg0 : Mapper[A]) A Mapper
toForm.. def toForm(arg0 : Box[String], arg1 : String) NodeSeq Mapper
toForm.. def toForm(arg0 : Box[String], arg1 : (NodeSeq) => NodeSeq, arg2 : (A) => Unit) NodeSeq Mapper
toForm.. def toForm(arg0 : Box[String], arg1 : (A) => Any) NodeSeq Mapper
toString.. override def toString String Mapper
transition.. def transition(from : Value, to : Value, why : Event)
This method is called on a transition from one state to another [details]
Override this method to perform an action. Please call super to actually change the state and save the instance
Unit
wait.. final def wait(arg0 : Long, arg1 : Int) Unit AnyRef
wait.. final def wait Unit AnyRef
wait.. final def wait(arg0 : Long) Unit AnyRef
Copyright (c) 2006-2010 WorldWide Conferencing, LLC. All Rights Reserved.