public class UserUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static Stream<org.kie.server.services.taskassigning.user.system.api.User> |
filterDuplicates(Collection<org.kie.server.services.taskassigning.user.system.api.User> externalUsers)
Given a Collection of external users, normally returned by the UserSystemService, produces the filtering of the
elements with the following criteria:
1) Null elements are removed from the result.
2) Duplicate users are removed from the result.
|
static User |
fromExternalUser(org.kie.server.services.taskassigning.user.system.api.User externalUser) |
static boolean |
isUser(String userType) |
public static User fromExternalUser(org.kie.server.services.taskassigning.user.system.api.User externalUser)
public static boolean isUser(String userType)
public static Stream<org.kie.server.services.taskassigning.user.system.api.User> filterDuplicates(Collection<org.kie.server.services.taskassigning.user.system.api.User> externalUsers)
externalUsers - a collection with the external users to filter.Copyright © 2001–2020 JBoss by Red Hat. All rights reserved.