|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.strutsme.wishlist.client.control.WishEditor
public class WishEditor
| Constructor Summary | |
|---|---|
WishEditor()
the default Constructor. sets the User to the default values. |
|
| Method Summary | |
|---|---|
void |
deleteWish(java.lang.String wishKey)
deletes the wish with the id wishKey. |
void |
fetchWish()
fetches the wish into the editor. |
void |
fetchWishes()
fetches the wishlist from the adapter. |
java.util.Vector |
getAllWishes()
gets all wishlist. |
UserDtoImpl |
getCurrentWishAuthor()
|
SafeHashtable |
getErrors()
|
int |
getIndexSelectedWish()
|
static WishEditor |
getInstance()
singleton accessor method. |
java.lang.String |
getLastAction()
|
SafeHashtable |
getMessages()
|
WishDtoImpl |
getNewWish()
creates a new Wish. |
int |
getSize()
determines the count of the currently cached wishlist. |
UserDtoImpl |
getUser()
delivers the actual user. |
UserDtoImpl |
getUser(java.lang.String loginname,
java.lang.String passwort)
searches for the user with the username loginname and checks the password. |
WishDtoImpl |
getWish()
retrieves the data of the active wish. |
void |
loadWish(java.lang.String wishKey)
loads the wish with the key. |
void |
loadWishes()
loads the wishList from the adapter. |
void |
login(java.lang.String username,
java.lang.String password)
performs the login to the server. |
void |
refreshData()
refresh all Data. |
void |
resetWishSelection()
resets the selectioninformation of an wish. |
void |
saveWish(WishDtoImpl wish)
saves the wish. |
boolean |
selectWishInternal(java.lang.String key)
gets the wish with the id key. |
void |
setCurrentWish(WishDtoImpl wish)
sets the content of currently selected wish. |
void |
setCurrentWishAuthor(UserDtoImpl currentWishAuthor)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WishEditor()
| Method Detail |
|---|
public static WishEditor getInstance()
public final void login(java.lang.String username,
java.lang.String password)
throws AdapterException
username - the username of the userpassword - the password of the user
AdapterException - if the login could not be performed correctly
public final void loadWish(java.lang.String wishKey)
throws AdapterException
wishKey - the key of the wish to select
AdapterException - when wishlist could not be loaded, if the
wish is not in the cachefetchWish()
public final void fetchWish()
throws AdapterException
AdapterException - if the wish could not be fetchedloadWish(String)public final WishDtoImpl getWish()
public final java.util.Vector getAllWishes()
public final void loadWishes()
throws AdapterException
AdapterException - if the wishlist could not be loadedpublic final void fetchWishes()
public final WishDtoImpl getNewWish()
public final void resetWishSelection()
public final void saveWish(WishDtoImpl wish)
throws AdapterException
wish - the wish to save
AdapterException - if the wish could not be saved
public final void deleteWish(java.lang.String wishKey)
throws AdapterException
wishKey - the key of the wish to delete
AdapterException - if the wish couldn't be deleted
public final UserDtoImpl getUser(java.lang.String loginname,
java.lang.String passwort)
throws AdapterException
loginname - the loginname for the userpasswort - the password of the user
AdapterException - if no user with the loginname could not be foundpublic final UserDtoImpl getUser()
public final int getIndexSelectedWish()
public void refreshData()
public final void setCurrentWish(WishDtoImpl wish)
wish - the wishcontentpublic final UserDtoImpl getCurrentWishAuthor()
public final void setCurrentWishAuthor(UserDtoImpl currentWishAuthor)
currentWishAuthor - the currentWishAuthor to setpublic final boolean selectWishInternal(java.lang.String key)
key - the key of the desired wish
public final int getSize()
throws AdapterException
AdapterException - if the size of the wishlist couldn't be
determined.public final java.lang.String getLastAction()
public final SafeHashtable getErrors()
public final SafeHashtable getMessages()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||