Package ejava.examples.asyncmarket.ejb
Class UserMgmtEJB
- java.lang.Object
-
- ejava.examples.asyncmarket.ejb.UserMgmtEJB
-
- All Implemented Interfaces:
UserMgmtLocal
,UserMgmtRemote
,UserMgmt
public class UserMgmtEJB extends Object implements UserMgmtRemote, UserMgmtLocal
-
-
Constructor Summary
Constructors Constructor Description UserMgmtEJB()
-
Method Summary
All Methods Instance Methods Concrete 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
init()
void
removeUser(String userId)
-
-
-
Method Detail
-
init
@PostConstruct public void init()
-
createUser
public long createUser(String userId, String name)
- Specified by:
createUser
in interfaceUserMgmt
-
getUser
public Person getUser(long id) throws ResourceNotFoundException
- Specified by:
getUser
in interfaceUserMgmt
- Throws:
ResourceNotFoundException
-
getUserByUserId
public Person getUserByUserId(String userId) throws ResourceNotFoundException
- Specified by:
getUserByUserId
in interfaceUserMgmt
- Throws:
ResourceNotFoundException
-
removeUser
public void removeUser(String userId) throws ResourceNotFoundException
- Specified by:
removeUser
in interfaceUserMgmt
- Throws:
ResourceNotFoundException
-
-