| Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
| MosaicDisplayConfigForm |
|
| 1.0;1 |
| 1 | /****************************************************************************** | |
| 2 | * MosaicDisplayConfigForm.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 com.buckosoft.BSAccount.web.BSAccountUserWebSession; | |
| 11 | import com.buckosoft.PicMan.domain.User; | |
| 12 | ||
| 13 | /** A bean to wrap the User in a form friendly package. | |
| 14 | * @author Dick Balaska | |
| 15 | * @since 2009/07/27 | |
| 16 | * @see <a href="http://cvs.buckosoft.com/Projects/java/PicMan/PicMan/src/com/buckosoft/PicMan/web/MosaicDisplayConfigForm.java">MosaicDisplayConfigForm.java</a> | |
| 17 | */ | |
| 18 | public class MosaicDisplayConfigForm { | |
| 19 | ||
| 20 | private User user; | |
| 21 | private BSAccountUserWebSession userWebSession; | |
| 22 | 0 | private String message = ""; |
| 23 | private String errorMessage; | |
| 24 | ||
| 25 | 0 | public MosaicDisplayConfigForm() { |
| 26 | 0 | } |
| 27 | ||
| 28 | 0 | public BSAccountUserWebSession getUserWebSession() { return(userWebSession); } |
| 29 | 0 | public void setUserWebSession(BSAccountUserWebSession us) { userWebSession = us; } |
| 30 | ||
| 31 | /** | |
| 32 | * @return the user | |
| 33 | */ | |
| 34 | public User getUser() { | |
| 35 | 0 | return user; |
| 36 | } | |
| 37 | ||
| 38 | /** | |
| 39 | * @param user the user to set | |
| 40 | */ | |
| 41 | public void setUser(User user) { | |
| 42 | 0 | this.user = user; |
| 43 | 0 | } |
| 44 | ||
| 45 | /** If the Form Controller wants to display a message to the user, it will be here. | |
| 46 | * @return the message | |
| 47 | */ | |
| 48 | public String getMessage() { | |
| 49 | 0 | return message; |
| 50 | } | |
| 51 | ||
| 52 | /** Set any message that is to be displayed to the user in the System Setup page | |
| 53 | * @param message the message to set | |
| 54 | */ | |
| 55 | public void setMessage(String message) { | |
| 56 | 0 | this.message = message; |
| 57 | 0 | } |
| 58 | ||
| 59 | /** If the Form Controller wants to display an error to the user, it will be here. | |
| 60 | * @return the errorMessage | |
| 61 | */ | |
| 62 | public String getErrorMessage() { | |
| 63 | 0 | return errorMessage; |
| 64 | } | |
| 65 | ||
| 66 | /** Set any error message that is to be displayed to the user in the System Setup page. | |
| 67 | * @param errorMessage the errorMessage to set | |
| 68 | */ | |
| 69 | public void setErrorMessage(String errorMessage) { | |
| 70 | 0 | this.errorMessage = errorMessage; |
| 71 | 0 | } |
| 72 | ||
| 73 | } |