mirror of
https://github.com/scm-manager/scm-manager.git
synced 2026-04-01 09:50:16 +02:00
added user search resource
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
@@ -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>
|
||||
{
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user