public List<ApplicationDTO> getApplicationByUsername(String username)
        {
            List<ApplicationDTO> applicationDtoList = new List<ApplicationDTO>();
            ApplicationDAO applicationDao = new ApplicationDAO();
            List<ApplicationDTO> applicationList = applicationDao.findAll();

            foreach(ApplicationDTO applicationDto in applicationList)
            {
                if (applicationDto.userName.Equals(username))
                {
                    applicationDtoList.Add(applicationDto);
                }
            }
            return applicationDtoList;
        }
        public List<ApplicationDTO> getApplicationByVacancyNumber(String vacancyNumber)
        {
            List<ApplicationDTO> applicationDtoList = new List<ApplicationDTO>(); ;
            ApplicationDAO applicationDao = new ApplicationDAO();
            List<ApplicationDTO> applicationList = applicationDao.findAll();

            foreach (ApplicationDTO applicationDto in applicationList)
            {
                if (applicationDto.vacancyNumber.Equals(vacancyNumber))
                {
                    applicationDtoList.Add(applicationDto);
                }
            }
            return applicationDtoList;
        }
        public List<ApplicationDTO> getApplicationByStatus(String status)
        {
            List<ApplicationDTO> applicationDtoList = new List<ApplicationDTO>();
            ApplicationDAO applicationDao = new ApplicationDAO();
            List<ApplicationDTO> applicationList = applicationDao.findAll();

            foreach (ApplicationDTO applicationDto in applicationList)
            {
                if (applicationDto.status.Equals(status))
                {
                    applicationDtoList.Add(applicationDto);
                }
            }
            return applicationDtoList;
        }