NIHVIVO-1385 Clean up compiler warnings.

This commit is contained in:
jeb228 2011-02-18 20:07:20 +00:00
parent d459840ef6
commit d41a64c60e

View file

@ -39,6 +39,7 @@ public class UserRetryController extends BaseEditController {
private static final String ROLE_PROTOCOL = "role:/"; // this is weird; need to revisit private static final String ROLE_PROTOCOL = "role:/"; // this is weird; need to revisit
private static final Log log = LogFactory.getLog(UserRetryController.class.getName()); private static final Log log = LogFactory.getLog(UserRetryController.class.getName());
@Override
public void doPost (HttpServletRequest req, HttpServletResponse response) { public void doPost (HttpServletRequest req, HttpServletResponse response) {
VitroRequest request = new VitroRequest(req); VitroRequest request = new VitroRequest(req);
@ -73,7 +74,7 @@ public class UserRetryController extends BaseEditController {
if (!epo.getUseRecycledBean()){ if (!epo.getUseRecycledBean()){
if (request.getParameter("uri") != null) { if (request.getParameter("uri") != null) {
try { try {
userForEditing = (User)uDao.getUserByURI(request.getParameter("uri")); userForEditing = uDao.getUserByURI(request.getParameter("uri"));
userForEditing.setRoleURI(ROLE_PROTOCOL+userForEditing.getRoleURI()); userForEditing.setRoleURI(ROLE_PROTOCOL+userForEditing.getRoleURI());
action = "update"; action = "update";
epo.setAction("udpate"); epo.setAction("udpate");
@ -117,17 +118,16 @@ public class UserRetryController extends BaseEditController {
//set the getMethod so we can retrieve a new bean after we've inserted it //set the getMethod so we can retrieve a new bean after we've inserted it
try { try {
Class[] args = new Class[1]; Class<?>[] args = new Class[] {String.class};
args[0] = String.class;
epo.setGetMethod(uDao.getClass().getDeclaredMethod("getUserByURI",args)); epo.setGetMethod(uDao.getClass().getDeclaredMethod("getUserByURI",args));
} catch (NoSuchMethodException e) { } catch (NoSuchMethodException e) {
log.error(this.getClass().getName()+" could not find the getVClassByURI method"); log.error(this.getClass().getName()+" could not find the getVClassByURI method");
} }
HashMap optionMap = new HashMap(); HashMap<String, List<Option>> optionMap = new HashMap<String, List<Option>>();
LoginStatusBean loginBean = LoginStatusBean.getBean(request); LoginStatusBean loginBean = LoginStatusBean.getBean(request);
List roleOptionList = new LinkedList(); List<Option> roleOptionList = new LinkedList<Option>();
/* bdc34: Datastar needs non-backend-editing users for logging in non-Cornell people*/ /* bdc34: Datastar needs non-backend-editing users for logging in non-Cornell people*/
/* SelfEditingPolicySetup.SELF_EDITING_POLICY_WAS_SETUP is set by the SelfEditingPolicySetup context listener */ /* SelfEditingPolicySetup.SELF_EDITING_POLICY_WAS_SETUP is set by the SelfEditingPolicySetup context listener */
@ -197,6 +197,7 @@ public class UserRetryController extends BaseEditController {
} }
@Override
public void doGet (HttpServletRequest request, HttpServletResponse response) { public void doGet (HttpServletRequest request, HttpServletResponse response) {
doPost(request, response); doPost(request, response);
} }
@ -208,6 +209,7 @@ public class UserRetryController extends BaseEditController {
portalId = currPortalId; portalId = currPortalId;
} }
@Override
public void doForward(HttpServletRequest request, HttpServletResponse response, EditProcessObject epo){ public void doForward(HttpServletRequest request, HttpServletResponse response, EditProcessObject epo){
String newUserUrl = "userEdit?home="+portalId+"&uri="; String newUserUrl = "userEdit?home="+portalId+"&uri=";
User u = (User) epo.getNewBean(); User u = (User) epo.getNewBean();