* <p>
* @return Access key
*/
- public String registerItems (final Customer customer, final List<AddableBasketItem> orderedItems);
+ String registerItems (final Customer customer, final List<AddableBasketItem> orderedItems);
}
* @throws org.mxchange.jshopcore.exceptions.CannotAddCategoryException If
* the category cannot be added
*/
- public Category doAdminAddCategory (final Category category) throws CategoryTitleAlreadyUsedException, CannotAddCategoryException;
+ Category doAdminAddCategory (final Category category) throws CategoryTitleAlreadyUsedException, CannotAddCategoryException;
}
* <p>
* @return All categories
*/
- public List<Category> getAllCategories ();
+ List<Category> getAllCategories ();
}
* <p>
* @return Prepared Customer instance
*/
- public Customer fillCustomerData (final Customer customer);
+ Customer fillCustomerData (final Customer customer);
/**
* Checks if the the given customer instance is already registered
* <p>
* @return Whether the customer is already registered
*/
- public boolean isReqistered (final Customer customer);
+ boolean isReqistered (final Customer customer);
/**
* Registers the customer and creates a customer number after succesful
* org.mxchange.jshopcore.exceptions.CustomerAlreadyRegisteredException If
* the customer is already registered.
*/
- public Customer registerCustomer (final Customer customer) throws CustomerAlreadyRegisteredException;
+ Customer registerCustomer (final Customer customer) throws CustomerAlreadyRegisteredException;
}
* <p>
* @return All products
*/
- public List<Product> getAllProducts ();
+ List<Product> getAllProducts ();
/**
* Adds given product data from request to database
* @throws org.mxchange.jshopcore.exceptions.CannotAddProductException If
* something unexpected happened
*/
- public Product doAdminAddProduct (final Product product) throws ProductTitleAlreadyUsedException, CannotAddProductException;
+ Product doAdminAddProduct (final Product product) throws ProductTitleAlreadyUsedException, CannotAddProductException;
}
* <p>
* @return Only available products
*/
- public List<Product> getAvailableProducts ();
+ List<Product> getAvailableProducts ();
}
* <p>
* @return Wrapped byte stream
*/
- public WrapableReceipt createReceiptFromAccessKey (final String accessKey);
+ WrapableReceipt createReceiptFromAccessKey (final String accessKey);
/**
* Fetches access key, if customer instance matches, else null is returned
* <p>
* @return Access key or null
*/
- public String fetchAccessKey (final Customer customer);
+ String fetchAccessKey (final Customer customer);
/**
* Getter for access key
* <p>
* @return Access key
*/
- public String getAccessKey ();
+ String getAccessKey ();
/**
* Setter for access key
* <p>
* @param accessKey Access key
*/
- public void setAccessKey (final String accessKey);
+ void setAccessKey (final String accessKey);
/**
* Getter for customer instance
* <p>
* @return Customer instance
*/
- public Customer getCustomer ();
+ Customer getCustomer ();
/**
* Setter for customer instance
* <p>
* @param customer Customer instance
*/
- public void setCustomer (final Customer customer);
+ void setCustomer (final Customer customer);
}