MUM.profileService.client
Class ProfileAgent

java.lang.Object
  extended byMUM.profileService.client.ProfileAgent
All Implemented Interfaces:
IProfileRepository

public class ProfileAgent
extends java.lang.Object
implements IProfileRepository

the implementation of the IProfileRepository client side


Constructor Summary
ProfileAgent(ComponentInfo info)
          constructor
 
Method Summary
 boolean eliminateProfile(java.lang.String userIdentifier)
          This method eliminate an entry in the DB
 IProfile getProfile(java.lang.String userIdentifier)
          This method returns a factory for the desired interface
 void insertProfile(IProfile profile)
          This method introduce a new entry in the DB, here it is implemented as a one shot TCP connection
 boolean modifyProfile(IProfile newProfile)
          This method modify an old profile, replacing it with a new profile passed as an argument
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProfileAgent

public ProfileAgent(ComponentInfo info)
constructor

Method Detail

insertProfile

public void insertProfile(IProfile profile)
                   throws java.io.IOException
This method introduce a new entry in the DB, here it is implemented as a one shot TCP connection

Specified by:
insertProfile in interface IProfileRepository
Parameters:
profile - the new profile to insert in the DB
Throws:
java.io.IOException - is launched is there is any problem during the transmission, or during the registration of the profile serverside

modifyProfile

public boolean modifyProfile(IProfile newProfile)
                      throws java.io.IOException
This method modify an old profile, replacing it with a new profile passed as an argument

Specified by:
modifyProfile in interface IProfileRepository
Parameters:
newProfile - the new profile
Returns:
false if the old profile wasn't present in the DB
Throws:
java.io.IOException

eliminateProfile

public boolean eliminateProfile(java.lang.String userIdentifier)
                         throws java.io.IOException
This method eliminate an entry in the DB

Specified by:
eliminateProfile in interface IProfileRepository
Parameters:
userIdentifier - the identifier of the user to eliminate from the DB
Returns:
false if the entry is not present
Throws:
java.io.IOException

getProfile

public IProfile getProfile(java.lang.String userIdentifier)
This method returns a factory for the desired interface

Specified by:
getProfile in interface IProfileRepository
Returns:
the list of the available Profiles


Copyright © 2004 Luca Foschini