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 long
createUser(String userId, String name)
Person
getUser(long id)
Person
getUserByUserId(String userId)
List<Person>
getUsers(int index, int count)
void
removeUser(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
-
-