|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.strutsme.wishlist.client.adapter.WishOnlineAdapter
public final class WishOnlineAdapter
This interface defines the access to a webserver, which is running with the StrutsME-Server Component.
| Method Summary | |
|---|---|
static WishAdapter |
createInstance()
returns the singletoninstance. |
void |
deleteWish(java.lang.String wishKey)
deletes the wish with the key wishKey. |
SafeHashtable |
getErrors()
gets errormessages from the last action. |
java.lang.String |
getLastAction()
gets the last executed forward of the webserver. |
WishDtoImpl |
getLoadedWish()
|
UserDtoImpl |
getLoadedWishAuthor()
|
java.util.Vector |
getLoadedWishes()
gets the loaded wishes, if the last forward performed by the server was a WlCommonConstants.ACTION_WISH_LIST_WISH. |
SafeHashtable |
getMessages()
gets information about the last action. |
java.lang.String |
getNextAction()
|
void |
loadWish(java.lang.String wishId)
loads the wish and the author of the wish. |
void |
loadWishes()
gets the wishlist. |
void |
login(java.lang.String username,
java.lang.String password)
performs the login to the server. |
void |
saveWish(WishDtoImpl wish)
saves the wish. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static WishAdapter createInstance()
public void login(java.lang.String username,
java.lang.String password)
throws AdapterException
login in interface WishAdapterusername - the username of the userpassword - the password of the user
AdapterException - if the login could not be performed correctly
public void loadWishes()
throws AdapterException
loadWishes in interface WishAdapterAdapterException - if the wishes couldn't be retrievedpublic java.util.Vector getLoadedWishes()
WlCommonConstants.ACTION_WISH_LIST_WISH.
getLoadedWishes in interface WishAdapter
public void saveWish(WishDtoImpl wish)
throws AdapterException
saveWish in interface WishAdapterwish - the wish to save
AdapterException - if the wish could not be saved
public void deleteWish(java.lang.String wishKey)
throws AdapterException
deleteWish in interface WishAdapterwishKey - the key of the wish to delete
AdapterException - if the wish could not be deletedpublic java.lang.String getNextAction()
public java.lang.String getLastAction()
getLastAction in interface WishAdapter
public WishDtoImpl getLoadedWish()
throws AdapterException
getLoadedWish in interface WishAdapterAdapterException - if the wish could not be loadedWishAdapter.loadWish(String)
public UserDtoImpl getLoadedWishAuthor()
throws AdapterException
getLoadedWishAuthor in interface WishAdapterAdapterException - if the wish could not be loadedWishAdapter.loadWish(String)
public void loadWish(java.lang.String wishId)
throws AdapterException
loadWish in interface WishAdapterwishId - the key of the wish to load
AdapterException - if the wish could not be loadedWishAdapter.getLoadedWish(),
WishAdapter.getLoadedWishAuthor()public SafeHashtable getMessages()
getMessages in interface WishAdapterpublic SafeHashtable getErrors()
getErrors in interface WishAdapter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||