Java Code Examples for ims.assessment.vo.AssessmentRoleVoCollection

The following are top voted examples for showing how to use ims.assessment.vo.AssessmentRoleVoCollection. These examples are extracted from open source projects. You can vote up the examples you like and your votes will be used in our system to generate more good examples.
Example 1
Project: AvoinApotti   File: Logic.java   Source Code and License 5 votes vote down vote up
private AssessmentRoleVoCollection getRoles()
{
	AssessmentRoleVoCollection voCollection = new AssessmentRoleVoCollection();
	for (int i = 0; i < form.lyrTabs().tabRoles().grdRoles().getRows().size(); i++)
	{
		grdRolesRow rolesRow = form.lyrTabs().tabRoles().grdRoles().getRows().get(i);
		AssessmentRoleVo voAssessRole = rolesRow.getValue();
		voAssessRole.setAnswerAll(new Boolean(rolesRow.getcolAnswerAll()));
		voCollection.add(voAssessRole);
	}

	return voCollection;
}
 
Example 2
Project: AvoinApotti   File: Logic.java   Source Code and License 5 votes vote down vote up
@SuppressWarnings("unchecked")
private AssessmentQuestionRoleVoCollection getQuestionRole(AssessmentQuestionVo voAssessmentQuestion)
{
	HashMap map = form.getLocalContext().getAssessmentRoles();
	if (map == null)
		return null;

	AssessmentQuestionRoleVoCollection voColl = new AssessmentQuestionRoleVoCollection();

	AssessmentRoleVoCollection roleVoColl = getRoles();
	for (int i = 0; i < roleVoColl.size(); i++)
	{
		AssessmentRoleVo voAssessRole = roleVoColl.get(i);
		if (voAssessRole.getAnswerAllIsNotNull() && voAssessRole.getAnswerAll().booleanValue() == false)
		{
			AssessmentQuestionVoCollection voAssQColl = (AssessmentQuestionVoCollection) map.get(voAssessRole.getAppRole().getID_AppRole());
			if (voAssQColl != null)
			{
				if (voAssQColl.indexOf(voAssessmentQuestion) >= 0)
				{
					AssessmentQuestionRoleVo voAssessQuestionRole = new AssessmentQuestionRoleVo();
					voAssessQuestionRole.setAppRole(voAssessRole.getAppRole());
					voColl.add(voAssessQuestionRole);
				}
			}
		}
	}

	return voColl;
}
 
Example 3
Project: openMAXIMS   File: Logic.java   Source Code and License 5 votes vote down vote up
private AssessmentRoleVoCollection getRoles()
{
	AssessmentRoleVoCollection voCollection = new AssessmentRoleVoCollection();
	for (int i = 0; i < form.lyrTabs().tabRoles().grdRoles().getRows().size(); i++)
	{
		grdRolesRow rolesRow = form.lyrTabs().tabRoles().grdRoles().getRows().get(i);
		AssessmentRoleVo voAssessRole = rolesRow.getValue();
		voAssessRole.setAnswerAll(new Boolean(rolesRow.getcolAnswerAll()));
		voCollection.add(voAssessRole);
	}

	return voCollection;
}
 
Example 4
Project: openMAXIMS   File: Logic.java   Source Code and License 5 votes vote down vote up
@SuppressWarnings("unchecked")
private AssessmentQuestionRoleVoCollection getQuestionRole(AssessmentQuestionVo voAssessmentQuestion)
{
	HashMap map = form.getLocalContext().getAssessmentRoles();
	if (map == null)
		return null;

	AssessmentQuestionRoleVoCollection voColl = new AssessmentQuestionRoleVoCollection();

	AssessmentRoleVoCollection roleVoColl = getRoles();
	for (int i = 0; i < roleVoColl.size(); i++)
	{
		AssessmentRoleVo voAssessRole = roleVoColl.get(i);
		if (voAssessRole.getAnswerAllIsNotNull() && voAssessRole.getAnswerAll().booleanValue() == false)
		{
			AssessmentQuestionVoCollection voAssQColl = (AssessmentQuestionVoCollection) map.get(voAssessRole.getAppRole().getID_AppRole());
			if (voAssQColl != null)
			{
				if (voAssQColl.indexOf(voAssessmentQuestion) >= 0)
				{
					AssessmentQuestionRoleVo voAssessQuestionRole = new AssessmentQuestionRoleVo();
					voAssessQuestionRole.setAppRole(voAssessRole.getAppRole());
					voColl.add(voAssessQuestionRole);
				}
			}
		}
	}

	return voColl;
}
 
Example 5
Project: openMAXIMS   File: Logic.java   Source Code and License 5 votes vote down vote up
private AssessmentRoleVoCollection getRoles()
{
	AssessmentRoleVoCollection voCollection = new AssessmentRoleVoCollection();
	for (int i = 0; i < form.lyrTabs().tabRoles().grdRoles().getRows().size(); i++)
	{
		grdRolesRow rolesRow = form.lyrTabs().tabRoles().grdRoles().getRows().get(i);
		AssessmentRoleVo voAssessRole = rolesRow.getValue();
		voAssessRole.setAnswerAll(new Boolean(rolesRow.getcolAnswerAll()));
		voCollection.add(voAssessRole);
	}

	return voCollection;
}
 
