Class AccountWrapper
- java.lang.Object
- 
- uk.ac.warwick.dcs.sherlock.module.web.data.wrappers.AccountWrapper
 
- 
 public class AccountWrapper extends java.lang.ObjectSomehow if you use form binding to set a variable with the same name as a variable in the Account object, the variable in the ModelAttribute("account") instance of the Account object is overwritten. e.g. if you have a form with a variable called "email", the email variable in ModelAttribute("account") is being overwritten with the result of the form binding. Therefore, ModelAttribute("account") now returns AccountWrapper instead of Account to prevent variables being overwritten. All get functions in this wrapper must match those in the Account object.
- 
- 
Constructor SummaryConstructors Constructor Description AccountWrapper()AccountWrapper(Account account)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description AccountgetAccount()java.lang.StringgetEmail()longgetId()java.lang.StringgetPassword()java.util.Set<Role>getRoles()java.util.Set<Template>getTemplates()java.lang.StringgetUsername()java.util.Set<Workspace>getWorkspaces()
 
- 
- 
- 
Constructor Detail- 
AccountWrapperpublic AccountWrapper() 
 - 
AccountWrapperpublic AccountWrapper(Account account) 
 
- 
 - 
Method Detail- 
getIdpublic long getId() 
 - 
getEmailpublic java.lang.String getEmail() 
 - 
getPasswordpublic java.lang.String getPassword() 
 - 
getRolespublic java.util.Set<Role> getRoles() 
 - 
getUsernamepublic java.lang.String getUsername() 
 - 
getWorkspacespublic java.util.Set<Workspace> getWorkspaces() 
 - 
getTemplatespublic java.util.Set<Template> getTemplates() 
 - 
getAccountpublic Account getAccount() 
 
- 
 
-