com.atomizesoftware.spin.controllers.DocumentControllerComponent

DocumentController

class DocumentController extends ScalatraServlet with SpinStack with FileUploadSupport with JacksonJsonSupport with (DocumentControllerComponent.this)#SpinAuthenticationSupport with Validation with ExportCSV

Linear Supertypes
ExportCSV, Validation, (DocumentControllerComponent.this)#SpinAuthenticationSupport, BasicAuthSupport[AuthenticatedUser], ScentrySupport[AuthenticatedUser], JacksonJsonSupport, JValueResult, JacksonJsonOutput, JsonMethods, JsonSupport[JValue], JsonOutput[JValue], JsonMethods[JValue], ApiFormats, FileUploadSupport, HasMultipartConfig, 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. DocumentController
  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. FileUploadSupport
  16. HasMultipartConfig
  17. SpinStack
  18. ScalatraServlet
  19. ServletBase
  20. ScalatraBase
  21. CookieSupport
  22. DefaultImplicitConversions
  23. LowPriorityImplicitConversions
  24. LowestPriorityImplicitConversions
  25. TypeConverterSupport
  26. ScalatraParamsImplicits
  27. Initializable
  28. DynamicScope
  29. RequestResponseScope
  30. CoreDsl
  31. Control
  32. Handler
  33. ScalatraContext
  34. CookieContext
  35. SessionSupport
  36. ServletApiImplicits
  37. HttpServlet
  38. GenericServlet
  39. Serializable
  40. ServletConfig
  41. Servlet
  42. AnyRef
  43. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new DocumentController(maxFileSize: Int, thumbWidth: Int)

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 configureMultipartHandling(config: MultipartConfig): Unit

    Definition Classes
    HasMultipartConfig
  34. def configureScentry(): Unit

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

    Definition Classes
    ScalatraContext
  36. def contentTypeInferrer: ContentTypeInferrer

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

    Definition Classes
    ScalatraContext
  38. def contextPath: String

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

    Definition Classes
    CookieContext
  40. def cookies: SweetCookies

    Definition Classes
    CookieContext
  41. implicit def currentUser: AuthenticatedUser

    Gets the username from the authenticated user.

    Gets the username from the authenticated user.

    Definition Classes
    SpinAuthenticationSupport
  42. def currentUserId: Long

    Gets the id from the authenticated user.

    Gets the id from the authenticated user.

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

    Definition Classes
    ApiFormats
  44. val defaultCharacterEncoding: String

    Attributes
    protected
    Definition Classes
    ScalatraBase
  45. def defaultFormat: Symbol

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

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

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

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

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

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

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

    Attributes
    protected
    Definition Classes
    ScalatraBase
  53. var doNotFound: Action

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

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

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

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

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

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

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

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

    Definition Classes
    ServletApiImplicits
  62. def environment: String

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

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

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

    Definition Classes
    ScalatraBase → CoreDsl
  66. var errorHandler: ErrorHandler

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

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

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

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

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

    Attributes
    protected
    Definition Classes
    ScalatraBase
  72. def fileMultiParams(key: String)(implicit request: HttpServletRequest): Seq[FileItem]

    Definition Classes
    FileUploadSupport
  73. def fileMultiParams(implicit request: HttpServletRequest): FileMultiParams

    Definition Classes
    FileUploadSupport
  74. def fileParams(key: String)(implicit request: HttpServletRequest): FileItem

    Definition Classes
    FileUploadSupport
  75. def fileParams(implicit request: HttpServletRequest): MultiMapHeadView[String, FileItem]

    Definition Classes
    FileUploadSupport
  76. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  77. 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
  78. def format(implicit request: HttpServletRequest, response: HttpServletResponse): String

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

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

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

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

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

    Definition Classes
    JsonMethods
  84. 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
  85. def fullUrl(path: String, params: Iterable[(String, Any)], includeContextPath: Boolean, includeServletPath: Boolean, withSessionId: Boolean)(implicit request: HttpServletRequest, response: HttpServletResponse): String

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

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

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

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

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

    Attributes
    protected[javax.servlet.http]
    Definition Classes
    HttpServlet
  91. 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

  92. def getServletConfig(): ServletConfig

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

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

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

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

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

    Definition Classes
    Control
  98. 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
  99. def handle(req: HttpServletRequest, res: HttpServletResponse): Unit

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

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

    Definition Classes
    ScalatraBase → CoreDsl
  102. def inferFromFormats: ContentTypeInferrer

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

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

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

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

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

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

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

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

    Attributes
    protected
    Definition Classes
    ScentrySupport
  111. def isDevelopmentMode: Boolean

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

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

    Definition Classes
    Any
  114. def isSizeConstraintException(e: Exception): Boolean

    Attributes
    protected
    Definition Classes
    FileUploadSupport
  115. implicit val jsonFormats: Formats

    Attributes
    protected
    Definition Classes
    DocumentController → JValueResult
  116. lazy val jsonVulnerabilityGuard: Boolean

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

    Definition Classes
    JsonOutput
  118. def log(arg0: String, arg1: Throwable): Unit

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

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

    Attributes
    protected
    Definition Classes
    ScentrySupport
  121. val logger: Logger

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

    Definition Classes
    LowestPriorityImplicitConversions
  123. def mapper: ObjectMapper

    Definition Classes
    JsonMethods
  124. 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
  125. 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
  126. def methodNotAllowed(f: (Set[HttpMethod]) ⇒ Any): Unit

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

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

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

    Definition Classes
    ScalatraBase
  130. def multipartConfig: MultipartConfig

    Definition Classes
    HasMultipartConfig
  131. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  132. def needsHttps: Boolean

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

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

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

    Definition Classes
    AnyRef
  136. implicit val onlyFormats: Formats

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

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

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

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

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

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

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

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

    Definition Classes
    JsonSupport
  145. def pass(): Nothing

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

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

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

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

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

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

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

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

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

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

    Attributes
    protected
    Definition Classes
    JsonSupport
  156. val realm: String

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

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

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

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

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

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

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

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

    Attributes
    protected
    Definition Classes
    ScalatraBase
  165. def renderPipeline: RenderPipeline

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

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

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

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

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

    Definition Classes
    ApiFormats
  171. val requestLogger: Logger

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

    Definition Classes
    ScalatraServlet → ScalatraBase
  173. 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
  174. def resourceNotFound(): Any

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

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

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

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

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

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

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

    Definition Classes
    TypeConverterSupport
  182. implicit def scalatraContext: ScalatraContext

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

    Attributes
    protected
    Definition Classes
    ScentrySupport
  184. val scentryConfig: ScentryConfiguration

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

    Attributes
    protected
    Definition Classes
    ScentrySupport
  186. 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
  187. implicit def seqHead[T](implicit elementConverter: TypeConverter[String, T], mf: Manifest[T]): TypeConverter[Seq[String], T]

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    Attributes
    protected
    Definition Classes
    Initializable
  202. def status: Int

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    Definition Classes
    AnyRef
  217. 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
  218. def toString(): String

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

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

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

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

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

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

    Definition Classes
    CoreDsl
  225. 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
  226. implicit def user(implicit request: HttpServletRequest): AuthenticatedUser

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

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

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

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

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

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

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

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

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

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

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

    Attributes
    protected
    Definition Classes
    JsonOutput
  238. 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 (DocumentControllerComponent.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 FileUploadSupport

Inherited from HasMultipartConfig

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