📄 petstoreservice.java
字号:
/* * Copyright 2006 Borys Burnayev * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */package com.rdacorp.petstore.business;import java.util.Collection;import com.rdacorp.petstore.business.dao.AddressException;import com.rdacorp.petstore.business.dao.ConcurrentModificationException;import com.rdacorp.petstore.business.dao.LoginException;import com.rdacorp.petstore.business.dao.OrderException;import com.rdacorp.petstore.business.dao.PasswordException;import com.rdacorp.petstore.domain.Account;import com.rdacorp.petstore.domain.Category;import com.rdacorp.petstore.domain.CreditCardCompany;import com.rdacorp.petstore.domain.Item;import com.rdacorp.petstore.domain.Language;import com.rdacorp.petstore.domain.Order;import com.rdacorp.petstore.domain.Product;import com.rdacorp.petstore.domain.State;import com.rdacorp.petstore.domain.UserProfile;/** * @author Borys Burnayev */public interface PetStoreService { public UserProfile login(String login, String password) throws LoginException, PasswordException; public Account createAccount(Account account); public Account updateAccount(Account account); public Collection<State> getStates(); public Collection<Language> getLanguages(); public Account findAccount(String login); public Order placeOrder(Order order) throws AddressException, OrderException, ConcurrentModificationException; public Collection<CreditCardCompany> getCreditCardCompanies(); public Collection<Category> getCategories(); public Collection<Product> getProducts(Category category); public Collection<Item> getItems(Product product); public Collection<Product> findProducts(String keyword); public Category findCategory(String code); public Product findProduct(String code); public Item findItem(String code);}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -