Index

A C D E F G H I L M N P R S U V W 
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form

A

addInterceptors(InterceptorRegistry) - Method in class edu.ucsb.cs156.dining.interceptors.RoleInterceptorConfig
 
ALL_MEAL_ITEMS_AT_A_DINING_COMMON_ENDPOINT - Static variable in class edu.ucsb.cs156.dining.services.UCSBDiningMenuItemsService
 
ALL_MEAL_TIMES_AT_A_DINING_COMMON_ENDPOINT - Static variable in class edu.ucsb.cs156.dining.services.UCSBDiningMenuService
 
allDiningCommons() - Method in class edu.ucsb.cs156.dining.controllers.DiningCommonsController
 
allReviews() - Method in class edu.ucsb.cs156.dining.controllers.ReviewController
This method returns a list of all Reviews.
ApiController - Class in edu.ucsb.cs156.dining.controllers
This is an abstract class that provides common functionality for all API controllers.
ApiController() - Constructor for class edu.ucsb.cs156.dining.controllers.ApiController
 
APPROVED - Enum constant in enum class edu.ucsb.cs156.dining.statuses.ModerationStatus
 
AWAITING_REVIEW - Enum constant in enum class edu.ucsb.cs156.dining.statuses.ModerationStatus
 

C

csrf() - Method in class edu.ucsb.cs156.dining.controllers.FrontendController
When not in development, the CSRF endpoint is not used, so return 404
csrf(CsrfToken) - Method in class edu.ucsb.cs156.dining.controllers.CSRFController
This method returns a CSRF token.
CSRFController - Class in edu.ucsb.cs156.dining.controllers
The CSRF controller is used to get a CSRF token.
CSRFController() - Constructor for class edu.ucsb.cs156.dining.controllers.CSRFController
 
CurrentUser - Class in edu.ucsb.cs156.dining.models
This is a model class that represents the current user.
CurrentUser() - Constructor for class edu.ucsb.cs156.dining.models.CurrentUser
 
CurrentUserService - Class in edu.ucsb.cs156.dining.services
This is a service that provides information about the current user.
CurrentUserService() - Constructor for class edu.ucsb.cs156.dining.services.CurrentUserService
 
CurrentUserServiceImpl - Class in edu.ucsb.cs156.dining.services
This is a service that provides information about the current user.
CurrentUserServiceImpl() - Constructor for class edu.ucsb.cs156.dining.services.CurrentUserServiceImpl
 

D

deleteReview(Long) - Method in class edu.ucsb.cs156.dining.controllers.ReviewController
 
developmentApplicationRunner() - Method in class edu.ucsb.cs156.dining.ExampleApplication
Hook that can be used to set up any services needed for development
DiningCommons - Class in edu.ucsb.cs156.dining.models
 
DiningCommons() - Constructor for class edu.ucsb.cs156.dining.models.DiningCommons
 
DiningCommonsController - Class in edu.ucsb.cs156.dining.controllers
 
DiningCommonsController() - Constructor for class edu.ucsb.cs156.dining.controllers.DiningCommonsController
 
DiningCommonsService - Class in edu.ucsb.cs156.dining.services
 
DiningCommonsService(RestTemplateBuilder) - Constructor for class edu.ucsb.cs156.dining.services.DiningCommonsService
 

E

EditedReview - Class in edu.ucsb.cs156.dining.models
 
EditedReview() - Constructor for class edu.ucsb.cs156.dining.models.EditedReview
 
editReview(Long, EditedReview) - Method in class edu.ucsb.cs156.dining.controllers.ReviewController
 
edu.ucsb.cs156.dining - package edu.ucsb.cs156.dining
 
edu.ucsb.cs156.dining.aop - package edu.ucsb.cs156.dining.aop
 
edu.ucsb.cs156.dining.config - package edu.ucsb.cs156.dining.config
 
edu.ucsb.cs156.dining.controllers - package edu.ucsb.cs156.dining.controllers
 
edu.ucsb.cs156.dining.entities - package edu.ucsb.cs156.dining.entities
 
edu.ucsb.cs156.dining.errors - package edu.ucsb.cs156.dining.errors
 
edu.ucsb.cs156.dining.interceptors - package edu.ucsb.cs156.dining.interceptors
 
