10-08-2010 05:17 AM
10-13-2010 11:12 AM
public String login()
{
String outcome = null;
try {
HttpServletRequest req = (HttpServletRequest)FacesContext.getCurrentInstance().getExternalContext().getRequest();
HttpSession sesion = req.getSession();
// Start the session
AuthenticationResult result = WebServiceClient.getAuthenticationService().startSession(usuario, password);
AuthenticationDetails details = new AuthenticationDetails(result.getUsername(), result.getTicket(), result.getSessionid());
AuthenticationUtils.setAuthenticationDetails(details);
sesion.setAttribute("authenticationDetails", details);
outcome = "success";
} catch (AuthenticationFault e) {
// TODO Auto-generated catch block
Utils.addErrorMessage(ERROR_LOGIN_USUARIO);
outcome= "fail";
}catch (AuthenticationException e) {
// TODO Auto-generated catch block
Utils.addErrorMessage(ERROR_LOGIN_USUARIO);
outcome= "fail";
//e.printStackTrace();
}catch (Exception e){
Utils.addErrorMessage(ERROR_LOGIN_USUARIO);
outcome = "fail";
}
return outcome;
}
10-19-2010 11:26 AM
10-21-2010 03:58 AM
10-21-2010 09:52 AM
10-25-2010 05:49 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.