Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
A
- accountQueue() - Method in class com.goldenleaf.shop.config.RabbitConfig
- addBonusPoints(int) - Method in class com.goldenleaf.shop.model.Customer
-
Adds the specified number of bonus points to the current balance.
- addCategory(Category) - Method in class com.goldenleaf.shop.service.CategoryService
-
Adds a new
Categoryto the database. - addCreditCard(CreditCard) - Method in class com.goldenleaf.shop.service.CreditCardService
-
Adds a new
CreditCardto the database. - addItem(Product, int) - Method in class com.goldenleaf.shop.model.ShoppingCart
-
Adds a new item to the cart based on a product and quantity.
- addPayment(CreditCard) - Method in class com.goldenleaf.shop.model.Customer
-
Adds a credit card to the customer's payment methods and sets the bidirectional link.
- addProduct(Product) - Method in class com.goldenleaf.shop.service.ProductService
-
Adds a new
Productto the database. - addReview(Review) - Method in class com.goldenleaf.shop.model.Product
-
Adds a new review for this product.
- addReview(Review) - Method in class com.goldenleaf.shop.service.ReviewService
-
Adds a new
Reviewto the database. - addShoppingCart(ShoppingCart) - Method in class com.goldenleaf.shop.service.ShoppingCartService
-
Adds a new
ShoppingCartto the database. - addShoppingItem(ShoppingItem) - Method in class com.goldenleaf.shop.service.ShoppingItemService
-
Adds a new
ShoppingItemto the database. - addUser(User) - Method in class com.goldenleaf.shop.service.UserService
-
Adds a new
Userto the database. - Admin - Class in com.goldenleaf.shop.model
-
Entity representing an administrative user of the online shop system.
- Admin() - Constructor for class com.goldenleaf.shop.model.Admin
-
Default constructor required by JPA.
- Admin(String, String, String, LocalDate, String, boolean) - Constructor for class com.goldenleaf.shop.model.Admin
-
Full constructor for creating a fully initialized admin account.
- AdminDTO - Class in com.goldenleaf.shop.dto
-
Data Transfer Object for creating or updating an
Admin. - AdminDTO() - Constructor for class com.goldenleaf.shop.dto.AdminDTO
- AdminRepository - Interface in com.goldenleaf.shop.repository
-
Spring Data JPA repository for
Adminentities. - AdminService - Class in com.goldenleaf.shop.service
-
Service class providing business logic for working with
Adminentities. - AdminService(AdminRepository) - Constructor for class com.goldenleaf.shop.service.AdminService
-
Creates an instance of
AdminService. - AppMapper - Interface in com.goldenleaf.shop
-
Mapper interface for converting between entity classes and their corresponding DTOs.
C
- calculateTotalPrice() - Method in class com.goldenleaf.shop.model.ShoppingCart
-
Calculates and returns the total price of all items in the cart.
- Category - Class in com.goldenleaf.shop.model
-
Entity representing a product category in the online shop.
- Category() - Constructor for class com.goldenleaf.shop.model.Category
-
Default constructor required by JPA.
- Category(String) - Constructor for class com.goldenleaf.shop.model.Category
-
Constructs a new category with the specified name.
- CategoryDTO - Class in com.goldenleaf.shop.dto
-
Data Transfer Object for
Categoryentity. - CategoryDTO() - Constructor for class com.goldenleaf.shop.dto.CategoryDTO
-
Default constructor required for JSON deserialization (Jackson, Gson)
- CategoryDTO(Long, String) - Constructor for class com.goldenleaf.shop.dto.CategoryDTO
-
Convenience constructor for manual object creation or mapping.
- CategoryRepository - Interface in com.goldenleaf.shop.repository
-
Spring Data JPA repository for
Categoryentities. - CategoryService - Class in com.goldenleaf.shop.service
-
Service class for managing
Categoryentities. - CategoryService(CategoryRepository) - Constructor for class com.goldenleaf.shop.service.CategoryService
-
Constructs a new
CategoryServicewith the provided repository. - clear() - Method in class com.goldenleaf.shop.model.ShoppingCart
-
Removes all items from the cart.
- clearCvv() - Method in class com.goldenleaf.shop.model.CreditCard
-
Clears the CVV from memory after use (recommended for security).
- com.goldenleaf.shop - package com.goldenleaf.shop
- com.goldenleaf.shop.config - package com.goldenleaf.shop.config
- com.goldenleaf.shop.dto - package com.goldenleaf.shop.dto
- com.goldenleaf.shop.exception - package com.goldenleaf.shop.exception
- com.goldenleaf.shop.model - package com.goldenleaf.shop.model
- com.goldenleaf.shop.repository - package com.goldenleaf.shop.repository
- com.goldenleaf.shop.service - package com.goldenleaf.shop.service
- CreditCard - Class in com.goldenleaf.shop.model
-
Entity representing a customer's credit/debit card used for payments.
- CreditCard() - Constructor for class com.goldenleaf.shop.model.CreditCard
-
Default constructor required by JPA.
- CreditCardDTO - Class in com.goldenleaf.shop.dto
-
Data Transfer Object for creating or updating a credit card payment method.
- CreditCardDTO() - Constructor for class com.goldenleaf.shop.dto.CreditCardDTO
-
Default constructor required for JSON binding
- CreditCardDTO(Long, String, String, YearMonth, Long) - Constructor for class com.goldenleaf.shop.dto.CreditCardDTO
- CreditCardRepository - Interface in com.goldenleaf.shop.repository
-
Spring Data JPA repository for
CreditCardentities. - CreditCardService - Class in com.goldenleaf.shop.service
-
Service class for managing
CreditCardentities. - CreditCardService(CreditCardRepository) - Constructor for class com.goldenleaf.shop.service.CreditCardService
-
Constructs a new
CreditCardServicewith the provided repository. - Customer - Class in com.goldenleaf.shop.model
-
Entity representing a customer (registered user) of the online shop.
- Customer() - Constructor for class com.goldenleaf.shop.model.Customer
-
Default constructor.
- Customer(String, String, String, LocalDate, String, String, int, ShoppingCart, List<CreditCard>) - Constructor for class com.goldenleaf.shop.model.Customer
-
Full constructor creating a customer with all required fields.
- CustomerDTO - Class in com.goldenleaf.shop.dto
-
Data Transfer Object for creating, updating or returning customer information.
- CustomerDTO() - Constructor for class com.goldenleaf.shop.dto.CustomerDTO
-
Default constructor required for JSON deserialization
- CustomerDTO(Long, String, String, LocalDate, String, String, int, Long, List<Long>) - Constructor for class com.goldenleaf.shop.dto.CustomerDTO
-
Full constructor for manual mapping or testing.
- CustomerRepository - Interface in com.goldenleaf.shop.repository
-
Spring Data JPA repository for
Customerentities. - CustomerService - Class in com.goldenleaf.shop.service
-
Service class for managing
Customerentities. - CustomerService(CustomerRepository) - Constructor for class com.goldenleaf.shop.service.CustomerService
-
Constructs a new
CustomerServicewith the provided repository.
D
- deleteByCardNumber(String) - Method in interface com.goldenleaf.shop.repository.CreditCardRepository
-
Deletes a credit card by its full card number.
- deleteByCart(ShoppingCart) - Method in interface com.goldenleaf.shop.repository.ShoppingItemRepository
-
Deletes all items from a cart — used on "Clear Cart" or account deletion.
- deleteByCustomer(Customer) - Method in interface com.goldenleaf.shop.repository.ShoppingCartRepository
-
Deletes the shopping cart associated with a specific customer.
- deleteByLogin(String) - Method in interface com.goldenleaf.shop.repository.UserRepository
-
Deletes a user by their login.
- deleteByMobile(String) - Method in interface com.goldenleaf.shop.repository.CustomerRepository
-
Deletes a customer by their mobile phone number.
- deleteByName(String) - Method in interface com.goldenleaf.shop.repository.ProductRepository
-
Deletes a product by its name.
- deleteByProduct(Product) - Method in interface com.goldenleaf.shop.repository.ReviewRepository
-
Deletes all reviews associated with a given product.
- deleteByProductName(String) - Method in interface com.goldenleaf.shop.repository.ReviewRepository
-
Deletes all reviews for a product identified by its name.
E
- editCategory(Category) - Method in class com.goldenleaf.shop.service.CategoryService
-
Updates an existing
Category. - editCreditCard(CreditCard) - Method in class com.goldenleaf.shop.service.CreditCardService
-
Updates an existing
CreditCard. - editProduct(Product) - Method in class com.goldenleaf.shop.service.ProductService
-
Updates an existing
Product. - editReview(Review) - Method in class com.goldenleaf.shop.service.ReviewService
-
Updates an existing
Review. - editShoppingCart(ShoppingCart) - Method in class com.goldenleaf.shop.service.ShoppingCartService
-
Updates an existing
ShoppingCart. - editShoppingItem(ShoppingItem) - Method in class com.goldenleaf.shop.service.ShoppingItemService
-
Updates an existing
ShoppingItem. - editUser(User) - Method in class com.goldenleaf.shop.service.UserService
-
Updates an existing
User. - EmptyAuthorException - Exception Class in com.goldenleaf.shop.exception
-
Checked exception thrown when an attempt is made to create or process a review without a valid author (customer).
- EmptyAuthorException(String) - Constructor for exception class com.goldenleaf.shop.exception.EmptyAuthorException
-
Constructs a new empty author exception with the specified detail message.
- EmptyAuthorException(String, Throwable) - Constructor for exception class com.goldenleaf.shop.exception.EmptyAuthorException
-
Constructs a new empty author exception with the specified detail message and cause.
- EmptyBrandException - Exception Class in com.goldenleaf.shop.exception
-
Checked exception thrown when an attempt is made to create or update a product without specifying a valid brand.
- EmptyBrandException(String) - Constructor for exception class com.goldenleaf.shop.exception.EmptyBrandException
-
Constructs a new empty brand exception with the specified detail message.
- EmptyBrandException(String, Throwable) - Constructor for exception class com.goldenleaf.shop.exception.EmptyBrandException
-
Constructs a new empty brand exception with the specified detail message and cause.
- EmptyCardNumberException - Exception Class in com.goldenleaf.shop.exception
-
Checked exception thrown when an attempt is made to create or update a credit card without providing a valid card number.
- EmptyCardNumberException(String) - Constructor for exception class com.goldenleaf.shop.exception.EmptyCardNumberException
-
Constructs a new exception with the specified detail message.
- EmptyCardNumberException(String, Throwable) - Constructor for exception class com.goldenleaf.shop.exception.EmptyCardNumberException
-
Constructs a new exception with the specified detail message and cause.
- EmptyContentException - Exception Class in com.goldenleaf.shop.exception
-
Checked exception thrown when an attempt is made to create or save a review (or any other user-generated textual content) with an empty or missing text body.
- EmptyContentException(String) - Constructor for exception class com.goldenleaf.shop.exception.EmptyContentException
-
Constructs a new empty-content exception with the specified detail message.
- EmptyContentException(String, Throwable) - Constructor for exception class com.goldenleaf.shop.exception.EmptyContentException
-
Constructs a new empty-content exception with the specified detail message and cause.
- EmptyCvvException - Exception Class in com.goldenleaf.shop.exception
-
Checked exception thrown when an attempt is made to process or temporarily store a credit-card CVV (Card Verification Value) that is
null, empty, or consists only of whitespace. - EmptyCvvException(String) - Constructor for exception class com.goldenleaf.shop.exception.EmptyCvvException
-
Constructs a new empty-CVV exception with the specified detail message.
- EmptyCvvException(String, Throwable) - Constructor for exception class com.goldenleaf.shop.exception.EmptyCvvException
-
Constructs a new empty-CVV exception with the specified detail message and cause.
- EmptyExpiryException - Exception Class in com.goldenleaf.shop.exception
-
Checked exception thrown when an attempt is made to create or update a credit card without providing a valid expiry date (month/year).
- EmptyExpiryException(String) - Constructor for exception class com.goldenleaf.shop.exception.EmptyExpiryException
-
Constructs a new empty-expiry exception with the specified detail message.
- EmptyExpiryException(String, Throwable) - Constructor for exception class com.goldenleaf.shop.exception.EmptyExpiryException
-
Constructs a new empty-expiry exception with the specified detail message and cause.
- EmptyLastActivityException - Exception Class in com.goldenleaf.shop.exception
-
Checked exception thrown when an attempt is made to create or persist a user (customer, admin, etc.) without specifying the date of the last activity.
- EmptyLastActivityException(String) - Constructor for exception class com.goldenleaf.shop.exception.EmptyLastActivityException
-
Constructs a new empty-last-activity exception with the specified detail message.
- EmptyLastActivityException(String, Throwable) - Constructor for exception class com.goldenleaf.shop.exception.EmptyLastActivityException
-
Constructs a new empty-last-activity exception with the specified detail message and cause.
- EmptyLoginException - Exception Class in com.goldenleaf.shop.exception
-
Checked exception thrown when an attempt is made to create, update, or authenticate a user with a
null, empty, or whitespace-only login. - EmptyLoginException(String) - Constructor for exception class com.goldenleaf.shop.exception.EmptyLoginException
-
Constructs a new empty-login exception with the specified detail message.
- EmptyLoginException(String, Throwable) - Constructor for exception class com.goldenleaf.shop.exception.EmptyLoginException
-
Constructs a new empty-login exception with the specified detail message and cause.
- EmptyNameException - Exception Class in com.goldenleaf.shop.exception
-
Checked exception thrown when an attempt is made to create or update an entity that requires a non-empty name (full name, category name, product name, etc.)
- EmptyNameException(String) - Constructor for exception class com.goldenleaf.shop.exception.EmptyNameException
-
Constructs a new empty-name exception with the specified detail message.
- EmptyNameException(String, Throwable) - Constructor for exception class com.goldenleaf.shop.exception.EmptyNameException
-
Constructs a new empty-name exception with the specified detail message and cause.
- EmptyProductException - Exception Class in com.goldenleaf.shop.exception
-
Checked exception thrown when an attempt is made to perform an operation that requires a valid
Productinstance, but the provided product isnull. - EmptyProductException(String) - Constructor for exception class com.goldenleaf.shop.exception.EmptyProductException
-
Constructs a new empty-product exception with the specified detail message.
- EmptyProductException(String, Throwable) - Constructor for exception class com.goldenleaf.shop.exception.EmptyProductException
-
Constructs a new empty-product exception with the specified detail message and cause.
- EmptyShoppingCartException - Exception Class in com.goldenleaf.shop.exception
-
Checked exception thrown when an attempt is made to perform an operation that requires a valid, non-null
ShoppingCartinstance, but the provided shopping cart isnull. - EmptyShoppingCartException(String) - Constructor for exception class com.goldenleaf.shop.exception.EmptyShoppingCartException
-
Constructs a new empty-shopping-cart exception with the specified detail message.
- EmptyShoppingCartException(String, Throwable) - Constructor for exception class com.goldenleaf.shop.exception.EmptyShoppingCartException
-
Constructs a new empty-shopping-cart exception with the specified detail message and cause.
- equals(Object) - Method in class com.goldenleaf.shop.dto.CategoryDTO
- equals(Object) - Method in class com.goldenleaf.shop.dto.ShoppingItemDTO
- equals(Object) - Method in class com.goldenleaf.shop.dto.UserDTO
- equals(Object) - Method in class com.goldenleaf.shop.model.Category
-
Indicates whether some other object is "equal to" this category.
- equals(Object) - Method in class com.goldenleaf.shop.model.CreditCard
- existsByCartAndProduct(ShoppingCart, Product) - Method in interface com.goldenleaf.shop.repository.ShoppingItemRepository
-
Checks if a product is already in the customer's cart.
F
- findByBrand(String) - Method in interface com.goldenleaf.shop.repository.ProductRepository
-
Finds a product by its brand name.
- findByCart(ShoppingCart) - Method in interface com.goldenleaf.shop.repository.ShoppingItemRepository
-
Finds all shopping items belonging to a specific shopping cart.
- findByCartAndProduct(ShoppingCart, Product) - Method in interface com.goldenleaf.shop.repository.ShoppingItemRepository
-
Finds a specific item in a specific cart by product — the most common operation.
- findByCustomer(Customer) - Method in interface com.goldenleaf.shop.repository.ReviewRepository
-
Finds all reviews written by a specific customer.
- findByCustomer(Customer) - Method in interface com.goldenleaf.shop.repository.ShoppingCartRepository
-
Finds the active shopping cart for a given customer.
- findByCustomerLogin(String) - Method in interface com.goldenleaf.shop.repository.ReviewRepository
-
Finds all reviews written by a customer identified by their login.
- findByLogin(String) - Method in interface com.goldenleaf.shop.repository.UserRepository
-
Finds a user (Customer or Admin) by their unique login.
- findByMobile(String) - Method in interface com.goldenleaf.shop.repository.CustomerRepository
-
Finds a customer by their mobile phone number.
- findByName(String) - Method in interface com.goldenleaf.shop.repository.CategoryRepository
-
Finds a category by its exact name (case-sensitive).
- findByName(String) - Method in interface com.goldenleaf.shop.repository.ProductRepository
-
Finds a product by its exact name (case-sensitive).
- findByName(String) - Method in interface com.goldenleaf.shop.repository.UserRepository
-
Finds a user (Customer or Admin) by their full name.
- findByNumber(String) - Method in interface com.goldenleaf.shop.repository.CreditCardRepository
-
Finds a credit card by its full card number.
- findByProduct(Product) - Method in interface com.goldenleaf.shop.repository.ReviewRepository
-
Finds all reviews for a specific product.
- findByProduct(Product) - Method in interface com.goldenleaf.shop.repository.ShoppingItemRepository
-
Finds a shopping cart item by the associated product.
- findByProductName(String) - Method in interface com.goldenleaf.shop.repository.ReviewRepository
-
Finds all reviews for a product by its name.
- findBySecretWord(String) - Method in interface com.goldenleaf.shop.repository.AdminRepository
-
Finds an administrator by their unique secret word (recovery phrase).
G
- getAdminBySecretWord(String) - Method in class com.goldenleaf.shop.service.AdminService
-
Finds an
Adminby its secret word. - getAllCards() - Method in class com.goldenleaf.shop.service.CreditCardService
-
Retrieves all credit cards from the database.
- getAllCategories() - Method in class com.goldenleaf.shop.service.CategoryService
-
Retrieves all categories from the database.
- getAllProducts() - Method in class com.goldenleaf.shop.service.ProductService
-
Retrieves all products from the database.
- getAllReviews() - Method in class com.goldenleaf.shop.service.ReviewService
-
Retrieves all reviews from the database.
- getAllReviewsByProduct(Product) - Method in class com.goldenleaf.shop.service.ReviewService
-
Retrieves all reviews associated with a specific product.
- getAllReviewsOfCustomer(Customer) - Method in class com.goldenleaf.shop.service.ReviewService
-
Retrieves all reviews made by a specific customer.
- getAllReviewsOfCustomerLogin(String) - Method in class com.goldenleaf.shop.service.ReviewService
-
Retrieves all reviews made by a customer identified by their login.
- getAllShoppingCarts() - Method in class com.goldenleaf.shop.service.ShoppingCartService
-
Retrieves all shopping carts from the database.
- getAllShoppingItems() - Method in class com.goldenleaf.shop.service.ShoppingItemService
-
Retrieves all shopping items from the database.
- getAllUsers() - Method in class com.goldenleaf.shop.service.UserService
-
Retrieves all users from the database.
- getAuthor() - Method in class com.goldenleaf.shop.model.Review
- getAuthorId() - Method in class com.goldenleaf.shop.dto.ReviewDTO
- getAuthorName() - Method in class com.goldenleaf.shop.dto.ReviewDTO
- getBonusPoints() - Method in class com.goldenleaf.shop.dto.CustomerDTO
- getBonusPoints() - Method in class com.goldenleaf.shop.model.Customer
-
Returns the current amount of bonus points.
- getBrand() - Method in class com.goldenleaf.shop.dto.ProductDTO
- getBrand() - Method in class com.goldenleaf.shop.model.Product
- getCardById(Long) - Method in class com.goldenleaf.shop.service.CreditCardService
-
Retrieves a
CreditCardby its unique ID. - getCardByNumber(String) - Method in class com.goldenleaf.shop.service.CreditCardService
-
Retrieves a
CreditCardby its unique number. - getCardNumber() - Method in class com.goldenleaf.shop.dto.CreditCardDTO
- getCardNumber() - Method in class com.goldenleaf.shop.model.CreditCard
-
Returns the credit card number.
- getCart() - Method in class com.goldenleaf.shop.model.ShoppingItem
- getCategories() - Method in class com.goldenleaf.shop.model.Product
- getCategoryById(Long) - Method in class com.goldenleaf.shop.service.CategoryService
-
Retrieves a
Categoryby its unique ID. - getCategoryByName(String) - Method in class com.goldenleaf.shop.service.CategoryService
-
Retrieves a
Categoryby its unique name. - getCategoryIds() - Method in class com.goldenleaf.shop.dto.ProductDTO
- getContent() - Method in class com.goldenleaf.shop.dto.ReviewDTO
- getContent() - Method in class com.goldenleaf.shop.model.Review
- getCustomer() - Method in class com.goldenleaf.shop.model.CreditCard
-
Returns the customer who owns this credit card.
- getCustomerByMobile(String) - Method in class com.goldenleaf.shop.service.CustomerService
-
Retrieves a
Customerby their mobile number. - getCustomerId() - Method in class com.goldenleaf.shop.dto.CreditCardDTO
- getCustomerId() - Method in class com.goldenleaf.shop.dto.ShoppingCartDTO
- getCvv() - Method in class com.goldenleaf.shop.model.CreditCard
-
Returns the CVV code (only available in memory during active payment flow).
- getEmail() - Method in class com.goldenleaf.shop.dto.CustomerDTO
- getEmail() - Method in class com.goldenleaf.shop.model.Customer
-
Returns the customer's email address.
- getExpiry() - Method in class com.goldenleaf.shop.dto.CreditCardDTO
- getExpiry() - Method in class com.goldenleaf.shop.model.CreditCard
-
Returns the card's expiration date.
- getHolderName() - Method in class com.goldenleaf.shop.dto.CreditCardDTO
- getHolderName() - Method in class com.goldenleaf.shop.model.CreditCard
-
Returns the cardholder's name.
- getId() - Method in class com.goldenleaf.shop.dto.CategoryDTO
- getId() - Method in class com.goldenleaf.shop.dto.CreditCardDTO
- getId() - Method in class com.goldenleaf.shop.dto.ProductDTO
- getId() - Method in class com.goldenleaf.shop.dto.ReviewDTO
- getId() - Method in class com.goldenleaf.shop.dto.ShoppingCartDTO
- getId() - Method in class com.goldenleaf.shop.dto.ShoppingItemDTO
- getId() - Method in class com.goldenleaf.shop.dto.UserDTO
- getId() - Method in class com.goldenleaf.shop.model.Category
-
Returns the unique identifier of this category.
- getId() - Method in class com.goldenleaf.shop.model.CreditCard
-
Returns the unique database identifier of this card.
- getId() - Method in class com.goldenleaf.shop.model.Product
- getId() - Method in class com.goldenleaf.shop.model.Review
- getId() - Method in class com.goldenleaf.shop.model.ShoppingCart
- getId() - Method in class com.goldenleaf.shop.model.ShoppingItem
- getId() - Method in class com.goldenleaf.shop.model.User
- getImageUrls() - Method in class com.goldenleaf.shop.dto.ProductDTO
- getImageUrls() - Method in class com.goldenleaf.shop.model.Product
- getItems() - Method in class com.goldenleaf.shop.dto.ShoppingCartDTO
-
Returns an unmodifiable view of cart items.
- getItems() - Method in class com.goldenleaf.shop.model.ShoppingCart
- getLastActivity() - Method in class com.goldenleaf.shop.dto.UserDTO
- getLastActivity() - Method in class com.goldenleaf.shop.model.User
- getLogin() - Method in class com.goldenleaf.shop.dto.UserDTO
- getLogin() - Method in class com.goldenleaf.shop.model.User
-
Returns the user's login.
- getMaskedCardNumber() - Method in class com.goldenleaf.shop.model.CreditCard
-
Returns a masked version of the card number for display purposes.
- getMobile() - Method in class com.goldenleaf.shop.dto.CustomerDTO
- getMobile() - Method in class com.goldenleaf.shop.model.Customer
-
Returns the customer's mobile phone number.
- getName() - Method in class com.goldenleaf.shop.dto.CategoryDTO
- getName() - Method in class com.goldenleaf.shop.dto.ProductDTO
- getName() - Method in class com.goldenleaf.shop.dto.UserDTO
- getName() - Method in class com.goldenleaf.shop.model.Category
-
Returns the name of this category.
- getName() - Method in class com.goldenleaf.shop.model.Product
- getPaymentIds() - Method in class com.goldenleaf.shop.dto.CustomerDTO
-
Returns an unmodifiable list of payment method IDs.
- getPayments() - Method in class com.goldenleaf.shop.model.Customer
-
Returns the list of payment cards linked to this customer.
- getPrice() - Method in class com.goldenleaf.shop.dto.ProductDTO
- getPrice() - Method in class com.goldenleaf.shop.model.Product
- getPricePerUnit() - Method in class com.goldenleaf.shop.dto.ShoppingItemDTO
- getProduct() - Method in class com.goldenleaf.shop.model.ShoppingItem
- getProductByBrand(String) - Method in class com.goldenleaf.shop.service.ProductService
-
Retrieves a
Productby its brand. - getProductById(Long) - Method in class com.goldenleaf.shop.service.ProductService
-
Retrieves a
Productby its unique ID. - getProductByName(String) - Method in class com.goldenleaf.shop.service.ProductService
-
Retrieves a
Productby its name. - getProductId() - Method in class com.goldenleaf.shop.dto.ReviewDTO
- getProductId() - Method in class com.goldenleaf.shop.dto.ShoppingItemDTO
- getProductName() - Method in class com.goldenleaf.shop.dto.ShoppingItemDTO
- getQuantity() - Method in class com.goldenleaf.shop.dto.ShoppingItemDTO
- getQuantity() - Method in class com.goldenleaf.shop.model.ShoppingItem
- getRating() - Method in class com.goldenleaf.shop.dto.ReviewDTO
- getRating() - Method in class com.goldenleaf.shop.model.Review
- getReviewById(Long) - Method in class com.goldenleaf.shop.service.ReviewService
-
Retrieves a
Reviewby its unique ID. - getReviewIds() - Method in class com.goldenleaf.shop.dto.ProductDTO
- getReviews() - Method in class com.goldenleaf.shop.model.Product
- getReviewsByCustomer(Customer) - Method in class com.goldenleaf.shop.service.ReviewService
-
Retrieves reviews for a specific customer.
- getReviewsByCustomerLogin(String) - Method in class com.goldenleaf.shop.service.ReviewService
-
Retrieves reviews for a customer identified by login.
- getReviewsByProduct(Product) - Method in class com.goldenleaf.shop.service.ReviewService
-
Retrieves reviews for a specific product.
- getReviewsByProductName(String) - Method in class com.goldenleaf.shop.service.ReviewService
-
Retrieves reviews for a product by its name.
- getSecretWord() - Method in class com.goldenleaf.shop.dto.AdminDTO
- getSecretWord() - Method in class com.goldenleaf.shop.model.Admin
-
Returns the secret recovery word.
- getShoppingCart() - Method in class com.goldenleaf.shop.model.Customer
-
Returns the customer's shopping cart.
- getShoppingCartByCustomer(Customer) - Method in class com.goldenleaf.shop.service.ShoppingCartService
-
Retrieves a
ShoppingCartfor a specificCustomer. - getShoppingCartById(Long) - Method in class com.goldenleaf.shop.service.ShoppingCartService
-
Retrieves a
ShoppingCartby its unique ID. - getShoppingCartId() - Method in class com.goldenleaf.shop.dto.CustomerDTO
- getShoppingItemById(Long) - Method in class com.goldenleaf.shop.service.ShoppingItemService
-
Retrieves a
ShoppingItemby its unique ID. - getShoppingItemsByCart(ShoppingCart) - Method in class com.goldenleaf.shop.service.ShoppingItemService
-
Retrieves all shopping items in a specific shopping cart.
- getSubtotal() - Method in class com.goldenleaf.shop.dto.ShoppingItemDTO
-
Calculates subtotal for this item.
- getSuperAdmin() - Method in class com.goldenleaf.shop.model.Admin
-
Checks whether this admin has super administrator privileges.
- getTotalPrice() - Method in class com.goldenleaf.shop.dto.ShoppingCartDTO
- getTotalPrice() - Method in class com.goldenleaf.shop.model.ShoppingCart
- getUserById(Long) - Method in class com.goldenleaf.shop.service.UserService
-
Retrieves a
Userby their unique ID. - getUserByLogin(String) - Method in class com.goldenleaf.shop.service.UserService
-
Retrieves a
Userby their login. - getUserByName(String) - Method in class com.goldenleaf.shop.service.UserService
-
Retrieves a
Userby their name. - GoldenLeafApplication - Class in com.goldenleaf.shop
-
Main class for the GoldenLeaf Spring Boot application.
- GoldenLeafApplication() - Constructor for class com.goldenleaf.shop.GoldenLeafApplication
H
- hashCode() - Method in class com.goldenleaf.shop.dto.CategoryDTO
- hashCode() - Method in class com.goldenleaf.shop.dto.ShoppingItemDTO
- hashCode() - Method in class com.goldenleaf.shop.dto.UserDTO
- hashCode() - Method in class com.goldenleaf.shop.model.Category
-
Returns a hash code value for the category.
- hashCode() - Method in class com.goldenleaf.shop.model.CreditCard
I
- IncorrectBonusPointsValue - Exception Class in com.goldenleaf.shop.exception
-
Checked exception thrown when an attempt is made to set or add an invalid number of bonus points for a
Customer. - IncorrectBonusPointsValue(String) - Constructor for exception class com.goldenleaf.shop.exception.IncorrectBonusPointsValue
-
Constructs a new incorrect-bonus-points exception with the specified detail message.
- IncorrectBonusPointsValue(String, Throwable) - Constructor for exception class com.goldenleaf.shop.exception.IncorrectBonusPointsValue
-
Constructs a new incorrect-bonus-points exception with the specified detail message and cause.
- IncorrectEmailException - Exception Class in com.goldenleaf.shop.exception
-
Checked exception thrown when an attempt is made to set or update a customer's email address with an invalid, malformed, or otherwise unacceptable value.
- IncorrectEmailException(String) - Constructor for exception class com.goldenleaf.shop.exception.IncorrectEmailException
-
Constructs a new incorrect-email exception with the specified detail message.
- IncorrectEmailException(String, Throwable) - Constructor for exception class com.goldenleaf.shop.exception.IncorrectEmailException
-
Constructs a new incorrect-email exception with the specified detail message and cause.
- IncorrectMobileException - Exception Class in com.goldenleaf.shop.exception
-
Checked exception thrown when an attempt is made to set or update a customer's mobile phone number with an invalid, malformed, or otherwise unacceptable value.
- IncorrectMobileException(String) - Constructor for exception class com.goldenleaf.shop.exception.IncorrectMobileException
-
Constructs a new incorrect-mobile exception with the specified detail message.
- IncorrectMobileException(String, Throwable) - Constructor for exception class com.goldenleaf.shop.exception.IncorrectMobileException
-
Constructs a new incorrect-mobile exception with the specified detail message and cause.
- IncorrectPriceException - Exception Class in com.goldenleaf.shop.exception
-
Checked exception thrown when an attempt is made to set or update a product price (or any monetary amount) with an invalid or unacceptable value.
- IncorrectPriceException(String) - Constructor for exception class com.goldenleaf.shop.exception.IncorrectPriceException
-
Constructs a new incorrect-price exception with the specified detail message.
- IncorrectPriceException(String, Throwable) - Constructor for exception class com.goldenleaf.shop.exception.IncorrectPriceException
-
Constructs a new incorrect-price exception with the specified detail message and cause.
- IncorrectQuantityException - Exception Class in com.goldenleaf.shop.exception
-
Checked exception thrown when an attempt is made to set or update a quantity (e.g., product stock, items in cart, order line quantity) with an invalid or unacceptable value.
- IncorrectQuantityException(String) - Constructor for exception class com.goldenleaf.shop.exception.IncorrectQuantityException
-
Constructs a new incorrect-quantity exception with the specified detail message.
- IncorrectQuantityException(String, Throwable) - Constructor for exception class com.goldenleaf.shop.exception.IncorrectQuantityException
-
Constructs a new incorrect-quantity exception with the specified detail message and cause.
- IncorrectRatingException - Exception Class in com.goldenleaf.shop.exception
-
Checked exception thrown when an attempt is made to create or save a product review with a rating that falls outside the allowed range (typically 1–5 stars).
- IncorrectRatingException(String) - Constructor for exception class com.goldenleaf.shop.exception.IncorrectRatingException
-
Constructs a new incorrect-rating exception with the specified detail message.
- IncorrectRatingException(String, Throwable) - Constructor for exception class com.goldenleaf.shop.exception.IncorrectRatingException
-
Constructs a new incorrect-rating exception with the specified detail message and cause.
- isSuperAdmin() - Method in class com.goldenleaf.shop.dto.AdminDTO
M
- main(String[]) - Static method in class com.goldenleaf.shop.GoldenLeafApplication
-
The main method that serves as the entry point of the Spring Boot application.
- makeReview(Product, String, int) - Method in class com.goldenleaf.shop.model.Customer
-
Creates and adds a review for the specified product.
- messageConverter() - Method in class com.goldenleaf.shop.config.RabbitConfig
N
- NullCustomerException - Exception Class in com.goldenleaf.shop.exception
-
Checked exception thrown when an operation requires a valid, non-null
Customerinstance, butnullis provided or the customer reference is missing. - NullCustomerException(String) - Constructor for exception class com.goldenleaf.shop.exception.NullCustomerException
-
Constructs a new null-customer exception with the specified detail message.
- NullCustomerException(String, Throwable) - Constructor for exception class com.goldenleaf.shop.exception.NullCustomerException
-
Constructs a new null-customer exception with the specified detail message and cause.
- NullPaymentException - Exception Class in com.goldenleaf.shop.exception
-
Checked exception thrown when an operation requires a valid, non-null payment method (typically a
CreditCardor other payment entity), butnullis supplied or the payment reference is missing. - NullPaymentException(String) - Constructor for exception class com.goldenleaf.shop.exception.NullPaymentException
-
Constructs a new null-payment exception with the specified detail message.
- NullPaymentException(String, Throwable) - Constructor for exception class com.goldenleaf.shop.exception.NullPaymentException
-
Constructs a new null-payment exception with the specified detail message and cause.
P
- passwordEncoder() - Method in class com.goldenleaf.shop.config.SecurityConfig
-
Provides a global
PasswordEncoderbean. - Product - Class in com.goldenleaf.shop.model
-
Represents a product available for purchase in the system.
- Product() - Constructor for class com.goldenleaf.shop.model.Product
-
Default constructor required by JPA.
- Product(String, String, double, Set<Category>, List<String>, List<Review>) - Constructor for class com.goldenleaf.shop.model.Product
-
Constructs a new product with the given parameters.
- ProductDTO - Class in com.goldenleaf.shop.dto
-
Data Transfer Object for creating, updating or returning product information.
- ProductDTO() - Constructor for class com.goldenleaf.shop.dto.ProductDTO
-
Required for JSON deserialization
- ProductDTO(Long, String, String, double, List<String>, Set<Long>, List<Long>) - Constructor for class com.goldenleaf.shop.dto.ProductDTO
- ProductRepository - Interface in com.goldenleaf.shop.repository
-
Spring Data JPA repository for
Productentities. - ProductService - Class in com.goldenleaf.shop.service
-
Service class for managing
Productentities. - ProductService(ProductRepository) - Constructor for class com.goldenleaf.shop.service.ProductService
-
Constructs a new
ProductServicewith the provided repository.
Q
- QUEUE_NAME - Static variable in class com.goldenleaf.shop.config.RabbitConfig
R
- RabbitConfig - Class in com.goldenleaf.shop.config
- RabbitConfig() - Constructor for class com.goldenleaf.shop.config.RabbitConfig
- rabbitTemplate(ConnectionFactory, Jackson2JsonMessageConverter) - Method in class com.goldenleaf.shop.config.RabbitConfig
- register(User, String) - Method in class com.goldenleaf.shop.service.UserService
-
Registers a new
Userwith the given password. - removeAdminBySecretWord(String) - Method in class com.goldenleaf.shop.service.AdminService
-
Deletes an
Adminidentified by its secret word. - removeByMobile(String) - Method in class com.goldenleaf.shop.service.CustomerService
-
Removes a
Customeridentified by their mobile number. - removebyProduct(Product) - Method in class com.goldenleaf.shop.service.ReviewService
-
Removes all reviews associated with a specific product.
- removebyProductName(String) - Method in class com.goldenleaf.shop.service.ReviewService
-
Removes all reviews associated with a product identified by name.
- removeCategory(Category) - Method in class com.goldenleaf.shop.service.CategoryService
-
Removes an existing
Categoryfrom the database. - removeCategoryById(Long) - Method in class com.goldenleaf.shop.service.CategoryService
-
Removes a
Categoryby its ID. - removeCategoryByName(String) - Method in class com.goldenleaf.shop.service.CategoryService
-
Removes a
Categoryby its name. - removeCreditCard(CreditCard) - Method in class com.goldenleaf.shop.service.CreditCardService
-
Removes an existing
CreditCardfrom the database. - removeCreditCardById(Long) - Method in class com.goldenleaf.shop.service.CreditCardService
-
Removes a
CreditCardby its ID. - removeCreditCardByNumber(String) - Method in class com.goldenleaf.shop.service.CreditCardService
-
Removes a
CreditCardby its number. - removeItem(Product) - Method in class com.goldenleaf.shop.model.ShoppingCart
-
Removes an item from the cart by its product.
- removeItem(ShoppingItem) - Method in class com.goldenleaf.shop.model.ShoppingCart
-
Removes the specified item from the cart and clears its cart reference.
- removePayment(CreditCard) - Method in class com.goldenleaf.shop.model.Customer
-
Removes a credit card from the customer's payment methods and clears the bidirectional link.
- removeProduct(Product) - Method in class com.goldenleaf.shop.service.ProductService
-
Removes an existing
Productfrom the database. - removeProductById(Long) - Method in class com.goldenleaf.shop.service.ProductService
-
Removes a
Productby its ID. - removeProductByName(String) - Method in class com.goldenleaf.shop.service.ProductService
-
Removes a
Productby its name. - removeReview(Review) - Method in class com.goldenleaf.shop.service.ReviewService
-
Removes an existing
Reviewfrom the database. - removeReviewById(Long) - Method in class com.goldenleaf.shop.service.ReviewService
-
Removes a
Reviewby its ID. - removeShoppingCart(ShoppingCart) - Method in class com.goldenleaf.shop.service.ShoppingCartService
-
Removes an existing
ShoppingCartfrom the database. - removeShoppingCartByCustomer(Customer) - Method in class com.goldenleaf.shop.service.ShoppingCartService
-
Removes a
ShoppingCartassociated with a specificCustomer. - removeShoppingCartById(Long) - Method in class com.goldenleaf.shop.service.ShoppingCartService
-
Removes a
ShoppingCartby its ID. - removeShoppingItem(ShoppingItem) - Method in class com.goldenleaf.shop.service.ShoppingItemService
-
Removes an existing
ShoppingItemfrom the database. - removeShoppingItemById(Long) - Method in class com.goldenleaf.shop.service.ShoppingItemService
-
Removes a
ShoppingItemby its ID. - removeShoppingItemByProduct(Product) - Method in class com.goldenleaf.shop.service.ShoppingItemService
-
Removes a
ShoppingItemassociated with a specificProduct. - removeUser(User) - Method in class com.goldenleaf.shop.service.UserService
-
Removes an existing
Userfrom the database. - removeUserById(Long) - Method in class com.goldenleaf.shop.service.UserService
-
Removes a
Userby their ID. - removeUserByLogin(String) - Method in class com.goldenleaf.shop.service.UserService
-
Removes a
Userby their login. - Review - Class in com.goldenleaf.shop.model
- Review() - Constructor for class com.goldenleaf.shop.model.Review
-
Default constructor required by JPA.
- Review(Customer, String, int, Product) - Constructor for class com.goldenleaf.shop.model.Review
-
Constructs a new review with the given parameters.
- ReviewDTO - Class in com.goldenleaf.shop.dto
-
Data Transfer Object for creating or displaying product reviews.
- ReviewDTO() - Constructor for class com.goldenleaf.shop.dto.ReviewDTO
-
Required for JSON deserialization (Jackson/Gson)
- ReviewDTO(Long, Long, String, String, int, Long) - Constructor for class com.goldenleaf.shop.dto.ReviewDTO
- ReviewRepository - Interface in com.goldenleaf.shop.repository
-
Spring Data JPA repository for
Reviewentities. - ReviewService - Class in com.goldenleaf.shop.service
-
Service class for managing
Reviewentities. - ReviewService(ReviewRepository) - Constructor for class com.goldenleaf.shop.service.ReviewService
-
Constructs a new
ReviewServicewith the provided repository.
S
- SecurityConfig - Class in com.goldenleaf.shop.config
-
Application-wide security configuration.
- SecurityConfig() - Constructor for class com.goldenleaf.shop.config.SecurityConfig
- setAuthor(Customer) - Method in class com.goldenleaf.shop.model.Review
-
Sets a new author for the review.
- setAuthorId(Long) - Method in class com.goldenleaf.shop.dto.ReviewDTO
- setAuthorName(String) - Method in class com.goldenleaf.shop.dto.ReviewDTO
- setBonusPoints(int) - Method in class com.goldenleaf.shop.dto.CustomerDTO
- setBonusPoints(int) - Method in class com.goldenleaf.shop.model.Customer
-
Sets the exact amount of bonus points.
- setBrand(String) - Method in class com.goldenleaf.shop.dto.ProductDTO
- setBrand(String) - Method in class com.goldenleaf.shop.model.Product
-
Sets a new product brand.
- setCardNumber(String) - Method in class com.goldenleaf.shop.dto.CreditCardDTO
- setCardNumber(String) - Method in class com.goldenleaf.shop.model.CreditCard
-
Sets the credit card number.
- setCart(ShoppingCart) - Method in class com.goldenleaf.shop.model.ShoppingItem
-
Sets the cart that contains this shopping item.
- setCategories(Set<Category>) - Method in class com.goldenleaf.shop.model.Product
-
Sets the categories associated with this product.
- setCategoryIds(Set<Long>) - Method in class com.goldenleaf.shop.dto.ProductDTO
- setContent(String) - Method in class com.goldenleaf.shop.dto.ReviewDTO
- setContent(String) - Method in class com.goldenleaf.shop.model.Review
-
Sets the content of the review.
- setCustomer(Customer) - Method in class com.goldenleaf.shop.model.CreditCard
-
Assigns this card to a customer.
- setCustomer(Customer) - Method in class com.goldenleaf.shop.model.ShoppingCart
-
Assigns a customer to the cart.
- setCustomerId(Long) - Method in class com.goldenleaf.shop.dto.CreditCardDTO
- setCustomerId(Long) - Method in class com.goldenleaf.shop.dto.ShoppingCartDTO
- setCvv(String) - Method in class com.goldenleaf.shop.model.CreditCard
-
Temporarily sets the CVV code during payment processing.
- setEmail(String) - Method in class com.goldenleaf.shop.dto.CustomerDTO
- setEmail(String) - Method in class com.goldenleaf.shop.model.Customer
-
Sets a new email address.
- setExpiry(YearMonth) - Method in class com.goldenleaf.shop.dto.CreditCardDTO
- setExpiry(YearMonth) - Method in class com.goldenleaf.shop.model.CreditCard
-
Sets the card expiration date.
- setHolderName(String) - Method in class com.goldenleaf.shop.dto.CreditCardDTO
- setHolderName(String) - Method in class com.goldenleaf.shop.model.CreditCard
-
Sets the cardholder name.
- setId(Long) - Method in class com.goldenleaf.shop.dto.CategoryDTO
- setId(Long) - Method in class com.goldenleaf.shop.dto.CreditCardDTO
- setId(Long) - Method in class com.goldenleaf.shop.dto.ProductDTO
- setId(Long) - Method in class com.goldenleaf.shop.dto.ReviewDTO
- setId(Long) - Method in class com.goldenleaf.shop.dto.ShoppingCartDTO
- setId(Long) - Method in class com.goldenleaf.shop.dto.ShoppingItemDTO
- setId(Long) - Method in class com.goldenleaf.shop.dto.UserDTO
- setImageUrls(List<String>) - Method in class com.goldenleaf.shop.dto.ProductDTO
- setImageUrls(List<String>) - Method in class com.goldenleaf.shop.model.Product
-
Sets the image URLs associated with this product.
- setItems(List<ShoppingItemDTO>) - Method in class com.goldenleaf.shop.dto.ShoppingCartDTO
- setItems(List<ShoppingItem>) - Method in class com.goldenleaf.shop.model.ShoppingCart
-
Replaces the list of items with a new one and updates cart references.
- setLastActivity(LocalDate) - Method in class com.goldenleaf.shop.dto.UserDTO
- setLastActivity(LocalDate) - Method in class com.goldenleaf.shop.model.User
-
Updates the last activity date.
- setLogin(String) - Method in class com.goldenleaf.shop.dto.UserDTO
- setLogin(String) - Method in class com.goldenleaf.shop.model.User
-
Sets the user's login.
- setMobile(String) - Method in class com.goldenleaf.shop.dto.CustomerDTO
- setMobile(String) - Method in class com.goldenleaf.shop.model.Customer
-
Sets a new mobile phone number.
- setName(String) - Method in class com.goldenleaf.shop.dto.CategoryDTO
- setName(String) - Method in class com.goldenleaf.shop.dto.ProductDTO
- setName(String) - Method in class com.goldenleaf.shop.dto.UserDTO
- setName(String) - Method in class com.goldenleaf.shop.model.Category
-
Updates the name of this category.
- setName(String) - Method in class com.goldenleaf.shop.model.Product
-
Sets a new name for the product.
- setPassword(String) - Method in class com.goldenleaf.shop.model.User
- setPaymentIds(List<Long>) - Method in class com.goldenleaf.shop.dto.CustomerDTO
- setPrice(double) - Method in class com.goldenleaf.shop.dto.ProductDTO
- setPrice(double) - Method in class com.goldenleaf.shop.model.Product
-
Sets the price of the product.
- setPricePerUnit(double) - Method in class com.goldenleaf.shop.dto.ShoppingItemDTO
- setProduct(Product) - Method in class com.goldenleaf.shop.model.ShoppingItem
-
Sets a new product for this shopping item.
- setProductId(Long) - Method in class com.goldenleaf.shop.dto.ReviewDTO
- setProductId(Long) - Method in class com.goldenleaf.shop.dto.ShoppingItemDTO
- setProductName(String) - Method in class com.goldenleaf.shop.dto.ShoppingItemDTO
- setQuantity(int) - Method in class com.goldenleaf.shop.dto.ShoppingItemDTO
- setQuantity(int) - Method in class com.goldenleaf.shop.model.ShoppingItem
-
Updates the quantity of this item.
- setRating(int) - Method in class com.goldenleaf.shop.dto.ReviewDTO
- setRating(int) - Method in class com.goldenleaf.shop.model.Review
-
Sets the numeric rating for the review.
- setReviewIds(List<Long>) - Method in class com.goldenleaf.shop.dto.ProductDTO
- setReviews(List<Review>) - Method in class com.goldenleaf.shop.model.Product
-
Sets the list of reviews for this product.
- setSecretWord(String) - Method in class com.goldenleaf.shop.dto.AdminDTO
- setSecretWord(String) - Method in class com.goldenleaf.shop.model.Admin
-
Updates the secret word.
- setShoppingCart(ShoppingCart) - Method in class com.goldenleaf.shop.model.Customer
-
Assigns a shopping cart to this customer and establishes bidirectional relationship.
- setShoppingCartId(Long) - Method in class com.goldenleaf.shop.dto.CustomerDTO
- setSuperAdmin(boolean) - Method in class com.goldenleaf.shop.dto.AdminDTO
- setSuperAdmin(boolean) - Method in class com.goldenleaf.shop.model.Admin
-
Grants or revokes super administrator status.
- setTotalPrice(double) - Method in class com.goldenleaf.shop.dto.ShoppingCartDTO
-
Total price is calculated on the server.
- setTotalPrice(double) - Method in class com.goldenleaf.shop.model.ShoppingCart
-
Sets a new total price for the cart.
- ShoppingCart - Class in com.goldenleaf.shop.model
-
Represents a shopping cart belonging to a
Customer. - ShoppingCart() - Constructor for class com.goldenleaf.shop.model.ShoppingCart
-
Default constructor required by JPA.
- ShoppingCart(List<ShoppingItem>, Customer, double) - Constructor for class com.goldenleaf.shop.model.ShoppingCart
-
Constructs a new
ShoppingCartwith predefined items, customer and total price. - ShoppingCartDTO - Class in com.goldenleaf.shop.dto
-
Data Transfer Object representing a customer's shopping cart.
- ShoppingCartDTO() - Constructor for class com.goldenleaf.shop.dto.ShoppingCartDTO
-
Required for JSON deserialization
- ShoppingCartDTO(Long, Long, List<ShoppingItemDTO>, double) - Constructor for class com.goldenleaf.shop.dto.ShoppingCartDTO
- ShoppingCartRepository - Interface in com.goldenleaf.shop.repository
-
Spring Data JPA repository for
ShoppingCartentities. - ShoppingCartService - Class in com.goldenleaf.shop.service
-
Service class for managing
ShoppingCartentities. - ShoppingCartService(ShoppingCartRepository) - Constructor for class com.goldenleaf.shop.service.ShoppingCartService
-
Constructs a new
ShoppingCartServicewith the provided repository. - ShoppingItem - Class in com.goldenleaf.shop.model
-
Represents an item inside a shopping cart.
- ShoppingItem() - Constructor for class com.goldenleaf.shop.model.ShoppingItem
-
Default constructor required by JPA.
- ShoppingItem(Product, int) - Constructor for class com.goldenleaf.shop.model.ShoppingItem
-
Constructs a new
ShoppingItemwith the given product and quantity. - ShoppingItemDTO - Class in com.goldenleaf.shop.dto
-
Data Transfer Object representing a single item in the shopping cart.
- ShoppingItemDTO() - Constructor for class com.goldenleaf.shop.dto.ShoppingItemDTO
-
Required for JSON deserialization
- ShoppingItemDTO(Long, Long, String, int, double) - Constructor for class com.goldenleaf.shop.dto.ShoppingItemDTO
- ShoppingItemRepository - Interface in com.goldenleaf.shop.repository
-
Spring Data JPA repository for
ShoppingItementities (also known as CartItem). - ShoppingItemService - Class in com.goldenleaf.shop.service
-
Service class for managing
ShoppingItementities. - ShoppingItemService(ShoppingItemRepository) - Constructor for class com.goldenleaf.shop.service.ShoppingItemService
-
Constructs a new
ShoppingItemServicewith the provided repository.
T
- toDTO(Admin) - Method in interface com.goldenleaf.shop.AppMapper
- toDTO(Category) - Method in interface com.goldenleaf.shop.AppMapper
- toDTO(CreditCard) - Method in interface com.goldenleaf.shop.AppMapper
- toDTO(Customer) - Method in interface com.goldenleaf.shop.AppMapper
- toDTO(Product) - Method in interface com.goldenleaf.shop.AppMapper
- toDTO(Review) - Method in interface com.goldenleaf.shop.AppMapper
- toDTO(ShoppingCart) - Method in interface com.goldenleaf.shop.AppMapper
- toDTO(ShoppingItem) - Method in interface com.goldenleaf.shop.AppMapper
- toEntity(AdminDTO) - Method in interface com.goldenleaf.shop.AppMapper
- toEntity(CategoryDTO) - Method in interface com.goldenleaf.shop.AppMapper
- toEntity(CreditCardDTO) - Method in interface com.goldenleaf.shop.AppMapper
- toEntity(CustomerDTO) - Method in interface com.goldenleaf.shop.AppMapper
- toEntity(ProductDTO) - Method in interface com.goldenleaf.shop.AppMapper
- toEntity(ReviewDTO) - Method in interface com.goldenleaf.shop.AppMapper
- toEntity(ShoppingCartDTO) - Method in interface com.goldenleaf.shop.AppMapper
- toEntity(ShoppingItemDTO) - Method in interface com.goldenleaf.shop.AppMapper
- toString() - Method in class com.goldenleaf.shop.dto.AdminDTO
- toString() - Method in class com.goldenleaf.shop.dto.CategoryDTO
- toString() - Method in class com.goldenleaf.shop.dto.CreditCardDTO
- toString() - Method in class com.goldenleaf.shop.dto.CustomerDTO
- toString() - Method in class com.goldenleaf.shop.dto.ProductDTO
- toString() - Method in class com.goldenleaf.shop.dto.ReviewDTO
- toString() - Method in class com.goldenleaf.shop.dto.ShoppingCartDTO
- toString() - Method in class com.goldenleaf.shop.dto.ShoppingItemDTO
- toString() - Method in class com.goldenleaf.shop.dto.UserDTO
- toString() - Method in class com.goldenleaf.shop.model.Category
-
Returns a string representation of the category.
- toString() - Method in class com.goldenleaf.shop.model.CreditCard
U
- User - Class in com.goldenleaf.shop.model
-
Abstract base entity representing a user in the system.
- User() - Constructor for class com.goldenleaf.shop.model.User
-
Default constructor required by JPA.
- User(String, String, String, LocalDate) - Constructor for class com.goldenleaf.shop.model.User
-
Convenience constructor for creating a new user instance.
- UserDTO - Class in com.goldenleaf.shop.dto
-
Abstract base Data Transfer Object for all user types in the system.
- UserDTO() - Constructor for class com.goldenleaf.shop.dto.UserDTO
-
Required for JSON deserialization (Jackson/Gson)
- UserDTO(Long, String, String, LocalDate) - Constructor for class com.goldenleaf.shop.dto.UserDTO
-
Convenience constructor used by subclasses and mappers.
- UserRepository - Interface in com.goldenleaf.shop.repository
-
Spring Data JPA repository for the
Userentity hierarchy. - UserService - Class in com.goldenleaf.shop.service
-
Service class for managing
Userentities. - UserService(UserRepository, PasswordEncoder) - Constructor for class com.goldenleaf.shop.service.UserService
-
Constructs a new
UserServicewith the provided repository and password encoder.
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form