}
}
- public User findUser( String username )
- throws UserManagerException
+ @Override
+ public User findUser( String username, boolean useCache )
+ throws UserNotFoundException, UserManagerException
{
-
User user = null;
- if ( useUsersCache() )
+ if ( useUsersCache() && useCache )
{
user = usersCache.get( username );
if ( user != null )
return user;
}
+ public User findUser( String username )
+ throws UserManagerException
+ {
+ return findUser( username, useUsersCache() );
+ }
+
@Override
public User getGuestUser()
public User updateUser( User user )
throws UserNotFoundException, UserManagerException
{
- user = userManagerPerId.get( user.getUserManagerId() ).updateUser( user );
+
+ UserManager userManager = userManagerPerId.get( user.getUserManagerId() );
+
+ user = userManager.updateUser( user );
if ( useUsersCache() )
{
import org.apache.archiva.redback.system.SecuritySystem;
import org.apache.archiva.redback.users.User;
import org.apache.archiva.redback.users.UserManager;
+import org.apache.archiva.redback.users.UserManagerException;
import org.apache.archiva.redback.users.UserManagerListener;
import org.apache.archiva.redback.users.UserNotFoundException;
import org.apache.archiva.redback.users.UserQuery;
return null; //To change body of implemented methods use File | Settings | File Templates.
}
+ @Override
+ public User findUser( String username, boolean useCache )
+ throws UserNotFoundException, UserManagerException
+ {
+ return null;
+ }
+
public User getGuestUser()
throws UserNotFoundException
{