Пример #1
0
    @Override
    public List<User> call(ApiCaller ac, Deserializer parms) throws PerunException {
      ac.stateChangingCheck();

      return ac.getSearcher()
          .getUsers(
              ac.getSession(), parms.read("attributesWithSearchingValues", LinkedHashMap.class));
    }
Пример #2
0
    @Override
    public List<Member> call(ApiCaller ac, Deserializer parms) throws PerunException {
      ac.stateChangingCheck();

      return ac.getSearcher()
          .getMembersByUserAttributes(
              ac.getSession(),
              ac.getVoById(parms.readInt("vo")),
              parms.read("userAttributesWithSearchingValues", LinkedHashMap.class));
    }