Index

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

A

allArticle() - Method in class edu.ucsb.cs156.example.controllers.ArticlesController
 
allCommonss() - Method in class edu.ucsb.cs156.example.controllers.UCSBDiningCommonsController
THis method returns a list of all ucsbdiningcommons.
allHelpRequests() - Method in class edu.ucsb.cs156.example.controllers.HelpRequestController
List all help requests
allOrganizations() - Method in class edu.ucsb.cs156.example.controllers.UCSBOrganizationsController
List all UCSB Orgs
allRecommendationRequests() - Method in class edu.ucsb.cs156.example.controllers.RecommendationRequestController
List all Recommendation Requests
allRestaurants() - Method in class edu.ucsb.cs156.example.controllers.RestaurantsController
This method returns a list of all restaurants.
allUCSBDates() - Method in class edu.ucsb.cs156.example.controllers.UCSBDatesController
List all UCSB dates
allUCSBDiningCommonsMenuItems() - Method in class edu.ucsb.cs156.example.controllers.UCSBDiningCommonsMenuItemsController
List all UCSB Dining Commons Menu Items
ApiController - Class in edu.ucsb.cs156.example.controllers
This is an abstract class that provides common functionality for all API controllers.
ApiController() - Constructor for class edu.ucsb.cs156.example.controllers.ApiController
 
Article - Class in edu.ucsb.cs156.example.entities
This is a JPA entity that represents an article.
Article() - Constructor for class edu.ucsb.cs156.example.entities.Article
 
ArticleRepository - Interface in edu.ucsb.cs156.example.repositories
The ArticleRepository is a repository for Articles entities
ArticlesController - Class in edu.ucsb.cs156.example.controllers
 
ArticlesController() - Constructor for class edu.ucsb.cs156.example.controllers.ArticlesController
 

C

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

D

deleteArticle(String) - Method in class edu.ucsb.cs156.example.controllers.ArticlesController
Delete an Article
deleteById(Long) - Method in class edu.ucsb.cs156.example.controllers.UCSBDiningCommonsMenuItemsController
Deletes a UCSBDiningCommonsMenuItem
deleteCommons(String) - Method in class edu.ucsb.cs156.example.controllers.UCSBDiningCommonsController
Delete a diningcommons.
deleteHelpRequest(Long) - Method in class edu.ucsb.cs156.example.controllers.HelpRequestController
Delete a HelpRequest
deleteMenuItemReview(long) - Method in class edu.ucsb.cs156.example.controllers.MenuItemReviewController
 
deleteOrganizations(String) - Method in class edu.ucsb.cs156.example.controllers.UCSBOrganizationsController
 
deleteRecommendationRequest(Long) - Method in class edu.ucsb.cs156.example.controllers.RecommendationRequestController
Delete a RecommendationRequest
deleteRestaurant(Long) - Method in class edu.ucsb.cs156.example.controllers.RestaurantsController
Deletes a restaurant.
deleteUCSBDate(Long) - Method in class edu.ucsb.cs156.example.controllers.UCSBDatesController
Delete a UCSBDate
developmentApplicationRunner() - Method in class edu.ucsb.cs156.example.ExampleApplication
Hook that can be used to set up any services needed for development

E

edu.ucsb.cs156.example - package edu.ucsb.cs156.example
 
edu.ucsb.cs156.example.aop - package edu.ucsb.cs156.example.aop
 
edu.ucsb.cs156.example.config - package edu.ucsb.cs156.example.config
 
edu.ucsb.cs156.example.controllers - package edu.ucsb.cs156.example.controllers
 
edu.ucsb.cs156.example.entities - package edu.ucsb.cs156.example.entities
 
edu.ucsb.cs156.example.errors - package edu.ucsb.cs156.example.errors
 
edu.ucsb.cs156.example.models - package edu.ucsb.cs156.example.models
 
edu.ucsb.cs156.example.repositories - package edu.ucsb.cs156.example.repositories
 
edu.ucsb.cs156.example.services - package edu.ucsb.cs156.example.services
 
