added user search resource

This commit is contained in:
Sebastian Sdorra
2011-02-11 19:44:10 +01:00
parent 3f5969e885
commit c598f1079e
7 changed files with 425 additions and 3 deletions

View File

@@ -68,7 +68,7 @@ public class SearchUtil
{
for (String o : other)
{
if (!o.matches(query))
if ((o == null) ||!o.matches(query))
{
result = false;
@@ -103,7 +103,7 @@ public class SearchUtil
{
for (String o : other)
{
if (o.matches(query))
if ((o != null) && o.matches(query))
{
result = true;

View File

@@ -37,13 +37,15 @@ package sonia.scm.user;
import sonia.scm.ListenerSupport;
import sonia.scm.Manager;
import sonia.scm.search.Searchable;
/**
*
* @author Sebastian Sdorra
*/
public interface UserManager
extends Manager<User, UserException>, ListenerSupport<UserListener>
extends Manager<User, UserException>, Searchable<User>,
ListenerSupport<UserListener>
{
/**