com.mymed.controller.core.manager.profile
Class ProfileManager

java.lang.Object
  extended by com.mymed.controller.core.manager.AbstractManager
      extended by com.mymed.controller.core.manager.profile.ProfileManager
All Implemented Interfaces:
IProfileManager

public class ProfileManager
extends AbstractManager
implements IProfileManager

Manage an user profile

Author:
lvanni

Constructor Summary
ProfileManager()
           
ProfileManager(IStorageManager storageManager)
           
 
Method Summary
 MUserBean create(MUserBean user)
          Setup a new user profile into the database
 void delete(java.lang.String id)
          Delete an existing user
 MUserBean read(java.lang.String id)
           
 MUserBean update(MUserBean user)
          Update the profile of an user into the database
 
Methods inherited from class com.mymed.controller.core.manager.AbstractManager
introspection
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProfileManager

public ProfileManager()
               throws InternalBackEndException
Throws:
InternalBackEndException

ProfileManager

public ProfileManager(IStorageManager storageManager)
               throws InternalBackEndException
Throws:
InternalBackEndException
Method Detail

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)