edu.ucsb.cs156.dining.models - package edu.ucsb.cs156.dining.models
 
edu.ucsb.cs156.dining.repositories - package edu.ucsb.cs156.dining.repositories
 
edu.ucsb.cs156.dining.services - package edu.ucsb.cs156.dining.services
 
edu.ucsb.cs156.dining.services.wiremock - package edu.ucsb.cs156.dining.services.wiremock
 
edu.ucsb.cs156.dining.statuses - package edu.ucsb.cs156.dining.statuses
 
ENDPOINT - Static variable in class edu.ucsb.cs156.dining.services.DiningCommonsService
 
EntityNotFoundException - Exception Class in edu.ucsb.cs156.dining.errors
This is an error class for a custom RuntimeException in Java that is used to indicate when an entity of a specific type with a given ID is not found.
EntityNotFoundException(Class<?>, Object) - Constructor for exception class edu.ucsb.cs156.dining.errors.EntityNotFoundException
Constructor for the exception
Entree - Class in edu.ucsb.cs156.dining.models
 
Entree() - Constructor for class edu.ucsb.cs156.dining.models.Entree
 
ExampleApplication - Class in edu.ucsb.cs156.dining
The ExampleApplication class is the main entry point for the application.
ExampleApplication() - Constructor for class edu.ucsb.cs156.dining.ExampleApplication
 
existsById(Long) - Method in interface edu.ucsb.cs156.dining.repositories.MenuItemRepository
 

F

filterChain(HttpSecurity) - Method in class edu.ucsb.cs156.dining.config.SecurityConfig
The `filterChain` method in this Java code configures various security settings for an HTTP request, including authorization, exception handling, OAuth2 login, CSRF protection, and logout behavior.
findByAlias(String) - Method in interface edu.ucsb.cs156.dining.repositories.UserRepository
This method returns a User entity with an alias.
findByDiningCommonsCodeAndMealCodeAndNameAndStation(String, String, String, String) - Method in interface edu.ucsb.cs156.dining.repositories.MenuItemRepository
This method returns a MenuItem entity with a given id.
findByEmail(String) - Method in interface edu.ucsb.cs156.dining.repositories.UserRepository
This method returns a User entity with a given email.
findByItemId(Long) - Method in interface edu.ucsb.cs156.dining.repositories.ReviewRepository
 
findByProposedAliasNotNull() - Method in interface edu.ucsb.cs156.dining.repositories.UserRepository
This method returns a list of users with proposed alias that is not null.
findByReviewer(User) - Method in interface edu.ucsb.cs156.dining.repositories.ReviewRepository
 
findByStatus(ModerationStatus) - Method in interface edu.ucsb.cs156.dining.repositories.ReviewRepository
 
FrontendController - Class in edu.ucsb.cs156.dining.controllers
The FrontendController is used to serve the frontend of the application.
FrontendController() - Constructor for class edu.ucsb.cs156.dining.controllers.FrontendController
 
FrontendProxyController - Class in edu.ucsb.cs156.dining.controllers
The FrontendProxyController is used to proxy requests to the frontend of the application.
FrontendProxyController() - Constructor for class edu.ucsb.cs156.dining.controllers.FrontendProxyController
 

G

genericMessage(String) - Method in class edu.ucsb.cs156.dining.controllers.ApiController
This method returns a generic message.
get() - Method in class edu.ucsb.cs156.dining.services.DiningCommonsService
 
get(String, String, String) - Method in class edu.ucsb.cs156.dining.services.UCSBDiningMenuItemsService
Create a List of Entree from json representation
get_all_review_by_user_id() - Method in class edu.ucsb.cs156.dining.controllers.ReviewController
This method allows a user to get a list of reviews that they have previously made.
get_menu_items(String, String, String) - Method in class edu.ucsb.cs156.dining.controllers.UCSBDiningMenuItemsController
 
getAdmin(String) - Method in class edu.ucsb.cs156.dining.config.SecurityConfig
This method checks if the given email belongs to an admin user either from a predefined list or by querying the user repository.
getAlias() - Method in class edu.ucsb.cs156.dining.entities.User
 
getAverageRatingPerMenuItem() - Method in class edu.ucsb.cs156.dining.controllers.ReviewController
 
