use of com.evolveum.midpoint.web.page.admin.home.component.MyPasswordQuestionsPanel in project midpoint by Evolveum.
the class PageMyPasswordQuestions method executeAddingQuestions.
/**
* method for adding questions to user credentials
* @author oguzhan
* @param questionNumber
* @param panelNumber
* @param policyQuestionList
*/
public void executeAddingQuestions(int questionNumber, int panelNumber, List<SecurityQuestionDefinitionType> policyQuestionList) {
LOGGER.debug("executeAddingQuestions");
for (int i = 0; i < questionNumber; i++) {
//LOGGER.info("\n\n Adding panel element");
SecurityQuestionAnswerDTO a = new SecurityQuestionAnswerDTO(policyQuestionList.get(panelNumber).getIdentifier(), "", policyQuestionList.get(panelNumber).getQuestionText());
MyPasswordQuestionsPanel panel = new MyPasswordQuestionsPanel(ID_PASSWORD_QUESTIONS_PANEL + panelNumber, a);
pqPanels.add(panel);
panelNumber++;
}
}
Aggregations