Example 6
Project: openMAXIMS   File: Logic.java   Source Code and License 5 votes vote down vote up
@SuppressWarnings("unchecked")
private AssessmentQuestionRoleVoCollection getQuestionRole(AssessmentQuestionVo voAssessmentQuestion)
{
	HashMap map = form.getLocalContext().getAssessmentRoles();
	if (map == null)
		return null;

	AssessmentQuestionRoleVoCollection voColl = new AssessmentQuestionRoleVoCollection();

	AssessmentRoleVoCollection roleVoColl = getRoles();
	for (int i = 0; i < roleVoColl.size(); i++)
	{
		AssessmentRoleVo voAssessRole = roleVoColl.get(i);
		if (voAssessRole.getAnswerAllIsNotNull() && voAssessRole.getAnswerAll().booleanValue() == false)
		{
			AssessmentQuestionVoCollection voAssQColl = (AssessmentQuestionVoCollection) map.get(voAssessRole.getAppRole().getID_AppRole());
			if (voAssQColl != null)
			{
				if (voAssQColl.indexOf(voAssessmentQuestion) >= 0)
				{
					AssessmentQuestionRoleVo voAssessQuestionRole = new AssessmentQuestionRoleVo();
					voAssessQuestionRole.setAppRole(voAssessRole.getAppRole());
					voColl.add(voAssessQuestionRole);
				}
			}
		}
	}

	return voColl;
}
 
Example 7
Project: openmaxims-linux   File: Logic.java   Source Code and License 5 votes vote down vote up
private AssessmentRoleVoCollection getRoles()
{
	AssessmentRoleVoCollection voCollection = new AssessmentRoleVoCollection();
	for (int i = 0; i < form.lyrTabs().tabRoles().grdRoles().getRows().size(); i++)
	{
		grdRolesRow rolesRow = form.lyrTabs().tabRoles().grdRoles().getRows().get(i);
		AssessmentRoleVo voAssessRole = rolesRow.getValue();
		voAssessRole.setAnswerAll(new Boolean(rolesRow.getcolAnswerAll()));
		voCollection.add(voAssessRole);
	}

	return voCollection;
}
 
Example 8
Project: openmaxims-linux   File: Logic.java   Source Code and License 5 votes vote down vote up
@SuppressWarnings("unchecked")
private AssessmentQuestionRoleVoCollection getQuestionRole(AssessmentQuestionVo voAssessmentQuestion)
{
	HashMap map = form.getLocalContext().getAssessmentRoles();
	if (map == null)
		return null;

	AssessmentQuestionRoleVoCollection voColl = new AssessmentQuestionRoleVoCollection();

	AssessmentRoleVoCollection roleVoColl = getRoles();
	for (int i = 0; i < roleVoColl.size(); i++)
	{
		AssessmentRoleVo voAssessRole = roleVoColl.get(i);
		if (voAssessRole.getAnswerAllIsNotNull() && voAssessRole.getAnswerAll().booleanValue() == false)
		{
			AssessmentQuestionVoCollection voAssQColl = (AssessmentQuestionVoCollection) map.get(voAssessRole.getAppRole().getID_AppRole());
			if (voAssQColl != null)
			{
				if (voAssQColl.indexOf(voAssessmentQuestion) >= 0)
				{
					AssessmentQuestionRoleVo voAssessQuestionRole = new AssessmentQuestionRoleVo();
					voAssessQuestionRole.setAppRole(voAssessRole.getAppRole());
					voColl.add(voAssessQuestionRole);
				}
			}
		}
	}

	return voColl;
}
 
Example 9
Project: AvoinApotti   File: StructuredAssessmentsHelper.java   Source Code and License 4 votes vote down vote up
public boolean populateDataFromDynGrid(UserAssessmentVo assessment, AssessmentRoleVoCollection roleColl, HashMap assessmentRoleMap, String assessmentName)
{
	this.roleVoColl = roleColl;
	return populateDataFromGrid(assessment, assessmentRoleMap, assessmentName);
}
 
Example 10
Project: openMAXIMS   File: StructuredAssessmentsHelper.java   Source Code and License 4 votes vote down vote up
public boolean populateDataFromDynGrid(UserAssessmentVo assessment, AssessmentRoleVoCollection roleColl, HashMap assessmentRoleMap, String assessmentName)
{
	this.roleVoColl = roleColl;
	return populateDataFromGrid(assessment, assessmentRoleMap, assessmentName);
}
 
Example 11
Project: openMAXIMS   File: StructuredAssessmentsHelper.java   Source Code and License 4 votes vote down vote up
public boolean populateDataFromDynGrid(UserAssessmentVo assessment, AssessmentRoleVoCollection roleColl, HashMap assessmentRoleMap, String assessmentName)
{
	this.roleVoColl = roleColl;
	return populateDataFromGrid(assessment, assessmentRoleMap, assessmentName);
}
 
Example 12
Project: openmaxims-linux   File: StructuredAssessmentsHelper.java   Source Code and License 4 votes vote down vote up
public boolean populateDataFromDynGrid(UserAssessmentVo assessment, AssessmentRoleVoCollection roleColl, HashMap assessmentRoleMap, String assessmentName)
{
	this.roleVoColl = roleColl;
	return populateDataFromGrid(assessment, assessmentRoleMap, assessmentName);
}