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 longcreateUser(String userId, String name)PersongetUser(long id)PersongetUserByUserId(String userId)List<Person>getUsers(int index, int count)voidinit()voidremoveUser(String userId)
-
-
-
Method Detail
-
init
@PostConstruct public void init()
-
createUser
public long createUser(String userId, String name)
- Specified by:
createUserin interfaceUserMgmt
-
getUser
public Person getUser(long id) throws ResourceNotFoundException
- Specified by:
getUserin interfaceUserMgmt- Throws:
ResourceNotFoundException
-
getUserByUserId
public Person getUserByUserId(String userId) throws ResourceNotFoundException
- Specified by:
getUserByUserIdin interfaceUserMgmt- Throws:
ResourceNotFoundException
-
removeUser
public void removeUser(String userId) throws ResourceNotFoundException
- Specified by:
removeUserin interfaceUserMgmt- Throws:
ResourceNotFoundException
-
-