Methods Summary |
---|
public java.lang.String[] | getProjects()
return validUser.getProjects();
|
public EmployeeRegistryBean | getRegistry()
return empReg;
|
public java.lang.String | getRequestMethod()
return requestMethod;
|
public EmployeeBean | getValidUser()
return validUser;
|
public void | setProjects(java.lang.String[] projects)
this.projects = projects;
|
public void | setRegistry(EmployeeRegistryBean empReg)
this.empReg = empReg;
|
public void | setRequestMethod(java.lang.String requestMethod)
this.requestMethod = requestMethod;
|
public void | setValidUser(EmployeeBean validUser)
this.validUser = validUser;
|
public java.lang.String | updateProfile()Updates the projects property of an authenticated user,
represented by the "validUser" session attribute, using
the EmployeeRegistryBean. This action is only performed
for POST requests.
if ("POST".equals(requestMethod)) {
if (projects == null) {
projects = new String[0];
}
validUser.setProjects(projects);
empReg.saveEmployee(validUser);
}
return "success";
|