getCurrentUser() - Method in class edu.ucsb.cs156.dining.controllers.ApiController
This method returns the current user.
getCurrentUser() - Method in class edu.ucsb.cs156.dining.controllers.UserInfoController
This method returns the current user.
getCurrentUser() - Method in class edu.ucsb.cs156.dining.services.CurrentUserService
This method returns the current user as a CurrentUser object
getCurrentUser() - Method in class edu.ucsb.cs156.dining.services.CurrentUserServiceImpl
This method returns the current user as a User object.
getGrantedAuthorities() - Method in class edu.ucsb.cs156.dining.services.GrantedAuthoritiesService
The function retrieves and logs the granted authorities from the current security context in a Java application.
getJSON(String, String) - Method in class edu.ucsb.cs156.dining.services.UCSBDiningMenuService
 
getMenuItemById(Long) - Method in class edu.ucsb.cs156.dining.controllers.UCSBDiningMenuItemsController
 
getModerator(String) - Method in class edu.ucsb.cs156.dining.config.SecurityConfig
This method checks if the given email belongs to an moderator user either from a predefined list or by querying the user repository.
getOAuth2AuthenticatedUser(SecurityContext, Authentication) - Method in class edu.ucsb.cs156.dining.services.CurrentUserServiceImpl
This method obtains the current user that is logged in with OAuth2, if any.
getReviewByID(Long) - Method in class edu.ucsb.cs156.dining.controllers.ReviewController
 
getRoles() - Method in class edu.ucsb.cs156.dining.services.CurrentUserService
This method returns the roles of the current user.
getRoles() - Method in class edu.ucsb.cs156.dining.services.CurrentUserServiceImpl
This method returns the roles of the current user.
getSystemInfo() - Method in class edu.ucsb.cs156.dining.controllers.SystemInfoController
This method returns the system information.
getSystemInfo() - Method in class edu.ucsb.cs156.dining.services.SystemInfoService
This method returns the system information.
getSystemInfo() - Method in class edu.ucsb.cs156.dining.services.SystemInfoServiceImpl
This method returns the system information.
getUser() - Method in class edu.ucsb.cs156.dining.services.CurrentUserService
This method returns the current user as a User object.
getUser() - Method in class edu.ucsb.cs156.dining.services.CurrentUserServiceImpl
This method returns the current user as a User object.
getUsersWithProposedAlias() - Method in class edu.ucsb.cs156.dining.controllers.UsersController
This method returns list of all users with a proposed alias.
getWiremockServer() - Method in class edu.ucsb.cs156.dining.services.wiremock.WiremockService
This method returns the wiremockServer
getWiremockServer() - Method in class edu.ucsb.cs156.dining.services.wiremock.WiremockServiceDummy
Dummy call for getWiremockServer()
getWiremockServer() - Method in class edu.ucsb.cs156.dining.services.wiremock.WiremockServiceImpl
This method returns the wiremockServer
githubUrl(String, String) - Static method in class edu.ucsb.cs156.dining.services.SystemInfoServiceImpl
 
GrantedAuthoritiesService - Class in edu.ucsb.cs156.dining.services
The is a service that retrieves and logs the granted authorities for the current user's authentication.
GrantedAuthoritiesService() - Constructor for class edu.ucsb.cs156.dining.services.GrantedAuthoritiesService
 

H

handleGenericException(Throwable) - Method in class edu.ucsb.cs156.dining.controllers.ApiController
This method handles the EntityNotFoundException.
handleValidationExceptions(IllegalArgumentException) - Method in class edu.ucsb.cs156.dining.controllers.ReviewController
 

I

index() - Method in class edu.ucsb.cs156.dining.controllers.FrontendController
Serve home page of application
init() - Method in class edu.ucsb.cs156.dining.services.wiremock.WiremockService
This method initializes the WireMockServer
init() - Method in class edu.ucsb.cs156.dining.services.wiremock.WiremockServiceDummy
Dummy call to init
init() - Method in class edu.ucsb.cs156.dining.services.wiremock.WiremockServiceImpl
This method initializes the WireMockServer
isLoggedIn() - Method in class edu.ucsb.cs156.dining.services.CurrentUserService
This method returns whether the current user is logged in.

L

