/**
   * @param userOID
   * @return
   */
  public QueryResultDTO getAuthorizations(long userOID) {
    List<SelectItemDTO> authorozations = deputyManagementUtils.getAuthorizations(userOID);

    QueryResultDTO resultDTO = new QueryResultDTO();
    resultDTO.list = authorozations;
    resultDTO.totalCount = authorozations.size();
    return resultDTO;
  }
  /**
   * @param userOID
   * @return
   */
  public QueryResultDTO loadDeputiesForUser(long userOID) {
    List<DeputyMemberDetailDTO> deputies = deputyManagementUtils.loadDeputiesForUser(userOID);

    QueryResultDTO resultDTO = new QueryResultDTO();
    resultDTO.list = deputies;
    resultDTO.totalCount = deputies.size();
    return resultDTO;
  }
  /** @return */
  public QueryResultDTO loadUsers() {
    List<DeputyMemberDetailDTO> users = deputyManagementUtils.loadUsers();

    QueryResultDTO resultDTO = new QueryResultDTO();
    resultDTO.list = users;
    resultDTO.totalCount = users.size();
    return resultDTO;
  }
  /**
   * @param userOID
   * @param searchValue
   * @param searchMode
   * @return
   */
  public QueryResultDTO getDeputyUsersData(long userOID, String searchValue, String searchMode) {
    List<ParticipantDTO> userWrappers =
        deputyManagementUtils.getDeputyUsersData(userOID, searchValue, searchMode);

    QueryResultDTO resultDTO = new QueryResultDTO();
    resultDTO.list = userWrappers;
    resultDTO.totalCount = userWrappers.size();
    return resultDTO;
  }
 /**
  * @param userOID
  * @param deputyOID
  * @param validFrom
  * @param validTo
  * @param modelParticipantIds
  * @param mode
  */
 public void addOrModifyDeputy(
     long userOID,
     long deputyOID,
     Date validFrom,
     Date validTo,
     List<String> modelParticipantIds,
     String mode) {
   deputyManagementUtils.addOrModifyDeputy(
       userOID, deputyOID, validFrom, validTo, modelParticipantIds, mode);
 }
 /**
  * @param userOID
  * @param deputyOID
  */
 public void removeUserDeputy(long userOID, long deputyOID) {
   deputyManagementUtils.removeUserDeputy(userOID, deputyOID);
 }