com.atomizesoftware.spin.controllers.OrderControllerComponent

OrderController

class OrderController extends ScalatraServlet with SpinStack with JacksonJsonSupport with (OrderControllerComponent.this)#SpinAuthenticationSupport with Validation with ExportCSV

Linear Supertypes
ExportCSV, Validation, (OrderControllerComponent.this)#SpinAuthenticationSupport, BasicAuthSupport[AuthenticatedUser], ScentrySupport[AuthenticatedUser], JacksonJsonSupport, JValueResult, JacksonJsonOutput, JsonMethods, JsonSupport[JValue], JsonOutput[JValue], JsonMethods[JValue], ApiFormats, SpinStack, ScalatraServlet, ServletBase, ScalatraBase, CookieSupport, DefaultImplicitConversions, LowPriorityImplicitConversions, LowestPriorityImplicitConversions, TypeConverterSupport, ScalatraParamsImplicits, Initializable, DynamicScope, RequestResponseScope, CoreDsl, Control, Handler, ScalatraContext, CookieContext, SessionSupport, ServletApiImplicits, HttpServlet, GenericServlet, Serializable, ServletConfig, Servlet, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. OrderController
  2. ExportCSV
  3. Validation
  4. SpinAuthenticationSupport
  5. BasicAuthSupport
  6. ScentrySupport
  7. JacksonJsonSupport
  8. JValueResult
  9. JacksonJsonOutput
  10. JsonMethods
  11. JsonSupport
  12. JsonOutput
  13. JsonMethods
  14. ApiFormats
  15. SpinStack
  16. ScalatraServlet
  17. ServletBase
  18. ScalatraBase
  19. CookieSupport
  20. DefaultImplicitConversions
  21. LowPriorityImplicitConversions
  22. LowestPriorityImplicitConversions
  23. TypeConverterSupport
  24. ScalatraParamsImplicits
  25. Initializable
  26. DynamicScope
  27. RequestResponseScope
  28. CoreDsl
  29. Control
  30. Handler
  31. ScalatraContext
  32. CookieContext
  33. SessionSupport
  34. ServletApiImplicits
  35. HttpServlet
  36. GenericServlet
  37. Serializable
  38. ServletConfig
  39. Servlet
  40. AnyRef
  41. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new OrderController()

Type Members

  1. trait Config extends AnyRef

    Definition Classes
    Initializable
  2. type ConfigT = ServletConfig

    Definition Classes
    ScalatraServlet → ServletBase → Initializable
  3. abstract type ScentryConfiguration <: ScentryConfig

    Definition Classes
    ScentrySupport
  4. sealed class TypedMultiParams extends AnyRef

    Definition Classes
    ScalatraParamsImplicits
  5. sealed class TypedParams extends AnyRef

    Definition Classes
    ScalatraParamsImplicits

