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.
a UserLocation that has the seesAll boolean and a list of location ids.
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.
Checks if the id is a long
Checks if the id is a long
to check
id if is a long, BadRequestException otherwise.
Checks if the code is a string
Checks if the code is a string
to check
key if is a string, BadRequestException otherwise.
Gets the username from the authenticated user.
Gets the username from the authenticated user.
Gets the id from the authenticated user.
Gets the id from the authenticated user.
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.
a Long if a top most location was found for the user, None otherwise.
Defines how to get a user from a session by its id.
Defines how to get a user from a session by its id.
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.
403 with error response if user doesn't have the required location.
Checks if the param and entity id are equal.
Checks if the param and entity id are equal.
id param.
id extracted from request body.
true if equal, false otherwise.
Checks if the param and entity key are equal.
Checks if the param and entity key are equal.
key param.
key extracted from request body.
true if equal, false otherwise.
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.
that needs to be in the user permissions list.
403 with error response if user doesn't have the required permission.
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.
true if it is able to see all locations, false otherwise
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.
(Since version 2.1.0) Do not invoke directly. Use withRequest
to change the binding, or request to get the value
(Since version 2.1.0) Do not invoke directly. Use withResponse
to change the binding, or response
to get the value
(Since version 2.1.0) Use servletContext instead
(Since version 2.3) format
now means the same as responseFormat
, responseFormat
will be removed eventually
(Since version 2.1.0) Use status_=(Int) instead