logControllers(JoinPoint) - Method in class edu.ucsb.cs156.dining.aop.LoggingAspect
This method is called before any controller method that is annotated with @RequestMapping, @GetMapping, @PostMapping, @PutMapping, @DeleteMapping, or @PatchMapping.
LoggingAspect - Class in edu.ucsb.cs156.dining.aop
This class is an Aspect that logs all invocations of controller methods that are annotated with @RequestMapping, @GetMapping, @PostMapping, @PutMapping, @DeleteMapping, or @PatchMapping.
LoggingAspect() - Constructor for class edu.ucsb.cs156.dining.aop.LoggingAspect
 

M

main(String[]) - Static method in class edu.ucsb.cs156.dining.ExampleApplication
The main method is the entry point for the application.
MenuItem - Class in edu.ucsb.cs156.dining.entities
This is a JPA entity that represents a MenuItem A MenuItem represents an actual menu item in a dining commons at UCSB
MenuItem() - Constructor for class edu.ucsb.cs156.dining.entities.MenuItem
 
MenuItemRepository - Interface in edu.ucsb.cs156.dining.repositories
 
MenuItemReviewAverageRating - Class in edu.ucsb.cs156.dining.models
 
MenuItemReviewAverageRating() - Constructor for class edu.ucsb.cs156.dining.models.MenuItemReviewAverageRating
 
menutimes(String, String) - Method in class edu.ucsb.cs156.dining.controllers.UCSBDiningMenuController
 
moderateReview(Long, ModerationStatus, String) - Method in class edu.ucsb.cs156.dining.controllers.ReviewController
 
ModerationStatus - Enum Class in edu.ucsb.cs156.dining.statuses
 

N

needsmoderation() - Method in class edu.ucsb.cs156.dining.controllers.ReviewController
 

P

postReview(long, String, Long, LocalDateTime) - Method in class edu.ucsb.cs156.dining.controllers.ReviewController
This method allows a user to submit a review
preHandle(HttpServletRequest, HttpServletResponse, Object) - Method in class edu.ucsb.cs156.dining.interceptors.RoleInterceptor
 
proxy(ProxyExchange<byte[]>) - Method in class edu.ucsb.cs156.dining.controllers.FrontendProxyController
This method proxies requests to the frontend server.

R

REJECTED - Enum constant in enum class edu.ucsb.cs156.dining.statuses.ModerationStatus
 
Review - Class in edu.ucsb.cs156.dining.entities
 
Review() - Constructor for class edu.ucsb.cs156.dining.entities.Review
 
ReviewController - Class in edu.ucsb.cs156.dining.controllers
This is a REST controller for Reviews
ReviewController() - Constructor for class edu.ucsb.cs156.dining.controllers.ReviewController
 
ReviewRepository - Interface in edu.ucsb.cs156.dining.repositories
The ReviewRepository is a repository for Review entities
RoleInterceptor - Class in edu.ucsb.cs156.dining.interceptors
 
RoleInterceptor() - Constructor for class edu.ucsb.cs156.dining.interceptors.RoleInterceptor
 
RoleInterceptorConfig - Class in edu.ucsb.cs156.dining.interceptors
 
RoleInterceptorConfig() - Constructor for class edu.ucsb.cs156.dining.interceptors.RoleInterceptorConfig
 

S

SAMPLE_CARRILLO - Static variable in class edu.ucsb.cs156.dining.models.DiningCommons
 
SecurityConfig - Class in edu.ucsb.cs156.dining.config
The `SecurityConfig` class in Java configures web security with OAuth2 login, CSRF protection, and role-based authorization based on user email addresses.
SecurityConfig() - Constructor for class edu.ucsb.cs156.dining.config.SecurityConfig
 
setupOauthMocks(Stubbing, boolean) - Static method in class edu.ucsb.cs156.dining.services.wiremock.WiremockServiceImpl
This method sets up the necessary mocks for authentication
SystemInfo - Class in edu.ucsb.cs156.dining.models
This is a model class that represents system information.
SystemInfo() - Constructor for class edu.ucsb.cs156.dining.models.SystemInfo
 
SystemInfoController - Class in edu.ucsb.cs156.dining.controllers
This is a REST controller for getting information about the system.
SystemInfoController() - Constructor for class edu.ucsb.cs156.dining.controllers.SystemInfoController
 