Value Members

  1. final def !=(arg0: Any): Boolean

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

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

    Definition Classes
    AnyRef → Any
  4. def acceptHeader(implicit request: HttpServletRequest): List[String]

    Definition Classes
    ApiFormats
  5. def acceptedFormats(accepted: Symbol*): Boolean

    Attributes
    protected
    Definition Classes
    ApiFormats
  6. def addMimeMapping(mime: String, extension: String): Unit

    Attributes
    protected
    Definition Classes
    ApiFormats
  7. def addRoute(method: HttpMethod, transformers: Seq[RouteTransformer], action: ⇒ Any): Route

    Attributes
    protected
    Definition Classes
    ScalatraBase
  8. def addSessionId(uri: String)(implicit response: HttpServletResponse): String

    Attributes
    protected
    Definition Classes
    ScalatraBase
  9. def addStatusRoute(codes: Range, action: ⇒ Any): Unit

    Attributes
    protected[org.scalatra]
    Definition Classes
    ScalatraBase
  10. def after(transformers: RouteTransformer*)(fun: ⇒ Any): Unit

    Definition Classes
    ScalatraBase → CoreDsl
  11. implicit val anyToBoolean: TypeConverter[Any, Boolean]

    Definition Classes
    LowPriorityImplicitConversions
  12. implicit val anyToByte: TypeConverter[Any, Byte]

    Definition Classes
    LowPriorityImplicitConversions
  13. implicit val anyToDouble: TypeConverter[Any, Double]

    Definition Classes
    LowPriorityImplicitConversions
  14. implicit val anyToFloat: TypeConverter[Any, Float]

    Definition Classes
    LowPriorityImplicitConversions
  15. implicit val anyToInt: TypeConverter[Any, Int]

    Definition Classes
    LowPriorityImplicitConversions
  16. implicit val anyToLong: TypeConverter[Any, Long]

    Definition Classes
    LowPriorityImplicitConversions
  17. implicit val anyToShort: TypeConverter[Any, Short]

    Definition Classes
    LowPriorityImplicitConversions
  18. implicit val anyToString: TypeConverter[Any, String]

    Definition Classes
    LowPriorityImplicitConversions
  19. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  20. def asJValue[T](obj: T)(implicit writer: Writer[T]): JValue

    Definition Classes
    JsonMethods
  21. def authenticate()(implicit request: HttpServletRequest, response: HttpServletResponse): Option[AuthenticatedUser]

    Attributes
    protected
    Definition Classes
    ScentrySupport
  22. def authenticateOnLocations(statusCode: Int = 403, haltResponse: Any = None): UserLocations

    Checks if the user has locations associated and if not halts the procedure.

    Checks if the user has locations associated and if not halts the procedure.

    returns

    a UserLocation that has the seesAll boolean and a list of location ids.

    Definition Classes
    SpinAuthenticationSupport
  23. def basicAuth()(implicit request: HttpServletRequest, response: HttpServletResponse): Option[AuthenticatedUser]

    Checks if the user can be authenticated through basic http authentication.

    Checks if the user can be authenticated through basic http authentication.

    Checks if the request has basic authentication headers and if it is a basic auth request. If not, halts the processing of the request and returns an error response. If the request supports basic auth, it is tried.

    Attributes
    protected
    Definition Classes
    SpinAuthenticationSupport → BasicAuthSupport
  24. def before(transformers: RouteTransformer*)(fun: ⇒ Any): Unit

    Definition Classes
    ScalatraBase → CoreDsl
  25. implicit def booleanBlock2RouteMatcher(block: ⇒ Boolean): RouteMatcher

    Attributes
    protected
    Definition Classes
    ScalatraBase
  26. def cacheRequestBodyAsString: Boolean

    Attributes
    protected
    Definition Classes
    JsonSupport
  27. def checkLongId(id: Option[Long]): Long

    Checks if the id is a long

    Checks if the id is a long

    id

    to check

    returns

    id if is a long, BadRequestException otherwise.

    Definition Classes
    Validation
  28. def checkStringKey(key: Option[String]): String

    Checks if the code is a string

    Checks if the code is a string

    key

    to check

    returns

    key if is a string, BadRequestException otherwise.

    Definition Classes
    Validation
  29. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. def compact(d: JValue): String

    Definition Classes
    JsonMethods → JsonMethods
  31. var config: ConfigT

    Definition Classes
    ScalatraBase
  32. implicit def configWrapper(config: ConfigT): Config { object initParameters }

    Attributes
    protected
    Definition Classes
    ServletBase → Initializable
  33. def configureScentry(): Unit

    Attributes
    protected
    Definition Classes
    SpinAuthenticationSupport → ScentrySupport
  34. def contentType: String

    Definition Classes
    ScalatraContext
  35. def contentTypeInferrer: ContentTypeInferrer

    Attributes
    protected
    Definition Classes
    ApiFormats → ScalatraBase
  36. def contentType_=(contentType: String): Unit

    Definition Classes
    ScalatraContext
  37. def contextPath: String

    Attributes
    protected
    Definition Classes
    ScalatraBase
  38. implicit def cookieOptions: CookieOptions

    Definition Classes
    CookieContext
  39. def cookies: SweetCookies

    Definition Classes
    CookieContext
  40. implicit def currentUser: AuthenticatedUser

    Gets the username from the authenticated user.

    Gets the username from the authenticated user.

    Definition Classes
    SpinAuthenticationSupport
  41. def currentUserId: Long

    Gets the id from the authenticated user.

    Gets the id from the authenticated user.

    Definition Classes
    SpinAuthenticationSupport
  42. def defaultAcceptedFormats: List[Symbol]

    Definition Classes
    ApiFormats
  43. val defaultCharacterEncoding: String

    Attributes
    protected
    Definition Classes
    ScalatraBase
  44. def defaultFormat: Symbol

    Definition Classes
    ApiFormats
  45. implicit def defaultStringToSeq[T](implicit elementConverter: TypeConverter[String, T], mf: Manifest[T]): TypeConverter[String, Seq[T]]

    Definition Classes
    DefaultImplicitConversions
  46. def delete(transformers: RouteTransformer*)(action: ⇒ Any): Route

    Definition Classes
    ScalatraBase → CoreDsl
  47. def destroy(): Unit

    Definition Classes
    ScalatraServlet → GenericServlet → Servlet
  48. def doDelete(arg0: HttpServletRequest, arg1: HttpServletResponse): Unit

    Attributes
    protected[javax.servlet.http]
    Definition Classes
    HttpServlet
    Annotations
    @throws( classOf[java.io.IOException] ) @throws( ... )
  49. def doGet(arg0: HttpServletRequest, arg1: HttpServletResponse): Unit

    Attributes
    protected[javax.servlet.http]
    Definition Classes
    HttpServlet
    Annotations
    @throws( classOf[java.io.IOException] ) @throws( ... )
  50. def doHead(arg0: HttpServletRequest, arg1: HttpServletResponse): Unit

    Attributes
    protected[javax.servlet.http]
    Definition Classes
    HttpServlet
    Annotations
    @throws( classOf[java.io.IOException] ) @throws( ... )
  51. var doMethodNotAllowed: (Set[HttpMethod]) ⇒ Any

    Attributes
    protected
    Definition Classes
    ScalatraBase
  52. var doNotFound: Action

    Attributes
    protected
    Definition Classes
    ScalatraServlet → ScalatraBase
  53. def doOptions(arg0: HttpServletRequest, arg1: HttpServletResponse): Unit

    Attributes
    protected[javax.servlet.http]
    Definition Classes
    HttpServlet
    Annotations
    @throws( classOf[java.io.IOException] ) @throws( ... )
  54. def doPost(arg0: HttpServletRequest, arg1: HttpServletResponse): Unit

    Attributes
    protected[javax.servlet.http]
    Definition Classes
    HttpServlet
    Annotations
    @throws( classOf[java.io.IOException] ) @throws( ... )
  55. def doPut(arg0: HttpServletRequest, arg1: HttpServletResponse): Unit

    Attributes
    protected[javax.servlet.http]
    Definition Classes
    HttpServlet
    Annotations
    @throws( classOf[java.io.IOException] ) @throws( ... )
  56. def doTrace(arg0: HttpServletRequest, arg1: HttpServletResponse): Unit

    Attributes
    protected[javax.servlet.http]
    Definition Classes
    HttpServlet
    Annotations
    @throws( classOf[java.io.IOException] ) @throws( ... )
  57. implicit def enrichRequest(request: HttpServletRequest): RichRequest

    Definition Classes
    ServletApiImplicits
  58. implicit def enrichResponse(response: HttpServletResponse): RichResponse

    Definition Classes
    ServletApiImplicits
  59. implicit def enrichServletContext(servletContext: ServletContext): RichServletContext

    Definition Classes
    ServletApiImplicits
  60. implicit def enrichSession(session: HttpSession): RichSession

    Definition Classes
    ServletApiImplicits
  61. def environment: String

    Definition Classes
    ScalatraBase
  62. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  63. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  64. def error(handler: ErrorHandler): Unit

    Definition Classes
    ScalatraBase → CoreDsl
  65. var errorHandler: ErrorHandler

    Attributes
    protected
    Definition Classes
    ScalatraBase
  66. def executeRoutes(): Unit

    Attributes
    protected
    Definition Classes
    ScalatraBase
  67. def existsInUserLocations(locationId: Option[Long]): Boolean

    Definition Classes
    SpinAuthenticationSupport
  68. def existsInUserLocations(locationId: Long): Boolean

    Definition Classes
    SpinAuthenticationSupport
  69. def exportToCsv(fileName: String, header: Array[String], lines: List[Array[String]]): File

    Definition Classes
    ExportCSV
  70. def extractStatusCode(e: HaltException): Int

    Attributes
    protected
    Definition Classes
    ScalatraBase
  71. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  72. def findTopMostLocationForUser: Option[Long]

    Tries to find a top most location for the current user.

    Tries to find a top most location for the current user.

    If the user can see all locations, None is returned If the user has locations we search for a top most location and return its id.

    returns

    a Long if a top most location was found for the user, None otherwise.

    Definition Classes
    SpinAuthenticationSupport
  73. def format(implicit request: HttpServletRequest, response: HttpServletResponse): String

    Definition Classes
    ApiFormats
  74. def formatForMimeTypes(mimeTypes: String*): Option[String]

    Attributes
    protected
    Definition Classes
    ApiFormats
  75. def format_=(formatValue: String): Unit

    Definition Classes
    ScalatraContext
  76. def format_=(formatValue: Symbol): Unit

    Definition Classes
    ScalatraContext
  77. val formats: Map[String, String]

    Definition Classes
    ApiFormats
  78. def fromJValue[T](json: JValue)(implicit reader: Reader[T]): T

    Definition Classes
    JsonMethods
  79. def fromSession: PartialFunction[String, AuthenticatedUser]

    Defines how to get a user from a session by its id.

    Defines how to get a user from a session by its id.

    Attributes
    protected
    Definition Classes
    SpinAuthenticationSupport → ScentrySupport
  80. def fullUrl(path: String, params: Iterable[(String, Any)], includeContextPath: Boolean, includeServletPath: Boolean, withSessionId: Boolean)(implicit request: HttpServletRequest, response: HttpServletResponse): String

    Definition Classes
    ScalatraBase
  81. def get(transformers: RouteTransformer*)(action: ⇒ Any): Route

    Definition Classes
    ScalatraBase → CoreDsl
  82. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  83. def getInitParameter(arg0: String): String

    Definition Classes
    GenericServlet → ServletConfig
  84. def getInitParameterNames(): Enumeration[String]

    Definition Classes
    GenericServlet → ServletConfig
  85. def getLastModified(arg0: HttpServletRequest): Long

    Attributes
    protected[javax.servlet.http]
    Definition Classes
    HttpServlet
  86. def getSearchString(body: JValue): String

    Returns a string representation of the search conditions requested by the user.

    Returns a string representation of the search conditions requested by the user.

    returns

    a string representing the search criteria

  87. def getServletConfig(): ServletConfig

    Definition Classes
    GenericServlet → Servlet
  88. def getServletContext(): ServletContext

    Definition Classes
    GenericServlet → ServletConfig
  89. def getServletInfo(): String

    Definition Classes
    GenericServlet → Servlet
  90. def getServletName(): String

    Definition Classes
    GenericServlet → ServletConfig
  91. def halt(result: ActionResult): Nothing

    Definition Classes
    Control
  92. def halt[T](status: Integer, body: T, headers: Map[String, String], reason: String)(implicit arg0: Manifest[T]): Nothing

    Definition Classes
    Control
  93. def haltIfUserIsNotAllowedIn(locationId: Option[Long]): Unit

    Checks if the user has a particular location id within the one he/she can see.

    Checks if the user has a particular location id within the one he/she can see.

    If the user can see all locations, nothing is done. Otherwise we search for the location id within the user locations.

    returns

    403 with error response if user doesn't have the required location.

    Definition Classes
    SpinAuthenticationSupport
  94. def handle(request: HttpServletRequest, response: HttpServletResponse): Unit

    Definition Classes
    ServletBase → ScalatraBase → Handler
  95. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  96. def head(transformers: RouteTransformer*)(action: ⇒ Any): Route

    Definition Classes
    ScalatraBase → CoreDsl
  97. def inferFromFormats: ContentTypeInferrer

    Attributes
    protected
    Definition Classes
    ApiFormats
  98. def init(config: ServletConfig): Unit

    Definition Classes
    ScalatraServlet → GenericServlet → Servlet
  99. def init(): Unit

    Definition Classes
    GenericServlet
    Annotations
    @throws( ... )
  100. def initParameter(name: String): Option[String]

    Definition Classes
    ScalatraBase
  101. def initialize(config: ConfigT): Unit

    Definition Classes
    ScentrySupport → Initializable
  102. def invoke(matchedRoute: MatchedRoute): Option[Any]

    Attributes
    protected
    Definition Classes
    JsonSupport → ScalatraBase
  103. def isAnonymous(implicit request: HttpServletRequest): Boolean

    Attributes
    protected
    Definition Classes
    ScentrySupport
  104. def isAsyncExecutable(result: Any): Boolean

    Attributes
    protected
    Definition Classes
    ScalatraBase
  105. def isAuthenticated(implicit request: HttpServletRequest): Boolean

    Attributes
    protected
    Definition Classes
    ScentrySupport
  106. def isDevelopmentMode: Boolean

    Definition Classes
    ScalatraBase
  107. def isHttps(implicit request: HttpServletRequest): Boolean

    Attributes
    protected
    Definition Classes
    ScalatraBase
  108. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  109. implicit val jsonFormats: Formats

    Attributes
    protected
    Definition Classes
    OrderController → JValueResult
  110. lazy val jsonVulnerabilityGuard: Boolean

    Attributes
    protected
    Definition Classes
    JsonOutput
  111. def jsonpCallbackParameterNames: Iterable[String]

    Definition Classes
    JsonOutput
  112. val locationFilter: List[LocationFilter]

  113. def log(arg0: String, arg1: Throwable): Unit

    Definition Classes
    GenericServlet
  114. def log(arg0: String): Unit

    Definition Classes
    GenericServlet
  115. def logOut()(implicit request: HttpServletRequest, response: HttpServletResponse): Unit

    Attributes
    protected
    Definition Classes
    ScentrySupport
  116. val logger: Logger

    Definition Classes
    SpinAuthenticationSupport
  117. implicit def lowestPriorityAny2T[T](implicit arg0: Manifest[T]): TypeConverter[Any, T]

    Definition Classes
    LowestPriorityImplicitConversions
  118. def mapper: ObjectMapper

    Definition Classes
    JsonMethods
  119. def matchingIds(idRoute: Option[Long], idEntity: Long): Boolean

    Checks if the param and entity id are equal.

    Checks if the param and entity id are equal.

    idRoute

    id param.

    idEntity

    id extracted from request body.

    returns

    true if equal, false otherwise.

    Definition Classes
    Validation
  120. def matchingKeys(keyRoute: Option[String], keyEntity: String): Boolean

    Checks if the param and entity key are equal.

    Checks if the param and entity key are equal.

    keyRoute

    key param.

    keyEntity

    key extracted from request body.

    returns

    true if equal, false otherwise.

    Definition Classes
    Validation
  121. def methodNotAllowed(f: (Set[HttpMethod]) ⇒ Any): Unit

    Definition Classes
    ScalatraBase → CoreDsl
  122. val mimeTypes: Map[String, String]

    Definition Classes
    ApiFormats
  123. def multiParams(implicit request: HttpServletRequest): MultiParams

    Definition Classes
    ScalatraBase
  124. def multiParams(key: String)(implicit request: HttpServletRequest): Seq[String]

    Definition Classes
    ScalatraBase
  125. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  126. def needsHttps: Boolean

    Attributes
    protected
    Definition Classes
    ScalatraBase
  127. def notFound(fun: ⇒ Any): Unit

    Definition Classes
    ScalatraBase → CoreDsl
  128. final def notify(): Unit

    Definition Classes
    AnyRef
  129. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  130. implicit val onlyFormats: Formats

    Attributes
    protected
    Definition Classes
    SpinAuthenticationSupport
  131. def options(transformers: RouteTransformer*)(action: ⇒ Any): Route

    Definition Classes
    ScalatraBase → CoreDsl
  132. def params(implicit request: HttpServletRequest): Params

    Definition Classes
    ScalatraBase
  133. def params(key: Symbol)(implicit request: HttpServletRequest): String

    Definition Classes
    ScalatraBase
  134. def params(key: String)(implicit request: HttpServletRequest): String

    Definition Classes
    ScalatraBase
  135. def parse(in: JsonInput, useBigDecimalForDouble: Boolean): JValue

    Definition Classes
    JsonMethods → JsonMethods
  136. def parseOpt(in: JsonInput, useBigDecimalForDouble: Boolean): Option[JValue]

    Definition Classes
    JsonMethods → JsonMethods
  137. def parseRequestBody(format: String)(implicit request: HttpServletRequest): JValue

    Attributes
    protected
    Definition Classes
    JsonSupport
  138. def parsedBody(implicit request: HttpServletRequest): JValue

    Definition Classes
    JsonSupport
  139. def pass(): Nothing

    Definition Classes
    Control
  140. def patch(transformers: RouteTransformer*)(action: ⇒ Any): Route

    Definition Classes
    ScalatraBase → CoreDsl
  141. implicit def pathPatternParser2RouteMatcher(pattern: PathPattern): RouteMatcher

    Attributes
    protected
    Definition Classes
    ScalatraBase
  142. def post(transformers: RouteTransformer*)(action: ⇒ Any): Route

    Definition Classes
    ScalatraBase → CoreDsl
  143. def pretty(d: JValue): String

    Definition Classes
    JsonMethods → JsonMethods
  144. def put(transformers: RouteTransformer*)(action: ⇒ Any): Route

    Definition Classes
    ScalatraBase → CoreDsl
  145. def readJsonFromBody(bd: String): JValue

    Attributes
    protected
    Definition Classes
    JacksonJsonSupport → JsonSupport
  146. def readJsonFromStream(stream: InputStream): JValue

    Attributes
    protected
    Definition Classes
    JsonSupport
  147. def readJsonFromStreamWithCharset(stream: InputStream, charset: String): JValue

    Attributes
    protected
    Definition Classes
    JacksonJsonSupport → JsonSupport
  148. def readXmlFromBody(bd: String): JValue

    Attributes
    protected
    Definition Classes
    JsonSupport
  149. def readXmlFromStream(stream: InputStream): JValue

    Attributes
    protected
    Definition Classes
    JsonSupport
  150. val realm: String

    Definition Classes
    SpinAuthenticationSupport → BasicAuthSupport
  151. def redirect(uri: String)(implicit request: HttpServletRequest, response: HttpServletResponse): Nothing

    Definition Classes
    ScalatraBase
  152. implicit def regex2RouteMatcher(regex: Regex): RouteMatcher

    Attributes
    protected
    Definition Classes
    ScalatraBase
  153. def registerAuthStrategies(): Unit

    Attributes
    protected
    Definition Classes
    SpinAuthenticationSupport → ScentrySupport
  154. def relativeUrl(path: String, params: Iterable[(String, Any)], includeContextPath: Boolean, includeServletPath: Boolean)(implicit request: HttpServletRequest, response: HttpServletResponse): String

    Definition Classes
    ScalatraBase
  155. def removeRoute(method: String, route: Route): Unit

    Attributes
    protected
    Definition Classes
    ScalatraBase
  156. def removeRoute(method: HttpMethod, route: Route): Unit

    Attributes
    protected
    Definition Classes
    ScalatraBase
  157. def render(value: JValue): JValue

    Definition Classes
    JsonMethods → JsonMethods
  158. def renderHaltException(e: HaltException): Unit

    Attributes
    protected
    Definition Classes
    ScalatraBase
  159. def renderPipeline: RenderPipeline

    Attributes
    protected
    Definition Classes
    JValueResult → ScalatraBase
  160. def renderResponse(actionResult: Any): Unit

    Attributes
    protected
    Definition Classes
    ScalatraBase
  161. def renderResponseBody(actionResult: Any): Unit

    Attributes
    protected
    Definition Classes
    ScalatraBase
  162. def renderUncaughtException(e: Throwable)(implicit request: HttpServletRequest, response: HttpServletResponse): Unit

    Attributes
    protected
    Definition Classes
    ScalatraBase
  163. implicit def request: HttpServletRequest

    Definition Classes
    DynamicScope → RequestResponseScope
  164. def requestFormat(implicit request: HttpServletRequest): String

    Definition Classes
    ApiFormats
  165. val requestLogger: Logger

    Definition Classes
    SpinStack
  166. def requestPath(implicit request: HttpServletRequest): String

    Definition Classes
    ScalatraServlet → ScalatraBase
  167. def requireLocationsToUpdateOrder(order: Order)(implicit s: scala.slick.jdbc.JdbcBackend.Session): Unit

  168. def requirePermission(permission: String): Unit

    Gets the current user and checks if he has permission to do the specified action.

    Gets the current user and checks if he has permission to do the specified action.

    permission

    that needs to be in the user permissions list.

    returns

    403 with error response if user doesn't have the required permission.

    Definition Classes
    SpinAuthenticationSupport
  169. def resourceNotFound(): Any

    Attributes
    protected
    Definition Classes
    ScalatraServlet
  170. implicit def response: HttpServletResponse

    Definition Classes
    DynamicScope → RequestResponseScope
  171. def routeBasePath(implicit request: HttpServletRequest): String

    Attributes
    protected
    Definition Classes
    ScalatraServlet → ScalatraBase
  172. lazy val routes: RouteRegistry

    Definition Classes
    ScalatraBase
  173. def runFilters(filters: Traversable[Route]): Unit

    Attributes
    protected
    Definition Classes
    ScalatraBase
  174. def runRoutes(routes: Traversable[Route]): Stream[Any]

    Attributes
    protected
    Definition Classes
    ScalatraBase
  175. implicit def safe[S, T](f: (S) ⇒ T): TypeConverter[S, T]

    Definition Classes
    TypeConverterSupport
  176. implicit def safeOption[S, T](f: (S) ⇒ Option[T]): TypeConverter[S, T]

    Definition Classes
    TypeConverterSupport
  177. implicit def scalatraContext: ScalatraContext

    Attributes
    protected[this]
    Definition Classes
    ScalatraContext
  178. def scentry(implicit request: HttpServletRequest): Scentry[AuthenticatedUser]

    Attributes
    protected
    Definition Classes
    ScentrySupport
  179. val scentryConfig: ScentryConfiguration

    Attributes
    protected
    Definition Classes
    SpinAuthenticationSupport → ScentrySupport
  180. def scentryOption(implicit request: HttpServletRequest): Option[Scentry[AuthenticatedUser]]

    Attributes
    protected
    Definition Classes
    ScentrySupport
  181. def seesAllLocations(user: User): Boolean

    Checks if the current user is able to see all locations based on its groups.

    Checks if the current user is able to see all locations based on its groups.

    returns

    true if it is able to see all locations, false otherwise

    Definition Classes
    SpinAuthenticationSupport
  182. implicit def seqHead[T](implicit elementConverter: TypeConverter[String, T], mf: Manifest[T]): TypeConverter[Seq[String], T]

    Definition Classes
    DefaultImplicitConversions
  183. implicit def seqToSeq[T](implicit elementConverter: TypeConverter[String, T], mf: Manifest[T]): TypeConverter[Seq[String], Seq[T]]

    Definition Classes
    DefaultImplicitConversions
  184. def serveStaticResource(): Option[Any]

    Attributes
    protected
    Definition Classes
    ScalatraServlet
  185. def serverHost(implicit request: HttpServletRequest): String

    Definition Classes
    ScalatraBase
  186. def serverPort(implicit request: HttpServletRequest): Int

    Definition Classes
    ScalatraBase
  187. def service(request: HttpServletRequest, response: HttpServletResponse): Unit

    Definition Classes
    ScalatraServlet → HttpServlet
  188. def service(arg0: ServletRequest, arg1: ServletResponse): Unit

    Definition Classes
    HttpServlet → GenericServlet → Servlet
    Annotations
    @throws( classOf[java.io.IOException] ) @throws( ... )
  189. def servletContext: ServletContext

    Definition Classes
    ScalatraBase → ScalatraContext
  190. def session(key: Symbol)(implicit request: HttpServletRequest): Any

    Definition Classes
    SessionSupport
  191. def session(key: String)(implicit request: HttpServletRequest): Any

    Definition Classes
    SessionSupport
  192. implicit def session(implicit request: HttpServletRequest): HttpSession

    Definition Classes
    SessionSupport
  193. def sessionOption(implicit request: HttpServletRequest): Option[HttpSession]

    Definition Classes
    SessionSupport
  194. def setMultiparams[S](matchedRoute: Option[MatchedRoute], originalParams: MultiParams)(implicit request: HttpServletRequest): Unit

    Attributes
    protected
    Definition Classes
    ScalatraBase
  195. def shouldParseBody(fmt: String)(implicit request: HttpServletRequest): Boolean

    Attributes
    protected
    Definition Classes
    JsonSupport
  196. def shutdown(): Unit

    Attributes
    protected
    Definition Classes
    Initializable
  197. def status: Int

    Definition Classes
    ScalatraContext
  198. def status_=(code: Int): Unit

    Definition Classes
    ScalatraContext
  199. implicit def string2RouteMatcher(path: String): RouteMatcher

    Attributes
    protected
    Definition Classes
    ScalatraBase
  200. implicit val stringToBoolean: TypeConverter[String, Boolean]

    Definition Classes
    DefaultImplicitConversions
  201. implicit val stringToByte: TypeConverter[String, Byte]

    Definition Classes
    DefaultImplicitConversions
  202. def stringToDate(format: ⇒ String): TypeConverter[String, Date]

    Definition Classes
    DefaultImplicitConversions
  203. def stringToDateFormat(format: ⇒ DateFormat): TypeConverter[String, Date]

    Definition Classes
    DefaultImplicitConversions
  204. implicit val stringToDouble: TypeConverter[String, Double]

    Definition Classes
    DefaultImplicitConversions
  205. implicit val stringToFloat: TypeConverter[String, Float]

    Definition Classes
    DefaultImplicitConversions
  206. implicit val stringToInt: TypeConverter[String, Int]

    Definition Classes
    DefaultImplicitConversions
  207. implicit val stringToLong: TypeConverter[String, Long]

    Definition Classes
    DefaultImplicitConversions
  208. implicit val stringToSelf: TypeConverter[String, String]

    Definition Classes
    DefaultImplicitConversions
  209. def stringToSeq[T](elementConverter: TypeConverter[String, T], separator: String)(implicit arg0: Manifest[T]): TypeConverter[String, Seq[T]]

    Definition Classes
    DefaultImplicitConversions
  210. implicit val stringToShort: TypeConverter[String, Short]

    Definition Classes
    DefaultImplicitConversions
  211. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  212. def toSession: PartialFunction[AuthenticatedUser, String]

    Defines how to register a user in a session, only keeping its id.

    Defines how to register a user in a session, only keeping its id.

    Attributes
    protected
    Definition Classes
    SpinAuthenticationSupport → ScentrySupport
  213. def toString(): String

    Definition Classes
    AnyRef → Any
  214. implicit def toTypedMultiParams(params: MultiParams): TypedMultiParams

    Definition Classes
    ScalatraParamsImplicits
  215. implicit def toTypedParams(params: Params): TypedParams

    Definition Classes
    ScalatraParamsImplicits
  216. def transformRequestBody(body: JValue): JValue

    Attributes
    protected
    Definition Classes
    JsonSupport
  217. def transformResponseBody(body: JValue): JValue

    Attributes
    protected
    Definition Classes
    JsonOutput
  218. def trap(codes: Range)(block: ⇒ Any): Unit

    Definition Classes
    ScalatraBase → CoreDsl
  219. def trap(code: Int)(block: ⇒ Any): Unit

    Definition Classes
    CoreDsl
  220. def url(path: String, params: Iterable[(String, Any)], includeContextPath: Boolean, includeServletPath: Boolean, absolutize: Boolean, withSessionId: Boolean)(implicit request: HttpServletRequest, response: HttpServletResponse): String

    Definition Classes
    ScalatraBase
  221. implicit def user(implicit request: HttpServletRequest): AuthenticatedUser

    Attributes
    protected
    Definition Classes
    ScentrySupport
  222. def userOption(implicit request: HttpServletRequest): Option[AuthenticatedUser]

    Attributes
    protected
    Definition Classes
    ScentrySupport
  223. def user_=(user: AuthenticatedUser)(implicit request: HttpServletRequest): String

    Attributes
    protected
    Definition Classes
    ScentrySupport
  224. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  227. def withRequest[A](request: HttpServletRequest)(f: ⇒ A): A

    Attributes
    protected
    Definition Classes
    DynamicScope → RequestResponseScope
  228. def withRequestResponse[A](request: HttpServletRequest, response: HttpServletResponse)(f: ⇒ A): A

    Attributes
    protected
    Definition Classes
    DynamicScope → RequestResponseScope
  229. def withResponse[A](response: HttpServletResponse)(f: ⇒ A): A

    Attributes
    protected
    Definition Classes
    DynamicScope → RequestResponseScope
  230. def withRouteMultiParams[S](matchedRoute: Option[MatchedRoute])(thunk: ⇒ S): S

    Attributes
    protected
    Definition Classes
    ApiFormats → ScalatraBase
  231. def writeJson(json: JValue, writer: Writer): Unit

    Attributes
    protected
    Definition Classes
    JacksonJsonOutput → JsonOutput
  232. def writeJsonAsXml(json: JValue, writer: Writer): Unit

    Attributes
    protected
    Definition Classes
    JsonOutput
  233. lazy val xmlRootNode: Elem

    Attributes
    protected
    Definition Classes
    JsonOutput

