Search in sources :

Example 1 with SearchResponseImpl

use of org.uberfire.ext.security.management.impl.SearchResponseImpl in project kie-wb-common by kiegroup.

the class AssigneeLiveSearchServiceTest method prepareGroupsResponse.

private AbstractEntityManager.SearchResponse<?> prepareGroupsResponse() {
    List result = new ArrayList();
    result.add(new GroupImpl("it"));
    result.add(new GroupImpl("hr"));
    result.add(new GroupImpl("qe"));
    return new SearchResponseImpl(result, 1, 1, 1, true);
}
Also used : SearchResponseImpl(org.uberfire.ext.security.management.impl.SearchResponseImpl) GroupImpl(org.jboss.errai.security.shared.api.GroupImpl) ArrayList(java.util.ArrayList) ArrayList(java.util.ArrayList) List(java.util.List)

Example 2 with SearchResponseImpl

use of org.uberfire.ext.security.management.impl.SearchResponseImpl in project kie-wb-common by kiegroup.

the class AssigneeLiveSearchServiceTest method prepareSingleUserResponse.

private AbstractEntityManager.SearchResponse<?> prepareSingleUserResponse() {
    List result = new ArrayList();
    result.add(new UserImpl("user"));
    return new SearchResponseImpl(result, 1, 1, 1, true);
}
Also used : SearchResponseImpl(org.uberfire.ext.security.management.impl.SearchResponseImpl) ArrayList(java.util.ArrayList) UserImpl(org.jboss.errai.security.shared.api.identity.UserImpl) ArrayList(java.util.ArrayList) List(java.util.List)

Example 3 with SearchResponseImpl

use of org.uberfire.ext.security.management.impl.SearchResponseImpl in project kie-wb-common by kiegroup.

the class AssigneeLiveSearchServiceTest method prepareUsersResponse.

private AbstractEntityManager.SearchResponse<?> prepareUsersResponse() {
    List result = new ArrayList();
    result.add(new UserImpl("admin"));
    result.add(new UserImpl("user"));
    result.add(new UserImpl("developer"));
    return new SearchResponseImpl(result, 1, 1, 1, true);
}
Also used : SearchResponseImpl(org.uberfire.ext.security.management.impl.SearchResponseImpl) ArrayList(java.util.ArrayList) UserImpl(org.jboss.errai.security.shared.api.identity.UserImpl) ArrayList(java.util.ArrayList) List(java.util.List)

Example 4 with SearchResponseImpl

use of org.uberfire.ext.security.management.impl.SearchResponseImpl in project kie-wb-common by kiegroup.

the class AssigneeLiveSearchServiceTest method prepareSingleGroupResponse.

private AbstractEntityManager.SearchResponse<?> prepareSingleGroupResponse() {
    List result = new ArrayList();
    result.add(new GroupImpl("it"));
    return new SearchResponseImpl(result, 1, 1, 1, true);
}
Also used : SearchResponseImpl(org.uberfire.ext.security.management.impl.SearchResponseImpl) GroupImpl(org.jboss.errai.security.shared.api.GroupImpl) ArrayList(java.util.ArrayList) ArrayList(java.util.ArrayList) List(java.util.List)

Aggregations

ArrayList (java.util.ArrayList)4 List (java.util.List)4 SearchResponseImpl (org.uberfire.ext.security.management.impl.SearchResponseImpl)4 GroupImpl (org.jboss.errai.security.shared.api.GroupImpl)2 UserImpl (org.jboss.errai.security.shared.api.identity.UserImpl)2