207208209210211212213214215216217
throws LoginException { JetspeedUser user = null; try { user = JetspeedUserManagement.getUser(new UserNamePrincipal(anonymousUser)); user.setHasLoggedIn(new Boolean(false)); putUserIntoContext(user); if (cachingEnable) { JetspeedSecurityCache.load(user.getUserName());
345346347348349350351352353
Profiler.createProfile(getRunData(), profile); } } catch (Exception e) { removeUser(new UserNamePrincipal(user.getUserName())); throw new UserException("Failed to create profile for new user ", e); } }
595596597598599600601602603604605
} protected boolean accountExists( JetspeedUser user, boolean checkUniqueId ) throws UserException { UserNamePrincipal principal = new UserNamePrincipal(user.getUserName()); try { getUser(principal); return true;
349350351352353354355356357358359
throws JetspeedSecurityException { LDAPUser user; try { user = (LDAPUser)JetspeedSecurity.getUser(new UserNamePrincipal(username)); } catch(JetspeedSecurityException e) { throw new GroupException("Failed to Retrieve User: ", e); }
382383384385386387388389390391392
{ LDAPUser user; try { user = (LDAPUser)JetspeedSecurity.getUser(new UserNamePrincipal(username)); } catch(JetspeedSecurityException e) { throw new GroupException("Failed to Retrieve User: ", e); }
119120121122123124125126127128129
username = JetspeedSecurity.convertUserName(username); password = JetspeedSecurity.convertPassword(password); try { user = JetspeedUserManagement.getUser(new UserNamePrincipal(username)); } catch (UnknownUserException e) { throw new FailedLoginException(e.toString()); }
175176177178179180181182183184185
{ JetspeedUser user = null; try { user = JetspeedUserManagement.getUser(new UserNamePrincipal(anonymousUser)); user.setHasLoggedIn(new Boolean(false)); putUserIntoContext(user); if (cachingEnable) {
144145146147148149150151152153154
throws JetspeedSecurityException { JetspeedUser user = null; try { user = JetspeedSecurity.getUser(new UserNamePrincipal(username)); } catch(JetspeedSecurityException e) { throw new GroupException("Failed to Retrieve User: ", e); }
90919293949596979899100
105106107108109110111112113114115
if (null != result) { return result; } } user = JetspeedSecurity.getUser(new UserNamePrincipal(username)); } catch(JetspeedSecurityException e) { throw new RoleException("Failed to Retrieve User: ", e); }