1 15 package org.apache.tapestry.vlib.ejb; 16 17 import java.rmi.RemoteException ; 18 import java.util.Map ; 19 20 import javax.ejb.CreateException ; 21 import javax.ejb.EJBObject ; 22 import javax.ejb.FinderException ; 23 import javax.ejb.RemoveException ; 24 25 34 35 public interface IOperations extends EJBObject 36 { 37 42 43 public Book borrowBook(Integer bookdId, Integer borrowerId) 44 throws BorrowException, FinderException , RemoteException ; 45 46 51 52 public Integer addBook(Map attributes) throws CreateException , RemoteException ; 53 54 63 64 public Integer addBook(Map attributes, String publisherName) 65 throws CreateException , RemoteException ; 66 67 71 72 public void updateBook(Integer bookId, Map attributes) throws FinderException , RemoteException ; 73 74 78 79 public void updateBook(Integer bookId, Map attributes, String publisherName) 80 throws CreateException , FinderException , RemoteException ; 81 82 86 87 public void updatePerson(Integer personId, Map attributes) throws FinderException , RemoteException ; 88 89 93 94 public Publisher[] getPublishers() throws RemoteException ; 95 96 101 102 public Person[] getPersons() throws RemoteException ; 103 104 110 111 public Person getPerson(Integer personId) throws FinderException , RemoteException ; 112 113 121 122 public Person login(String email, String password) throws LoginException, RemoteException ; 123 124 128 129 public Map getPersonAttributes(Integer personId) throws FinderException , RemoteException ; 130 131 138 139 public Book getBook(Integer bookId) throws FinderException , RemoteException ; 140 141 145 146 public Map getBookAttributes(Integer bookId) throws FinderException , RemoteException ; 147 148 154 155 public Person registerNewUser(String firstName, String lastName, String email, String password) 156 throws RegistrationException, CreateException , RemoteException ; 157 158 164 165 public Book returnBook(Integer bookId) throws RemoteException , FinderException ; 166 167 172 173 public Book deleteBook(Integer bookId) throws RemoveException , RemoteException ; 174 175 179 180 public void transferBooks(Integer newOwnerId, Integer [] bookIds) 181 throws FinderException , RemoteException ; 182 183 195 196 public void updatePublishers(Publisher[] updated, Integer [] deleted) 197 throws FinderException , RemoveException , RemoteException ; 198 199 221 222 public void updatePersons( 223 Person[] updated, 224 Integer [] resetPassword, 225 String newPassword, 226 Integer [] deleted, 227 Integer adminId) 228 throws FinderException , RemoveException , RemoteException ; 229 230 } | Popular Tags |