edu.ucsb.cs156.example.services.wiremock - package edu.ucsb.cs156.example.services.wiremock
 
EntityNotFoundException - Exception Class in edu.ucsb.cs156.example.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.example.errors.EntityNotFoundException
Constructor for the exception
ExampleApplication - Class in edu.ucsb.cs156.example
The ExampleApplication class is the main entry point for the application.
ExampleApplication() - Constructor for class edu.ucsb.cs156.example.ExampleApplication
 

F

filterChain(HttpSecurity) - Method in class edu.ucsb.cs156.example.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.
findAllByQuarterYYYYQ(String) - Method in interface edu.ucsb.cs156.example.repositories.UCSBDateRepository
This method returns all UCSBDate entities with a given quarterYYYYQ.
findByEmail(String) - Method in interface edu.ucsb.cs156.example.repositories.UserRepository
This method returns a User entity with a given email.
FrontendController - Class in edu.ucsb.cs156.example.controllers
The FrontendController is used to serve the frontend of the application.
FrontendController() - Constructor for class edu.ucsb.cs156.example.controllers.FrontendController
 
FrontendProxyController - Class in edu.ucsb.cs156.example.controllers
The FrontendProxyController is used to proxy requests to the frontend of the application.
FrontendProxyController() - Constructor for class edu.ucsb.cs156.example.controllers.FrontendProxyController
 

G

genericMessage(String) - Method in class edu.ucsb.cs156.example.controllers.ApiController
This method returns a generic message.
getAdmin(String) - Method in class edu.ucsb.cs156.example.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.
getAllMenuItemReviews() - Method in class edu.ucsb.cs156.example.controllers.MenuItemReviewController
 
getById(Long) - Method in class edu.ucsb.cs156.example.controllers.HelpRequestController
Get a single date by id
getById(Long) - Method in class edu.ucsb.cs156.example.controllers.RecommendationRequestController
Get a single recommendation request by id
getById(Long) - Method in class edu.ucsb.cs156.example.controllers.RestaurantsController
This method returns a single restaurant.
getById(Long) - Method in class edu.ucsb.cs156.example.controllers.UCSBDatesController
Get a single date by id
getById(Long) - Method in class edu.ucsb.cs156.example.controllers.UCSBDiningCommonsMenuItemsController
Get a single UCSBDiningCommonsMenuItem via ID
getById(String) - Method in class edu.ucsb.cs156.example.controllers.ArticlesController
Get a single article by id
getById(String) - Method in class edu.ucsb.cs156.example.controllers.UCSBDiningCommonsController
This method returns a single diningcommons.
getById(String) - Method in class edu.ucsb.cs156.example.controllers.UCSBOrganizationsController
Get a single org by id
getCurrentUser() - Method in class edu.ucsb.cs156.example.controllers.ApiController
This method returns the current user.
getCurrentUser() - Method in class edu.ucsb.cs156.example.controllers.UserInfoController
This method returns the current user.
getCurrentUser() - Method in class edu.ucsb.cs156.example.services.CurrentUserService
This method returns the current user as a CurrentUser object
getCurrentUser() - Method in class edu.ucsb.cs156.example.services.CurrentUserServiceImpl
This method returns the current user as a User object.
getGrantedAuthorities() - Method in class edu.ucsb.cs156.example.services.GrantedAuthoritiesService
The function retrieves and logs the granted authorities from the current security context in a Java application.
getMenuItemReviewById(long) - Method in class edu.ucsb.cs156.example.controllers.MenuItemReviewController
 
