|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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 |
public void insertProfile(IProfile userProfile) throws java.io.IOException
userProfile
- the new presentation to insert in the DB
java.io.IOException
public boolean modifyProfile(IProfile newProfile) throws java.io.IOException
newProfile
- the new profile
java.io.IOException
public boolean eliminateProfile(java.lang.String userIdentifier) throws java.io.IOException
userIdentifier
- the identifier of the user to eliminate from the DB
java.io.IOException
public IProfile getProfile(java.lang.String userIdentifier)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |