net.liftweb.sitemap.Loc.Unless

class Unless

case class Unless(val test : () => Boolean, val failMsg : Function0)

 extends LocParam[Any] with Product


Unless the test returns True, the page can be accessed, otherwise, the result of FailMsg will be sent as a response to the browser. If the Loc cannot be accessed, it will not be displayed in menus.
param
failMsg - -- what to return the the browser (e.g., 304, etc.) if the page is accessed.
test - -- the function that tests access to the page


Source: Loc.scala(432)

 Constructors

def this(test : () => Boolean, failMsg : Function0)

 Fields

productArity.. override def productArity Int
productPrefix.. override def productPrefix String

 Methods

!=.. final def !=(arg0 : Any) Boolean Any
!=.. final def !=(arg0 : Object) Boolean AnyRef
==.. final def ==(arg0 : Object) Boolean AnyRef
==.. final def ==(arg0 : Any) Boolean Any
asInstanceOf.. final def asInstanceOf[T0] T0 Any
clone.. protected def clone Object AnyRef
eq.. final def eq(arg0 : Object) Boolean AnyRef
equals.. override def equals(arg0 : Any) Boolean
finalize.. protected def finalize Unit AnyRef
getClass.. final def getClass Class[Any] AnyRef
hashCode.. override def hashCode Int
isInstanceOf.. final def isInstanceOf[T0] Boolean Any
ne.. final def ne(arg0 : Object) Boolean AnyRef
notify.. final def notify Unit AnyRef
notifyAll.. final def notifyAll Unit AnyRef
onCreate.. def onCreate(loc : Loc[Any]) Unit LocParam
productElement.. override def productElement(arg0 : Int) Any
synchronized.. final def synchronized[T0](arg0 : T0) T0 AnyRef
toString.. override def toString String
wait.. final def wait Unit AnyRef
wait.. final def wait(arg0 : Long) Unit AnyRef
wait.. final def wait(arg0 : Long, arg1 : Int) Unit AnyRef
Copyright (c) 2006-2010 WorldWide Conferencing, LLC. All Rights Reserved.