Package ejava.examples.asyncmarket
Interface UserMgmt
-
- All Known Subinterfaces:
UserMgmtLocal,UserMgmtRemote
- All Known Implementing Classes:
UserMgmtEJB
public interface UserMgmt
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description longcreateUser(String userId, String name)PersongetUser(long id)PersongetUserByUserId(String userId)List<Person>getUsers(int index, int count)voidremoveUser(String userId)
-
-
-
Method Detail
-
createUser
long createUser(String userId, String name) throws InvalidRequestException
- Throws:
InvalidRequestException
-
getUser
Person getUser(long id) throws ResourceNotFoundException
- Throws:
ResourceNotFoundException
-
getUserByUserId
Person getUserByUserId(String userId) throws ResourceNotFoundException
- Throws:
ResourceNotFoundException
-
removeUser
void removeUser(String userId) throws ResourceNotFoundException
- Throws:
ResourceNotFoundException
-
-