getOAuth2AuthenticatedUser(SecurityContext, Authentication) - Method in class edu.ucsb.cs156.example.services.CurrentUserServiceImpl
This method obtains the current user that is logged in with OAuth2, if any.
getRoles() - Method in class edu.ucsb.cs156.example.services.CurrentUserService
This method returns the roles of the current user.
getRoles() - Method in class edu.ucsb.cs156.example.services.CurrentUserServiceImpl
This method returns the roles of the current user.
getSystemInfo() - Method in class edu.ucsb.cs156.example.controllers.SystemInfoController
This method returns the system information.
getSystemInfo() - Method in class edu.ucsb.cs156.example.services.SystemInfoService
This method returns the system information.
getSystemInfo() - Method in class edu.ucsb.cs156.example.services.SystemInfoServiceImpl
This method returns the system information.
getUser() - Method in class edu.ucsb.cs156.example.services.CurrentUserService
This method returns the current user as a User object.
getUser() - Method in class edu.ucsb.cs156.example.services.CurrentUserServiceImpl
This method returns the current user as a User object.
getWiremockServer() - Method in class edu.ucsb.cs156.example.services.wiremock.WiremockService
This method returns the wiremockServer
getWiremockServer() - Method in class edu.ucsb.cs156.example.services.wiremock.WiremockServiceDummy
Dummy call for getWiremockServer()
getWiremockServer() - Method in class edu.ucsb.cs156.example.services.wiremock.WiremockServiceImpl
This method returns the wiremockServer
GrantedAuthoritiesService - Class in edu.ucsb.cs156.example.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.example.services.GrantedAuthoritiesService
 

H

handleGenericException(Throwable) - Method in class edu.ucsb.cs156.example.controllers.ApiController
This method handles the EntityNotFoundException.
HelpRequest - Class in edu.ucsb.cs156.example.entities
 
HelpRequest() - Constructor for class edu.ucsb.cs156.example.entities.HelpRequest
 
HelpRequestController - Class in edu.ucsb.cs156.example.controllers
This is a REST controller for HelpRequests
HelpRequestController() - Constructor for class edu.ucsb.cs156.example.controllers.HelpRequestController
 
HelpRequestRepository - Interface in edu.ucsb.cs156.example.repositories
The HelpRequestRepository is a repository for HelpRequest entities.

I

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

L

logControllers(JoinPoint) - Method in class edu.ucsb.cs156.example.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.example.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.example.aop.LoggingAspect
 

M

main(String[]) - Static method in class edu.ucsb.cs156.example.ExampleApplication
The main method is the entry point for the application.
MenuItemReviewController - Class in edu.ucsb.cs156.example.controllers
 
MenuItemReviewController() - Constructor for class edu.ucsb.cs156.example.controllers.MenuItemReviewController
 
MenuItemReviews - Class in edu.ucsb.cs156.example.entities
This is a JPA entity that represents a MenuItemReviews, i.e.
MenuItemReviews() - Constructor for class edu.ucsb.cs156.example.entities.MenuItemReviews
 
MenuItemReviewsRepository - Interface in edu.ucsb.cs156.example.repositories
The MenuItemReviewsRepository is a repository for MenuItemReviews entities.

P

postArticle(String, String, String, String, LocalDateTime) - Method in class edu.ucsb.cs156.example.controllers.ArticlesController
 
postCommons(String, String, boolean, boolean, boolean, double, double) - Method in class edu.ucsb.cs156.example.controllers.UCSBDiningCommonsController
This method creates a new diningcommons.
postHelpRequest(String, String, String, LocalDateTime, String, boolean) - Method in class edu.ucsb.cs156.example.controllers.HelpRequestController
Create a new date
postOrganization(String, String, String, boolean) - Method in class edu.ucsb.cs156.example.controllers.UCSBOrganizationsController
 
postRecommendationRequest(String, String, String, LocalDateTime, LocalDateTime, boolean) - Method in class edu.ucsb.cs156.example.controllers.RecommendationRequestController
 
postRestaurant(String, String) - Method in class edu.ucsb.cs156.example.controllers.RestaurantsController
This method creates a new restaurant.
postUCSBDate(String, String, LocalDateTime) - Method in class edu.ucsb.cs156.example.controllers.UCSBDatesController
Create a new date
postUCSBDiningCommonsMenuItem(String, String, String) - Method in class edu.ucsb.cs156.example.controllers.UCSBDiningCommonsMenuItemsController
Create a new UCSBDiningCommonsMenuItem
proxy(ProxyExchange<byte[]>) - Method in class edu.ucsb.cs156.example.controllers.FrontendProxyController
This method proxies requests to the frontend server.

