|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectMUM.profileService.client.ProfileAgent
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 |
public ProfileAgent(ComponentInfo info)
Method Detail |
public void insertProfile(IProfile profile) throws java.io.IOException
insertProfile
in interface IProfileRepository
profile
- the new profile to insert in the DB
java.io.IOException
- is launched is there is any problem during the transmission, or
during the registration of the profile serversidepublic boolean modifyProfile(IProfile newProfile) throws java.io.IOException
modifyProfile
in interface IProfileRepository
newProfile
- the new profile
java.io.IOException
public boolean eliminateProfile(java.lang.String userIdentifier) throws java.io.IOException
eliminateProfile
in interface IProfileRepository
userIdentifier
- the identifier of the user to eliminate from the DB
java.io.IOException
public IProfile getProfile(java.lang.String userIdentifier)
getProfile
in interface IProfileRepository
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |