1 package ejava.examples.asyncmarket; 2 3 import java.util.List; 4 5 import ejava.examples.asyncmarket.bo.Person; 6 import ejava.examples.asyncmarket.ejb.InvalidRequestException; 7 import ejava.examples.asyncmarket.ejb.ResourceNotFoundException; 8 9 public interface UserMgmt { 10 long createUser(String userId, String name) throws InvalidRequestException; 11 Person getUser(long id) throws ResourceNotFoundException; 12 Person getUserByUserId(String userId) throws ResourceNotFoundException; 13 void removeUser(String userId) throws ResourceNotFoundException; 14 List<Person> getUsers(int index, int count); 15 }