MUM.profileService
Interface IProfileRepository

All Known Implementing Classes:
ProfileAgent, ProfileRepositoryFile

public interface IProfileRepository

This interface specify generic operations to interact with the User Profile DB. In this manner we can decouple the implementation of the DB from the application as in DAO (Data Access Object) pattern.


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 userProfile)
          This method introduce a new entry in the DB
 boolean modifyProfile(IProfile newProfile)
          This method modify an old profile, replacing it with a new profile passed as an argument
 

Method Detail

insertProfile

public void insertProfile(IProfile userProfile)
                   throws java.io.IOException
This method introduce a new entry in the DB

Parameters:
userProfile - the new presentation to insert in the DB
Throws:
java.io.IOException

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

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

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

Returns:
the list of the available PresentationProfiles


Copyright © 2004 Luca Foschini