Deprecated Value Members

  1. def _request: DynamicVariable[HttpServletRequest]

    Attributes
    protected
    Definition Classes
    DynamicScope
    Annotations
    @deprecated
    Deprecated

    (Since version 2.1.0) Do not invoke directly. Use withRequest to change the binding, or request to get the value

  2. def _response: DynamicVariable[HttpServletResponse]

    Attributes
    protected
    Definition Classes
    DynamicScope
    Annotations
    @deprecated
    Deprecated

    (Since version 2.1.0) Do not invoke directly. Use withResponse to change the binding, or response to get the value

  3. def applicationContext: ServletContext

    Definition Classes
    ScalatraBase
    Annotations
    @deprecated
    Deprecated

    (Since version 2.1.0) Use servletContext instead

  4. def responseFormat(implicit request: HttpServletRequest, response: HttpServletResponse): String

    Definition Classes
    ApiFormats
    Annotations
    @deprecated
    Deprecated

    (Since version 2.3) format now means the same as responseFormat, responseFormat will be removed eventually

  5. def status(code: Int): Unit

    Definition Classes
    ScalatraContext
    Annotations
    @deprecated
    Deprecated

    (Since version 2.1.0) Use status_=(Int) instead

Inherited from ExportCSV

Inherited from Validation

Inherited from (OrderControllerComponent.this)#SpinAuthenticationSupport