R

RecommendationRequest - Class in edu.ucsb.cs156.example.entities
This is a JPA entity that represents a recommendation request.
RecommendationRequest() - Constructor for class edu.ucsb.cs156.example.entities.RecommendationRequest
 
RecommendationRequestController - Class in edu.ucsb.cs156.example.controllers
This is a REST controller for RecommendationRequests
RecommendationRequestController() - Constructor for class edu.ucsb.cs156.example.controllers.RecommendationRequestController
 
RecommendationRequestRepository - Interface in edu.ucsb.cs156.example.repositories
The RecommendationRequestRepository is a repository for RecommendationRequest entities.
Restaurant - Class in edu.ucsb.cs156.example.entities
This is a JPA entity that represents a restaurant.
Restaurant() - Constructor for class edu.ucsb.cs156.example.entities.Restaurant
 
RestaurantRepository - Interface in edu.ucsb.cs156.example.repositories
The RestaurantRepository is a repository for Restaurant entities
RestaurantsController - Class in edu.ucsb.cs156.example.controllers
This is a REST controller for Restaurants
RestaurantsController() - Constructor for class edu.ucsb.cs156.example.controllers.RestaurantsController
 

S

SecurityConfig - Class in edu.ucsb.cs156.example.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.example.config.SecurityConfig
 
setupOauthMocks(Stubbing, boolean) - Static method in class edu.ucsb.cs156.example.services.wiremock.WiremockServiceImpl
This method sets up the necessary mocks for authentication
SystemInfo - Class in edu.ucsb.cs156.example.models
This is a model class that represents system information.
SystemInfo() - Constructor for class edu.ucsb.cs156.example.models.SystemInfo
 
SystemInfoController - Class in edu.ucsb.cs156.example.controllers
This is a REST controller for getting information about the system.
SystemInfoController() - Constructor for class edu.ucsb.cs156.example.controllers.SystemInfoController
 
SystemInfoService - Class in edu.ucsb.cs156.example.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.example.services.SystemInfoService
 
SystemInfoServiceImpl - Class in edu.ucsb.cs156.example.services
This is a service for getting information about the system.
SystemInfoServiceImpl() - Constructor for class edu.ucsb.cs156.example.services.SystemInfoServiceImpl
 

U

UCSBDate - Class in edu.ucsb.cs156.example.entities
This is a JPA entity that represents a UCSBDate, i.e.
UCSBDate() - Constructor for class edu.ucsb.cs156.example.entities.UCSBDate
 
UCSBDateRepository - Interface in edu.ucsb.cs156.example.repositories
The UCSBDateRepository is a repository for UCSBDate entities.
UCSBDatesController - Class in edu.ucsb.cs156.example.controllers
This is a REST controller for UCSBDates
UCSBDatesController() - Constructor for class edu.ucsb.cs156.example.controllers.UCSBDatesController
 
UCSBDiningCommons - Class in edu.ucsb.cs156.example.entities
This is a JPA entity that represents a UCSBDiningCommons A UCSBDiningCommons is a dining commons at UCSB
UCSBDiningCommons() - Constructor for class edu.ucsb.cs156.example.entities.UCSBDiningCommons
 
UCSBDiningCommonsController - Class in edu.ucsb.cs156.example.controllers
This is a REST controller for UCSBDiningCommons
UCSBDiningCommonsController() - Constructor for class edu.ucsb.cs156.example.controllers.UCSBDiningCommonsController
 
UCSBDiningCommonsMenuItem - Class in edu.ucsb.cs156.example.entities
This is a JPA entity that represents a UCSBDiningCommonsMenuItem A UCSBDiningCommonsMenuItem is a menu item at a UCSB dining commons
UCSBDiningCommonsMenuItem() - Constructor for class edu.ucsb.cs156.example.entities.UCSBDiningCommonsMenuItem
 
