Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
A
- ACTIVE - Enum constant in enum class com.unosquare.carmigo.security.UserStatus
- addCurrentPassengerToJourney(int) - Method in class com.unosquare.carmigo.controller.JourneyController
-
Enables logged-in user, as a passenger, to be a passenger of this journey.
- addPassengerToJourney(int, int) - Method in class com.unosquare.carmigo.service.JourneyService
-
Enables the user to be a passenger of a journey.
- addPassengerToThisJourney(int, int) - Method in class com.unosquare.carmigo.controller.JourneyController
-
Enables logged-in admin users to add this passenger to this journey.
- ADMIN - Enum constant in enum class com.unosquare.carmigo.security.UserStatus
- ALIAS_CURRENT_USER - Static variable in interface com.unosquare.carmigo.constant.AppConstants
- AppConstants - Interface in com.unosquare.carmigo.constant
-
Constants used throughout the application.
- AppUser - Class in com.unosquare.carmigo.security
-
Represents a logged-in user.
- AppUser() - Constructor for class com.unosquare.carmigo.security.AppUser
- AppUser.CurrentAppUser - Class in com.unosquare.carmigo.security
-
The current logged-in user.
- AuthenticationController - Class in com.unosquare.carmigo.controller
-
Handles Authentication APIs.
- AuthenticationController() - Constructor for class com.unosquare.carmigo.controller.AuthenticationController
- authenticationManager(AuthenticationConfiguration) - Method in class com.unosquare.carmigo.configuration.WebSecurityConfiguration
- AuthenticationRequest - Class in com.unosquare.carmigo.dto.request
-
Data Transfer Object received by the Controller to the Service.
- AuthenticationRequest() - Constructor for class com.unosquare.carmigo.dto.request.AuthenticationRequest
- AuthenticationResponse - Class in com.unosquare.carmigo.dto.response
-
Data Transfer Object from the Service back to Controller.
- AuthenticationResponse() - Constructor for class com.unosquare.carmigo.dto.response.AuthenticationResponse
- AuthenticationService - Class in com.unosquare.carmigo.service
-
Handles authentication requests.
- AuthenticationService() - Constructor for class com.unosquare.carmigo.service.AuthenticationService
B
- bCryptPasswordEncoder() - Method in class com.unosquare.carmigo.configuration.WebSecurityConfiguration
- buildErrorResponseRepresentation(HttpStatus, String) - Static method in class com.unosquare.carmigo.exception.ExceptionBuilder
-
Builds an error response.
C
- cacheableGetPlatformUserById(int) - Method in class com.unosquare.carmigo.service.PlatformUserService
-
Fetches a platform user and caches them.
- calculateDistance(DistanceRequest) - Method in class com.unosquare.carmigo.controller.JourneyController
-
Enables users to search for the distance of two points.
- calculateDistance(DistanceRequest) - Method in class com.unosquare.carmigo.service.JourneyService
-
Searches for the distance between two locations.
- CarMigoApplication - Class in com.unosquare.carmigo
-
Gateway to start CarMigo application.
- CarMigoApplication() - Constructor for class com.unosquare.carmigo.CarMigoApplication
- com.unosquare.carmigo - package com.unosquare.carmigo
- com.unosquare.carmigo.annotation - package com.unosquare.carmigo.annotation
- com.unosquare.carmigo.configuration - package com.unosquare.carmigo.configuration
- com.unosquare.carmigo.constant - package com.unosquare.carmigo.constant
- com.unosquare.carmigo.controller - package com.unosquare.carmigo.controller
- com.unosquare.carmigo.dto - package com.unosquare.carmigo.dto
- com.unosquare.carmigo.dto.request - package com.unosquare.carmigo.dto.request
- com.unosquare.carmigo.dto.response - package com.unosquare.carmigo.dto.response
- com.unosquare.carmigo.entity - package com.unosquare.carmigo.entity
- com.unosquare.carmigo.exception - package com.unosquare.carmigo.exception
- com.unosquare.carmigo.openfeign - package com.unosquare.carmigo.openfeign
- com.unosquare.carmigo.repository - package com.unosquare.carmigo.repository
- com.unosquare.carmigo.security - package com.unosquare.carmigo.security
- com.unosquare.carmigo.service - package com.unosquare.carmigo.service
- com.unosquare.carmigo.util - package com.unosquare.carmigo.util
- CommonBehaviours - Class in com.unosquare.carmigo.util
-
Static utility methods.
- CommonBehaviours() - Constructor for class com.unosquare.carmigo.util.CommonBehaviours
- confirmEmail(String) - Method in class com.unosquare.carmigo.controller.PlatformUserController
-
Enables user to confirm their email after creating an account.
- confirmEmail(String) - Method in class com.unosquare.carmigo.service.PlatformUserService
-
Allows a user to confirm their email.
- Coordinate() - Constructor for class com.unosquare.carmigo.dto.response.DistanceResponse.Coordinate
- corsFilter() - Method in class com.unosquare.carmigo.configuration.WebSecurityConfiguration
- createAuthenticationToken(AuthenticationRequest) - Method in class com.unosquare.carmigo.controller.AuthenticationController
-
Endpoint to generate JWT tokens.
- createAuthenticationToken(AuthenticationRequest) - Method in class com.unosquare.carmigo.service.AuthenticationService
-
Creates an authentication token.
- createDriver(DriverRequest) - Method in class com.unosquare.carmigo.controller.DriverController
-
Enables logged-in users to create a driver's profile.
- createDriverById(int, DriverRequest) - Method in class com.unosquare.carmigo.controller.DriverController
-
Enables logged-in admin users to create a driver's profile for another user.
- createDriverById(int, DriverRequest) - Method in class com.unosquare.carmigo.service.DriverService
-
Creates a driver.
- createJourney(int, JourneyRequest) - Method in class com.unosquare.carmigo.service.JourneyService
-
Only drivers can create journeys.
- createJourney(JourneyRequest) - Method in class com.unosquare.carmigo.controller.JourneyController
-
Enables logged-in user, as a driver, to create a journey.
- createJourneyByDriverId(int, JourneyRequest) - Method in class com.unosquare.carmigo.controller.JourneyController
-
Enables logged-in admin users to create a journey for a driver.
- createPassenger() - Method in class com.unosquare.carmigo.controller.PassengerController
-
Enables logged-in users to create a passenger's profile.
- createPassengerById(int) - Method in class com.unosquare.carmigo.controller.PassengerController
-
Enables logged-in admin users to create a passenger's profile for another user.
- createPassengerById(int) - Method in class com.unosquare.carmigo.service.PassengerService
-
Creates a passenger.
- createPlatformUser(PlatformUserRequest) - Method in class com.unosquare.carmigo.controller.PlatformUserController
-
Enables a user to create an account.
- createPlatformUser(PlatformUserRequest) - Method in class com.unosquare.carmigo.service.PlatformUserService
-
Creates a platform user.
- CurrentAppUser() - Constructor for class com.unosquare.carmigo.security.AppUser.CurrentAppUser
- CustomUserDetails - Class in com.unosquare.carmigo.security
-
Gives specific characteristics which represents the authenticated user.
- CustomUserDetails(int, String, String, Collection<? extends GrantedAuthority>) - Constructor for class com.unosquare.carmigo.security.CustomUserDetails
D
- deleteByJourneyIdAndPassengerId(int, int) - Method in interface com.unosquare.carmigo.repository.PassengerJourneyRepository
- deleteCurrentDriver() - Method in class com.unosquare.carmigo.controller.DriverController
-
Enables logged-in user's to delete their driver's profile.
- deleteCurrentPassenger() - Method in class com.unosquare.carmigo.controller.PassengerController
-
Enables logged-in user's to delete their passenger's profile.
- deleteCurrentPlatformUser() - Method in class com.unosquare.carmigo.controller.PlatformUserController
-
Enables logged-in user's to delete their profile.
- deleteDriverById(int) - Method in class com.unosquare.carmigo.controller.DriverController
-
Enables logged-in admin users to delete a driver's profile.
- deleteDriverById(int) - Method in class com.unosquare.carmigo.service.DriverService
-
Deletes a driver.
- deleteJourney(int) - Method in class com.unosquare.carmigo.controller.JourneyController
-
Enables logged-in admin users or the driver who owns this journey to delete.
- deleteJourneyById(int) - Method in class com.unosquare.carmigo.service.JourneyService
-
Deletes a journey.
- deletePassengerById(int) - Method in class com.unosquare.carmigo.controller.PassengerController
-
Enables logged-in admin users to delete a passenger's profile.
- deletePassengerById(int) - Method in class com.unosquare.carmigo.service.PassengerService
-
Deletes a passenger.
- deletePlatformUserById(int) - Method in class com.unosquare.carmigo.controller.PlatformUserController
-
Enables logged-in admin users to delete a user's profile.
- deletePlatformUserById(int) - Method in class com.unosquare.carmigo.service.PlatformUserService
-
Deletes a platform user.
Warning: it will also delete (if any) the driver and/or the passenger associated. - DEV - Enum constant in enum class com.unosquare.carmigo.security.UserStatus
- Distance - Class in com.unosquare.carmigo.openfeign
-
Distance has many keys.
- Distance() - Constructor for class com.unosquare.carmigo.dto.response.DistanceResponse.Distance
- Distance() - Constructor for class com.unosquare.carmigo.openfeign.Distance
- DistanceApi - Interface in com.unosquare.carmigo.openfeign
-
Calls Distance API.
- DistanceApiFallback - Class in com.unosquare.carmigo.openfeign
-
Triggers when there is a problem communicating with Distance API.
- DistanceApiFallback() - Constructor for class com.unosquare.carmigo.openfeign.DistanceApiFallback
- DistanceHolder - Class in com.unosquare.carmigo.openfeign
-
Holds the data fetched from Distance API.
- DistanceHolder() - Constructor for class com.unosquare.carmigo.openfeign.DistanceHolder
- DistanceRequest - Class in com.unosquare.carmigo.dto.request
-
Data Transfer Object received by the Controller to the Service.
- DistanceRequest() - Constructor for class com.unosquare.carmigo.dto.request.DistanceRequest
- DistanceResponse - Class in com.unosquare.carmigo.dto.response
-
Data Transfer Object from the Service back to Controller.
- DistanceResponse() - Constructor for class com.unosquare.carmigo.dto.response.DistanceResponse
- DistanceResponse.Coordinate - Class in com.unosquare.carmigo.dto.response
-
Coordination of a
DistanceResponse.Location
. - DistanceResponse.Distance - Class in com.unosquare.carmigo.dto.response
-
Types of distance of a
DistanceResponse
. - DistanceResponse.Location - Class in com.unosquare.carmigo.dto.response
-
Location of a
DistanceResponse
. - doFilterInternal(HttpServletRequest, HttpServletResponse, FilterChain) - Method in class com.unosquare.carmigo.security.JwtRequestFilter
- Driver - Class in com.unosquare.carmigo.entity
-
Data Transfer Object representing the driver table of the database.
- Driver() - Constructor for class com.unosquare.carmigo.entity.Driver
- DriverController - Class in com.unosquare.carmigo.controller
-
Handles Driver APIs.
- DriverController() - Constructor for class com.unosquare.carmigo.controller.DriverController
- DriverRepository - Interface in com.unosquare.carmigo.repository
-
Queries database regarding the
Driver
entity. - DriverRequest - Class in com.unosquare.carmigo.dto.request
-
Data Transfer Object received by the Controller to the Service.
- DriverRequest() - Constructor for class com.unosquare.carmigo.dto.request.DriverRequest
- DriverResponse - Class in com.unosquare.carmigo.dto.response
-
Data Transfer Object from the Service back to Controller.
- DriverResponse() - Constructor for class com.unosquare.carmigo.dto.response.DriverResponse
- DriverService - Class in com.unosquare.carmigo.service
-
Handles requests regarding the
Driver
entity. - DriverService() - Constructor for class com.unosquare.carmigo.service.DriverService
E
- EMAIL_MAX_SIZE - Static variable in interface com.unosquare.carmigo.constant.AppConstants
- EMAIL_MIN_SIZE - Static variable in interface com.unosquare.carmigo.constant.AppConstants
- EMAIL_REGEX - Static variable in interface com.unosquare.carmigo.constant.AppConstants
- ErrorResponse - Class in com.unosquare.carmigo.exception
-
Holds error response fields.
- ErrorResponse() - Constructor for class com.unosquare.carmigo.exception.ErrorResponse
- ExceptionBuilder - Class in com.unosquare.carmigo.exception
-
Builder an error exception.
- ExceptionBuilder() - Constructor for class com.unosquare.carmigo.exception.ExceptionBuilder
- ExceptionResponseHandler - Class in com.unosquare.carmigo.exception
-
Handles exceptions triggered throughout the application.
- ExceptionResponseHandler() - Constructor for class com.unosquare.carmigo.exception.ExceptionResponseHandler
- ExpiredJwtException - Exception in com.unosquare.carmigo.exception
-
Triggers when there are issues creating a JWT token.
- ExpiredJwtException(String) - Constructor for exception com.unosquare.carmigo.exception.ExpiredJwtException
- extractClaim(String, Function<Claims, R>) - Method in class com.unosquare.carmigo.util.JwtTokenService
- extractExpiration(String) - Method in class com.unosquare.carmigo.util.JwtTokenService
- extractUsername(String) - Method in class com.unosquare.carmigo.util.JwtTokenService
F
- filterChain(HttpSecurity) - Method in class com.unosquare.carmigo.configuration.WebSecurityConfiguration
-
Security layer filter which allows some endpoints depending on the authority.
- findEntityById(int, JpaRepository<E, Integer>, String) - Static method in class com.unosquare.carmigo.util.CommonBehaviours
- findJourneysByDriverId(int) - Method in interface com.unosquare.carmigo.repository.JourneyRepository
- findJourneysByLocationFromIdAndLocationToIdAndDateTimeBetween(int, int, Instant, Instant) - Method in interface com.unosquare.carmigo.repository.JourneyRepository
- findJourneysByPassengersId(int) - Method in interface com.unosquare.carmigo.repository.JourneyRepository
- findPlatformUserByEmail(String) - Method in interface com.unosquare.carmigo.repository.PlatformUserRepository
G
- generateToken(UserDetails) - Method in class com.unosquare.carmigo.util.JwtTokenService
- Geocode - Class in com.unosquare.carmigo.openfeign
-
The geocode of a point with its latitude and longitude.
- Geocode() - Constructor for class com.unosquare.carmigo.openfeign.Geocode
- get() - Method in class com.unosquare.carmigo.security.AppUser
-
Returns the current logged-in user.
- getCurrentDriverProfile() - Method in class com.unosquare.carmigo.controller.DriverController
-
Enables logged-in users to see their driver's profiles.
- getCurrentPassengerProfile() - Method in class com.unosquare.carmigo.controller.PassengerController
-
Enables logged-in users to see their passenger's profiles.
- getCurrentPlatformUserProfile(boolean) - Method in class com.unosquare.carmigo.controller.PlatformUserController
-
Enables logged-in users to see their profiles.
- getDistance(String) - Method in interface com.unosquare.carmigo.openfeign.DistanceApi
- getDistance(String) - Method in class com.unosquare.carmigo.openfeign.DistanceApiFallback
- getDriverById(int) - Method in class com.unosquare.carmigo.controller.DriverController
-
Enables logged-in admin users to see other driver's profiles.
- getDriverById(int) - Method in class com.unosquare.carmigo.service.DriverService
-
Fetches a driver.
- getJourneyById(int) - Method in class com.unosquare.carmigo.controller.JourneyController
-
Enables logged-in admin users to search for a specific journey.
- getJourneyById(int) - Method in class com.unosquare.carmigo.service.JourneyService
-
Fetches a journey.
- getJourneysByCurrentDriver() - Method in class com.unosquare.carmigo.controller.JourneyController
-
Enables logged-in user, as a driver, to search for their journeys.
- getJourneysByCurrentPassenger() - Method in class com.unosquare.carmigo.controller.JourneyController
-
Enables logged-in user, as a passenger, to search their journeys.
- getJourneysByDriverId(int) - Method in class com.unosquare.carmigo.controller.JourneyController
-
Enables logged-in admin users to search for journeys of a driver.
- getJourneysByDriverId(int) - Method in class com.unosquare.carmigo.service.JourneyService
-
Fetches journeys of a driver.
- getJourneysByPassengerId(int) - Method in class com.unosquare.carmigo.controller.JourneyController
-
Enables logged-in admin users to search for journeys of a passenger.
- getJourneysByPassengersId(int) - Method in class com.unosquare.carmigo.service.JourneyService
-
Fetches journeys of a passenger.
- getPassengerById(int) - Method in class com.unosquare.carmigo.controller.PassengerController
-
Enables logged-in admin users to see other passenger's profiles.
- getPassengerById(int) - Method in class com.unosquare.carmigo.service.PassengerService
-
Fetches a passenger.
- getPlatformUserById(int, boolean) - Method in class com.unosquare.carmigo.controller.PlatformUserController
-
Enables logged-in admin users to see other user's profiles.
- groups() - Element in annotation interface com.unosquare.carmigo.annotation.ValidPassword
H
- handleBadRequestException(Exception) - Method in class com.unosquare.carmigo.exception.ExceptionResponseHandler
- handleBeanValidationException(MethodArgumentNotValidException) - Method in class com.unosquare.carmigo.exception.ExceptionResponseHandler
-
Handles exception thrown by
Valid
in controllers which parses error messages. - handleConflictException(Exception) - Method in class com.unosquare.carmigo.exception.ExceptionResponseHandler
- handleForbiddenException(Exception) - Method in class com.unosquare.carmigo.exception.ExceptionResponseHandler
- handleNotFoundException(Exception) - Method in class com.unosquare.carmigo.exception.ExceptionResponseHandler
- health() - Method in class com.unosquare.carmigo.controller.HealthController
-
Healthcheck method.
- HealthController - Class in com.unosquare.carmigo.controller
-
Handles Health API.
- HealthController() - Constructor for class com.unosquare.carmigo.controller.HealthController
- heartbeat() - Method in class com.unosquare.carmigo.controller.HeartbeatController
-
Verifies if services, this application is depended on, are up and running.
Expect 200 OK otherwise 500 Internal Server Error. - HeartbeatController - Class in com.unosquare.carmigo.controller
-
Handles Heartbeat API.
- HeartbeatController() - Constructor for class com.unosquare.carmigo.controller.HeartbeatController
I
- isValid(String, ConstraintValidatorContext) - Method in class com.unosquare.carmigo.annotation.PasswordValidator
J
- Journey - Class in com.unosquare.carmigo.entity
-
Data Transfer Object representing the journey table of the database.
- Journey() - Constructor for class com.unosquare.carmigo.entity.Journey
- JourneyController - Class in com.unosquare.carmigo.controller
-
Handles Journey APIs.
- JourneyController() - Constructor for class com.unosquare.carmigo.controller.JourneyController
- JourneyRepository - Interface in com.unosquare.carmigo.repository
-
Queries database regarding the
Journey
entity. - JourneyRequest - Class in com.unosquare.carmigo.dto.request
-
Data Transfer Object received by the Controller to the Service.
- JourneyRequest() - Constructor for class com.unosquare.carmigo.dto.request.JourneyRequest
- JourneyResponse - Class in com.unosquare.carmigo.dto.response
-
Data Transfer Object from the Service back to Controller.
- JourneyResponse() - Constructor for class com.unosquare.carmigo.dto.response.JourneyResponse
- JourneyService - Class in com.unosquare.carmigo.service
-
Handles requests regarding the
Journey
entity. - JourneyService() - Constructor for class com.unosquare.carmigo.service.JourneyService
- JwtRequestFilter - Class in com.unosquare.carmigo.security
-
Intercepts incoming requests to check if it has authorization and whether the JWT token is valid.
- JwtRequestFilter() - Constructor for class com.unosquare.carmigo.security.JwtRequestFilter
- JwtTokenService - Class in com.unosquare.carmigo.util
-
Handles JWT tokens by generating, validating and extracting data.
- JwtTokenService() - Constructor for class com.unosquare.carmigo.util.JwtTokenService
L
- loadUserByUsername(String) - Method in class com.unosquare.carmigo.security.UserSecurityService
- Location - Class in com.unosquare.carmigo.entity
-
Data Transfer Object representing the location table of the database.
- Location() - Constructor for class com.unosquare.carmigo.dto.response.DistanceResponse.Location
- Location() - Constructor for class com.unosquare.carmigo.entity.Location
- LocationResponse - Class in com.unosquare.carmigo.dto.response
-
Data Transfer Object from the Service back to Controller.
- LocationResponse() - Constructor for class com.unosquare.carmigo.dto.response.LocationResponse
- LOCKED_OUT - Enum constant in enum class com.unosquare.carmigo.security.UserStatus
M
- main(String[]) - Static method in class com.unosquare.carmigo.CarMigoApplication
- mapList(List<S>, Class<T>, ModelMapper) - Static method in class com.unosquare.carmigo.util.MapperUtils
-
Map a List to an object.
- MapperConfiguration - Class in com.unosquare.carmigo.configuration
-
ModelMapper and ObjectMapper configurations.
- MapperConfiguration() - Constructor for class com.unosquare.carmigo.configuration.MapperConfiguration
- MapperUtils - Class in com.unosquare.carmigo.util
-
Utility to handle object mapping.
- message() - Element in annotation interface com.unosquare.carmigo.annotation.ValidPassword
- modelMapper() - Method in class com.unosquare.carmigo.configuration.MapperConfiguration
-
ModelMapper configuration.
N
- NOT_PERMITTED - Static variable in interface com.unosquare.carmigo.constant.AppConstants
O
- objectMapper() - Method in class com.unosquare.carmigo.configuration.MapperConfiguration
-
ObjectMapper configuration.
- OpenApiConfiguration - Class in com.unosquare.carmigo.configuration
-
Swagger OpenApi UI configuration.
- OpenApiConfiguration() - Constructor for class com.unosquare.carmigo.configuration.OpenApiConfiguration
- OpenFeignDistanceConfiguration - Class in com.unosquare.carmigo.configuration
-
Open feign configuration to communicate with Distance API.
- OpenFeignDistanceConfiguration() - Constructor for class com.unosquare.carmigo.configuration.OpenFeignDistanceConfiguration
P
- Passenger - Class in com.unosquare.carmigo.entity
-
Data Transfer Object representing the passenger table of the database.
- Passenger() - Constructor for class com.unosquare.carmigo.entity.Passenger
- PASSENGER_NOT_FOUND - Static variable in class com.unosquare.carmigo.service.PassengerService
- PassengerController - Class in com.unosquare.carmigo.controller
-
Handles Passenger APIs.
- PassengerController() - Constructor for class com.unosquare.carmigo.controller.PassengerController
- PassengerJourney - Class in com.unosquare.carmigo.entity
-
Data Transfer Object representing the passenger_journey table of the database.
- PassengerJourney() - Constructor for class com.unosquare.carmigo.entity.PassengerJourney
- PassengerJourneyRepository - Interface in com.unosquare.carmigo.repository
-
Queries database regarding the
PassengerJourney
entity. - PassengerRepository - Interface in com.unosquare.carmigo.repository
-
Queries database regarding the
Passenger
entity. - PassengerResponse - Class in com.unosquare.carmigo.dto.response
-
Data Transfer Object from the Service back to Controller.
- PassengerResponse() - Constructor for class com.unosquare.carmigo.dto.response.PassengerResponse
- PassengerService - Class in com.unosquare.carmigo.service
-
Handles requests regarding the
Passenger
entity. - PassengerService() - Constructor for class com.unosquare.carmigo.service.PassengerService
- PASSWORD_MAX_SIZE - Static variable in interface com.unosquare.carmigo.constant.AppConstants
- PASSWORD_MIN_SIZE - Static variable in interface com.unosquare.carmigo.constant.AppConstants
- PasswordValidator - Class in com.unosquare.carmigo.annotation
-
Sets out the rules of a valid password.
- PasswordValidator() - Constructor for class com.unosquare.carmigo.annotation.PasswordValidator
- patchCurrentPlatformUser(JsonPatch) - Method in class com.unosquare.carmigo.controller.PlatformUserController
-
Enables logged-in users to correct their profiles.
- PatchException - Exception in com.unosquare.carmigo.exception
-
Triggers when there are issues updating an entity.
- PatchException(String) - Constructor for exception com.unosquare.carmigo.exception.PatchException
- patchJourney(int, JsonPatch) - Method in class com.unosquare.carmigo.controller.JourneyController
-
Enables logged-in admin users or the driver who owns this journey to make correction.
- patchJourney(int, JsonPatch) - Method in class com.unosquare.carmigo.service.JourneyService
-
Corrects journey information.
Pass an array of aJsonPatch
body with operation, the path and the value.
Accepted operation values are “add”, "remove", "replace", "move", "copy" and "test".
Here is an example which updates a journey to take up to 3 passengers, and it is going to destination id 5: - patchPlatformUserById(int, JsonPatch) - Method in class com.unosquare.carmigo.controller.PlatformUserController
-
Enables admin logged-in users to correct other user's profiles.
- patchPlatformUserById(int, JsonPatch) - Method in class com.unosquare.carmigo.service.PlatformUserService
-
Corrects platform user information.
Pass an array of aJsonPatch
body with the operation, the path and the value.
Accepted operation values are “add”, "remove", "replace", "move", "copy" and "test".
Here is an example which updates a user's phone number and their access status: - payload() - Element in annotation interface com.unosquare.carmigo.annotation.ValidPassword
- PlatformUser - Class in com.unosquare.carmigo.entity
-
Data Transfer Object representing the platform_user table of the database.
- PlatformUser() - Constructor for class com.unosquare.carmigo.entity.PlatformUser
- PlatformUserController - Class in com.unosquare.carmigo.controller
-
Handles Platform User APIs.
- PlatformUserController() - Constructor for class com.unosquare.carmigo.controller.PlatformUserController
- PlatformUserDto - Class in com.unosquare.carmigo.dto
-
Data Transfer Object used to initialize UserAccessStatusResponse data.
If usingPlatformUserRequest
instead, Hibernate throws a Lazy Initialization Exception. - PlatformUserDto() - Constructor for class com.unosquare.carmigo.dto.PlatformUserDto
- PlatformUserRepository - Interface in com.unosquare.carmigo.repository
-
Queries database regarding the
PlatformUser
entity. - PlatformUserRequest - Class in com.unosquare.carmigo.dto.request
-
Data Transfer Object received by the Controller to the Service.
- PlatformUserRequest() - Constructor for class com.unosquare.carmigo.dto.request.PlatformUserRequest
- PlatformUserResponse - Class in com.unosquare.carmigo.dto.response
-
Data Transfer Object from the Service back to Controller.
- PlatformUserResponse() - Constructor for class com.unosquare.carmigo.dto.response.PlatformUserResponse
- PlatformUserService - Class in com.unosquare.carmigo.service
-
Handles requests regarding the
PlatformUser
entity. - PlatformUserService() - Constructor for class com.unosquare.carmigo.service.PlatformUserService
- Points - Class in com.unosquare.carmigo.openfeign
-
Representing the distance between point A to point B.
- Points() - Constructor for class com.unosquare.carmigo.openfeign.Points
- PointsProperty - Class in com.unosquare.carmigo.openfeign
-
The property of a point.
- PointsProperty() - Constructor for class com.unosquare.carmigo.openfeign.PointsProperty
R
- RedisConfiguration - Class in com.unosquare.carmigo.configuration
-
Redis Cache Configuration.
- RedisConfiguration() - Constructor for class com.unosquare.carmigo.configuration.RedisConfiguration
- redisTemplate() - Method in class com.unosquare.carmigo.configuration.RedisConfiguration
-
Redis Template.
- refreshableGetPlatformUserById(int) - Method in class com.unosquare.carmigo.service.PlatformUserService
-
Fetches a platform user and refreshes the cache.
- removeCurrentPassengerFromJourney(int) - Method in class com.unosquare.carmigo.controller.JourneyController
-
Enables a user, as a passenger, to no longer be part of this journey.
- removePassengerFromJourney(int, int) - Method in class com.unosquare.carmigo.service.JourneyService
-
Enables the user to no longer be a passenger of a journey.
- removePassengerFromThisJourney(int, int) - Method in class com.unosquare.carmigo.controller.JourneyController
-
Enables logged-in admin users to remove a passenger from a journey.
- requestInterceptor() - Method in class com.unosquare.carmigo.configuration.OpenFeignDistanceConfiguration
-
Intercepts a request to Distance to add some headers.
- ResourceNotFoundException - Exception in com.unosquare.carmigo.exception
-
Triggers when a search returns empty.
- ResourceNotFoundException(String) - Constructor for exception com.unosquare.carmigo.exception.ResourceNotFoundException
S
- searchJourneys(SearchJourneysRequest) - Method in class com.unosquare.carmigo.controller.JourneyController
-
Enables users to search for journeys.
- searchJourneys(SearchJourneysRequest) - Method in class com.unosquare.carmigo.service.JourneyService
-
Searches for journeys.
- SearchJourneysRequest - Class in com.unosquare.carmigo.dto.request
-
Data Transfer Object received by the Controller to the Service.
- SearchJourneysRequest() - Constructor for class com.unosquare.carmigo.dto.request.SearchJourneysRequest
- setUpOpenApi() - Method in class com.unosquare.carmigo.configuration.OpenApiConfiguration
-
Creates a Swagger OpenApi UI.
- SPECIAL_CHARACTERS - Static variable in interface com.unosquare.carmigo.constant.AppConstants
- STAGED - Enum constant in enum class com.unosquare.carmigo.security.UserStatus
- Steps - Class in com.unosquare.carmigo.openfeign
-
Distance API returns an array of Steps.
- Steps() - Constructor for class com.unosquare.carmigo.openfeign.Steps
- SUSPENDED - Enum constant in enum class com.unosquare.carmigo.security.UserStatus
U
- UnauthorizedException - Exception in com.unosquare.carmigo.exception
-
Triggers when a user does not have permissions to perform an action.
- UnauthorizedException(String) - Constructor for exception com.unosquare.carmigo.exception.UnauthorizedException
- UserAccessStatus - Class in com.unosquare.carmigo.entity
-
Data Transfer Object representing the user_access_status table of the database.
- UserAccessStatus() - Constructor for class com.unosquare.carmigo.entity.UserAccessStatus
- UserAccessStatusRepository - Interface in com.unosquare.carmigo.repository
-
Queries database regarding the
UserAccessStatus
entity. - UserAccessStatusResponse - Class in com.unosquare.carmigo.dto.response
-
Data Transfer Object from the Service back to Controller.
- UserAccessStatusResponse() - Constructor for class com.unosquare.carmigo.dto.response.UserAccessStatusResponse
- UserSecurityService - Class in com.unosquare.carmigo.security
-
Loads the current user information.
- UserSecurityService() - Constructor for class com.unosquare.carmigo.security.UserSecurityService
- UserStatus - Enum Class in com.unosquare.carmigo.security
-
Represents the current logged-in user status.
V
- VALID_PASSWORD_MESSAGE - Static variable in interface com.unosquare.carmigo.constant.AppConstants
- validateToken(String, UserDetails) - Method in class com.unosquare.carmigo.util.JwtTokenService
- ValidPassword - Annotation Interface in com.unosquare.carmigo.annotation
-
This annotation checks whether a given password is valid.
- valueOf(String) - Static method in enum class com.unosquare.carmigo.security.UserStatus
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class com.unosquare.carmigo.security.UserStatus
-
Returns an array containing the constants of this enum class, in the order they are declared.
W
- WebSecurityConfiguration - Class in com.unosquare.carmigo.configuration
-
Web security configuration.
- WebSecurityConfiguration() - Constructor for class com.unosquare.carmigo.configuration.WebSecurityConfiguration
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form