SystemInfoService - Class in edu.ucsb.cs156.dining.services
The SystemInfoService is a service that provides global information about the system and makes it available to the frontend.
SystemInfoService() - Constructor for class edu.ucsb.cs156.dining.services.SystemInfoService
 
SystemInfoServiceImpl - Class in edu.ucsb.cs156.dining.services
This is a service for getting information about the system.
SystemInfoServiceImpl() - Constructor for class edu.ucsb.cs156.dining.services.SystemInfoServiceImpl
 

U

UCSBDiningMenuController - Class in edu.ucsb.cs156.dining.controllers
 
UCSBDiningMenuController() - Constructor for class edu.ucsb.cs156.dining.controllers.UCSBDiningMenuController
 
UCSBDiningMenuItemsController - Class in edu.ucsb.cs156.dining.controllers
 
UCSBDiningMenuItemsController() - Constructor for class edu.ucsb.cs156.dining.controllers.UCSBDiningMenuItemsController
 
UCSBDiningMenuItemsService - Class in edu.ucsb.cs156.dining.services
 
UCSBDiningMenuItemsService(RestTemplateBuilder) - Constructor for class edu.ucsb.cs156.dining.services.UCSBDiningMenuItemsService
 
UCSBDiningMenuService - Class in edu.ucsb.cs156.dining.services
Service object that wraps the UCSB Dining Menu API
UCSBDiningMenuService(RestTemplateBuilder) - Constructor for class edu.ucsb.cs156.dining.services.UCSBDiningMenuService
 
updateAliasModeration(long, Boolean) - Method in class edu.ucsb.cs156.dining.controllers.UsersController
This method allows an admin to update the moderation status of a user's alias.
updateProposedAlias(String) - Method in class edu.ucsb.cs156.dining.controllers.UsersController
This method allows the user to update their alias.
User - Class in edu.ucsb.cs156.dining.entities
This is a JPA entity that represents a user.
User() - Constructor for class edu.ucsb.cs156.dining.entities.User
 
UserInfoController - Class in edu.ucsb.cs156.dining.controllers
This is a REST controller for getting information about the current user.
UserInfoController() - Constructor for class edu.ucsb.cs156.dining.controllers.UserInfoController
 
UserRepository - Interface in edu.ucsb.cs156.dining.repositories
The UserRepository is a repository for User entities.
users() - Method in class edu.ucsb.cs156.dining.controllers.UsersController
This method returns a list of all users.
UsersController - Class in edu.ucsb.cs156.dining.controllers
This is a REST controller for getting information about the users.
UsersController() - Constructor for class edu.ucsb.cs156.dining.controllers.UsersController
 
utcDateTimeProvider() - Method in class edu.ucsb.cs156.dining.ExampleApplication
 

V

valueOf(String) - Static method in enum class edu.ucsb.cs156.dining.statuses.ModerationStatus
Returns the enum constant of this class with the specified name.
values() - Static method in enum class edu.ucsb.cs156.dining.statuses.ModerationStatus
Returns an array containing the constants of this enum class, in the order they are declared.

W

webSecurityCustomizer() - Method in class edu.ucsb.cs156.dining.config.SecurityConfig
The `webSecurityCustomizer` method is used to configure web security in Java, specifically ignoring requests to the "/h2-console/**" path.
wiremockApplicationRunner() - Method in class edu.ucsb.cs156.dining.ExampleApplication
When using the wiremock profile, this method will call the code needed to set up the wiremock services
WiremockService - Class in edu.ucsb.cs156.dining.services.wiremock
This is a service for mocking authentication using wiremock This class relies on property values.
WiremockService() - Constructor for class edu.ucsb.cs156.dining.services.wiremock.WiremockService
 
WiremockServiceDummy - Class in edu.ucsb.cs156.dining.services.wiremock
This is a dummy service for profiles besides wiremock where we do not want the mocked authentication, but instead real oauth authentication
WiremockServiceDummy() - Constructor for class edu.ucsb.cs156.dining.services.wiremock.WiremockServiceDummy
 
WiremockServiceImpl - Class in edu.ucsb.cs156.dining.services.wiremock
This is a service for mocking authentication using wiremock This class relies on property values.
WiremockServiceImpl() - Constructor for class edu.ucsb.cs156.dining.services.wiremock.WiremockServiceImpl
 
A C D E F G H I L M N P R S U V W 
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form