Inherited from BasicAuthSupport[AuthenticatedUser]

Inherited from ScentrySupport[AuthenticatedUser]

Inherited from JacksonJsonSupport

Inherited from JValueResult

Inherited from JacksonJsonOutput

Inherited from JsonMethods

Inherited from JsonSupport[JValue]

Inherited from JsonOutput[JValue]

Inherited from JsonMethods[JValue]

Inherited from ApiFormats

Inherited from SpinStack

Inherited from ScalatraServlet

Inherited from ServletBase

Inherited from ScalatraBase

Inherited from CookieSupport

Inherited from DefaultImplicitConversions

Inherited from LowPriorityImplicitConversions

Inherited from LowestPriorityImplicitConversions

Inherited from TypeConverterSupport

Inherited from ScalatraParamsImplicits

Inherited from Initializable

Inherited from DynamicScope

Inherited from RequestResponseScope

Inherited from CoreDsl

Inherited from Control

Inherited from Handler

Inherited from ScalatraContext

Inherited from CookieContext

Inherited from SessionSupport

Inherited from ServletApiImplicits

Inherited from HttpServlet

Inherited from GenericServlet

Inherited from Serializable

Inherited from ServletConfig

Inherited from Servlet

Inherited from AnyRef

Inherited from Any

Ungrouped