| Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
| UserConfigForm |
|
| 1.0;1 |
| 1 | /****************************************************************************** | |
| 2 | * UserConfigForm.java - A bean to wrap the User in a form friendly package | |
| 3 | * | |
| 4 | * PicMan - The BuckoSoft Picture Manager in Java | |
| 5 | * Copyright(c) 2009 - Dick Balaska | |
| 6 | * | |
| 7 | */ | |
| 8 | package com.buckosoft.PicMan.web; | |
| 9 | ||
| 10 | import java.util.List; | |
| 11 | ||
| 12 | import com.buckosoft.BSAccount.web.BSAccountUserWebSession; | |
| 13 | import com.buckosoft.PicMan.domain.Set; | |
| 14 | import com.buckosoft.PicMan.domain.User; | |
| 15 | ||
| 16 | /** A bean to wrap the User in a form friendly package. | |
| 17 | * @author Dick Balaska | |
| 18 | * @since 2009/06/18 | |
| 19 | * @see <a href="http://cvs.buckosoft.com/Projects/java/PicMan/PicMan/src/com/buckosoft/PicMan/web/UserConfigForm.java">UserConfigForm.java</a> | |
| 20 | */ | |
| 21 | public class UserConfigForm { | |
| 22 | ||
| 23 | private User user; | |
| 24 | private BSAccountUserWebSession userWebSession; | |
| 25 | 0 | private String message = ""; |
| 26 | private String errorMessage; | |
| 27 | private List<Set> sets; | |
| 28 | ||
| 29 | 0 | public UserConfigForm() { |
| 30 | 0 | } |
| 31 | ||
| 32 | 0 | public BSAccountUserWebSession getUserWebSession() { return(userWebSession); } |
| 33 | 0 | public void setUserWebSession(BSAccountUserWebSession us) { userWebSession = us; } |
| 34 | ||
| 35 | /** | |
| 36 | * @return the user | |
| 37 | */ | |
| 38 | public User getUser() { | |
| 39 | 0 | return user; |
| 40 | } | |
| 41 | ||
| 42 | /** | |
| 43 | * @param user the user to set | |
| 44 | */ | |
| 45 | public void setUser(User user) { | |
| 46 | 0 | this.user = user; |
| 47 | 0 | } |
| 48 | ||
| 49 | /** If the Form Controller wants to display a message to the user, it will be here. | |
| 50 | * @return the message | |
| 51 | */ | |
| 52 | public String getMessage() { | |
| 53 | 0 | return message; |
| 54 | } | |
| 55 | ||
| 56 | /** Set any message that is to be displayed to the user in the System Setup page | |
| 57 | * @param message the message to set | |
| 58 | */ | |
| 59 | public void setMessage(String message) { | |
| 60 | 0 | this.message = message; |
| 61 | 0 | } |
| 62 | ||
| 63 | /** If the Form Controller wants to display an error to the user, it will be here. | |
| 64 | * @return the errorMessage | |
| 65 | */ | |
| 66 | public String getErrorMessage() { | |
| 67 | 0 | return errorMessage; |
| 68 | } | |
| 69 | ||
| 70 | /** Set any error message that is to be displayed to the user in the System Setup page. | |
| 71 | * @param errorMessage the errorMessage to set | |
| 72 | */ | |
| 73 | public void setErrorMessage(String errorMessage) { | |
| 74 | 0 | this.errorMessage = errorMessage; |
| 75 | 0 | } |
| 76 | ||
| 77 | /** | |
| 78 | * @return the sets | |
| 79 | */ | |
| 80 | public List<Set> getSets() { | |
| 81 | 0 | return sets; |
| 82 | } | |
| 83 | /** | |
| 84 | * @param sets the sets to set | |
| 85 | */ | |
| 86 | public void setSets(List<Set> sets) { | |
| 87 | 0 | this.sets = sets; |
| 88 | 0 | } |
| 89 | } |