UCSBDiningCommonsMenuItemRepository - Interface in edu.ucsb.cs156.example.repositories
The UCSBDiningCommonsMenuItemRepository is a repository for UCSBDiningCommonsMenuItem entities
UCSBDiningCommonsMenuItemsController - Class in edu.ucsb.cs156.example.controllers
This is a REST controller for UCSBDiningCommonsMenuItem
UCSBDiningCommonsMenuItemsController() - Constructor for class edu.ucsb.cs156.example.controllers.UCSBDiningCommonsMenuItemsController
 
UCSBDiningCommonsRepository - Interface in edu.ucsb.cs156.example.repositories
The UCSBDiningCommonsRepository is a repository for UCSBDiningCommons entities
UCSBOrganizations - Class in edu.ucsb.cs156.example.entities
 
UCSBOrganizations() - Constructor for class edu.ucsb.cs156.example.entities.UCSBOrganizations
 
UCSBOrganizationsController - Class in edu.ucsb.cs156.example.controllers
 
UCSBOrganizationsController() - Constructor for class edu.ucsb.cs156.example.controllers.UCSBOrganizationsController
 
UCSBOrganizationsRepository - Interface in edu.ucsb.cs156.example.repositories
 
updateArticle(String, Article) - Method in class edu.ucsb.cs156.example.controllers.ArticlesController
Update a single article
updateCommons(String, UCSBDiningCommons) - Method in class edu.ucsb.cs156.example.controllers.UCSBDiningCommonsController
Update a single diningcommons.
updateHelpRequest(Long, HelpRequest) - Method in class edu.ucsb.cs156.example.controllers.HelpRequestController
Update a single date
updateMenuItemReview(long, MenuItemReviews) - Method in class edu.ucsb.cs156.example.controllers.MenuItemReviewController
 
updateOrganizations(String, UCSBOrganizations) - Method in class edu.ucsb.cs156.example.controllers.UCSBOrganizationsController
Update a single org.
updateRecommendationRequest(Long, RecommendationRequest) - Method in class edu.ucsb.cs156.example.controllers.RecommendationRequestController
Update a single recommendation request
updateRestaurant(Long, Restaurant) - Method in class edu.ucsb.cs156.example.controllers.RestaurantsController
Update a single restaurant.
updateUCSBDate(Long, UCSBDate) - Method in class edu.ucsb.cs156.example.controllers.UCSBDatesController
Update a single date
updateUCSBDiningCommonsMenuItem(Long, UCSBDiningCommonsMenuItem) - Method in class edu.ucsb.cs156.example.controllers.UCSBDiningCommonsMenuItemsController
Update a single UCSBDiningCommonsMenuItem via diningCommonsCode
User - Class in edu.ucsb.cs156.example.entities
This is a JPA entity that represents a user.
User() - Constructor for class edu.ucsb.cs156.example.entities.User
 
UserInfoController - Class in edu.ucsb.cs156.example.controllers
This is a REST controller for getting information about the current user.
UserInfoController() - Constructor for class edu.ucsb.cs156.example.controllers.UserInfoController
 
UserRepository - Interface in edu.ucsb.cs156.example.repositories
The UserRepository is a repository for User entities.
users() - Method in class edu.ucsb.cs156.example.controllers.UsersController
This method returns a list of all users.
UsersController - Class in edu.ucsb.cs156.example.controllers
This is a REST controller for getting information about the users.
UsersController() - Constructor for class edu.ucsb.cs156.example.controllers.UsersController
 

W

webSecurityCustomizer() - Method in class edu.ucsb.cs156.example.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.example.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.example.services.wiremock
This is a service for mocking authentication using wiremock This class relies on property values.
WiremockService() - Constructor for class edu.ucsb.cs156.example.services.wiremock.WiremockService
 
WiremockServiceDummy - Class in edu.ucsb.cs156.example.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.example.services.wiremock.WiremockServiceDummy
 
WiremockServiceImpl - Class in edu.ucsb.cs156.example.services.wiremock
This is a service for mocking authentication using wiremock This class relies on property values.
WiremockServiceImpl() - Constructor for class edu.ucsb.cs156.example.services.wiremock.WiremockServiceImpl
 
A C D E F G H I L M P R S U W 
All Classes and Interfaces|All Packages|Serialized Form