|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectMUM.profileService.server.ProfileRepositoryFile
This is the implementation of a Profile Repository. Here the repository is a simple file.
Constructor Summary | |
ProfileRepositoryFile(java.lang.String absoluteFileName,
java.io.PrintStream out)
This is the constructor. |
Method Summary | |
boolean |
eliminateProfile(java.lang.String userIdentifier)
This method eliminate an entry in the DB |
IProfile |
getProfile(java.lang.String identifier)
This method returns a factory for the desired interface |
void |
insertProfile(IProfile profile)
This method introduce a new entry in the DB, only if it isn't already present. |
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 ProfileRepositoryFile(java.lang.String absoluteFileName, java.io.PrintStream out) throws java.io.FileNotFoundException, java.io.IOException, java.lang.ClassNotFoundException
Method Detail |
public void insertProfile(IProfile profile) throws java.io.IOException
insertProfile
in interface IProfileRepository
profile
- the new presentation to insert in the DB
java.io.IOException
public 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 profile to eliminate from the DB
java.io.IOException
public IProfile getProfile(java.lang.String identifier)
getProfile
in interface IProfileRepository
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |