com.mymed.controller.core.manager.profile
Class ProfileManager
java.lang.Object
com.mymed.controller.core.manager.AbstractManager
com.mymed.controller.core.manager.profile.ProfileManager
- All Implemented Interfaces:
- IProfileManager
public class ProfileManager
- extends AbstractManager
- implements IProfileManager
Manage an user profile
- Author:
- lvanni
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ProfileManager
public ProfileManager()
throws InternalBackEndException
- Throws:
InternalBackEndException
ProfileManager
public ProfileManager(IStorageManager storageManager)
throws InternalBackEndException
- Throws:
InternalBackEndException
create
public MUserBean create(MUserBean user)
throws InternalBackEndException,
IOBackEndException
- Setup a new user profile into the database
- Specified by:
create
in interface IProfileManager
- Parameters:
user
- the user to insert into the database
- Returns:
- the profile of the user
- Throws:
IOBackEndException
InternalBackEndException
read
public MUserBean read(java.lang.String id)
throws InternalBackEndException,
IOBackEndException
- Specified by:
read
in interface IProfileManager
- Parameters:
id
- the id of the user
- Returns:
- the User corresponding to the id
- Throws:
InternalBackEndException
IOBackEndException
update
public MUserBean update(MUserBean user)
throws InternalBackEndException,
IOBackEndException
- Description copied from interface:
IProfileManager
- Update the profile of an user into the database
- Specified by:
update
in interface IProfileManager
- Parameters:
user
- The profile updated to store
- Returns:
-
- Throws:
IOBackEndException
InternalBackEndException
- See Also:
IProfileManager.update(MUserBean)
delete
public void delete(java.lang.String id)
throws InternalBackEndException,
IOBackEndException
- Description copied from interface:
IProfileManager
- Delete an existing user
- Specified by:
delete
in interface IProfileManager
- Throws:
IOBackEndException
InternalBackEndException
- See Also:
IProfileManager#delete(MUserBean)