Java Code Examples for ims.assessment.vo.AssessmentRoleVo.getAnswerAll()

The following are Jave code examples for showing how to use getAnswerAll() of the ims.assessment.vo.AssessmentRoleVo class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
Example 1
Project: AvoinApotti   File: Logic.java   Source Code and License Vote up 6 votes
private boolean checkUserRole(UserAssessmentVo data)
{
	boolean userCanAnswerToAllQuestion = true;
	
	if(data.getAssessmentRolesIsNotNull())
	{
		for(AssessmentRoleVo role : data.getAssessmentRoles())
		{
			if(role == null)
				continue;
			
			if(role.getAppRoleIsNotNull() && role.getAppRole().getID_AppRole().equals(engine.getLoggedInRole().getId()))
			{
				userCanAnswerToAllQuestion = role.getAnswerAllIsNotNull() && role.getAnswerAll();
			}
		}			
	}
	
	return userCanAnswerToAllQuestion;
}
 
Example 2
Project: AvoinApotti   File: Logic.java   Source Code and License Vote up 6 votes
private boolean checkUserRole(User_AssessmentVo data)
{
	boolean userCanAnswerToAllQuestion = true;
	
	if(data.getAssessmentRolesIsNotNull())
	{
		for(AssessmentRoleVo role : data.getAssessmentRoles())
		{
			if(role == null)
				continue;
			
			if(role.getAppRoleIsNotNull() && role.getAppRole().getID_AppRole().equals(engine.getLoggedInRole().getId()))
			{
				userCanAnswerToAllQuestion = role.getAnswerAllIsNotNull() && role.getAnswerAll();
			}
		}			
	}
	
	return userCanAnswerToAllQuestion;
}
 
Example 3
Project: openMAXIMS   File: Logic.java   Source Code and License Vote up 6 votes
private boolean checkUserRole(UserAssessmentVo data)
{
	boolean userCanAnswerToAllQuestion = true;
	
	if(data.getAssessmentRolesIsNotNull())
	{
		for(AssessmentRoleVo role : data.getAssessmentRoles())
		{
			if(role == null)
				continue;
			
			if(role.getAppRoleIsNotNull() && role.getAppRole().getID_AppRole().equals(engine.getLoggedInRole().getId()))
			{
				userCanAnswerToAllQuestion = role.getAnswerAllIsNotNull() && role.getAnswerAll();
			}
		}			
	}
	
	return userCanAnswerToAllQuestion;
}
 
Example 4
Project: openMAXIMS   File: Logic.java   Source Code and License Vote up 6 votes
private boolean checkUserRole(User_AssessmentVo data)
{
	boolean userCanAnswerToAllQuestion = true;
	
	if(data.getAssessmentRolesIsNotNull())
	{
		for(AssessmentRoleVo role : data.getAssessmentRoles())
		{
			if(role == null)
				continue;
			
			if(role.getAppRoleIsNotNull() && role.getAppRole().getID_AppRole().equals(engine.getLoggedInRole().getId()))
			{
				userCanAnswerToAllQuestion = role.getAnswerAllIsNotNull() && role.getAnswerAll();
			}
		}			
	}
	
	return userCanAnswerToAllQuestion;
}
 
Example 5
Project: openMAXIMS   File: Logic.java   Source Code and License Vote up 6 votes
private boolean checkUserRole(UserAssessmentVo data)
{
	boolean userCanAnswerToAllQuestion = true;
	
	if(data.getAssessmentRolesIsNotNull())
	{
		for(AssessmentRoleVo role : data.getAssessmentRoles())
		{
			if(role == null)
				continue;
			
			if(role.getAppRoleIsNotNull() && role.getAppRole().getID_AppRole().equals(engine.getLoggedInRole().getId()))
			{
				userCanAnswerToAllQuestion = role.getAnswerAllIsNotNull() && role.getAnswerAll();
			}
		}			
	}
	
	return userCanAnswerToAllQuestion;
}
 
Example 6
Project: openMAXIMS   File: Logic.java   Source Code and License Vote up 6 votes
private boolean checkUserRole(User_AssessmentVo data)
{
	boolean userCanAnswerToAllQuestion = true;
	
	if(data.getAssessmentRolesIsNotNull())
	{
		for(AssessmentRoleVo role : data.getAssessmentRoles())
		{
			if(role == null)
				continue;
			
			if(role.getAppRoleIsNotNull() && role.getAppRole().getID_AppRole().equals(engine.getLoggedInRole().getId()))
			{
				userCanAnswerToAllQuestion = role.getAnswerAllIsNotNull() && role.getAnswerAll();
			}
		}			
	}
	
	return userCanAnswerToAllQuestion;
}
 
Example 7
Project: openmaxims-linux   File: Logic.java   Source Code and License Vote up 6 votes
private boolean checkUserRole(UserAssessmentVo data)
{
	boolean userCanAnswerToAllQuestion = true;
	
	if(data.getAssessmentRolesIsNotNull())
	{
		for(AssessmentRoleVo role : data.getAssessmentRoles())
		{
			if(role == null)
				continue;
			
			if(role.getAppRoleIsNotNull() && role.getAppRole().getID_AppRole().equals(engine.getLoggedInRole().getId()))
			{
				userCanAnswerToAllQuestion = role.getAnswerAllIsNotNull() && role.getAnswerAll();
			}
		}			
	}
	
	return userCanAnswerToAllQuestion;
}
 
Example 8
Project: openmaxims-linux   File: Logic.java   Source Code and License Vote up 6 votes
private boolean checkUserRole(User_AssessmentVo data)
{
	boolean userCanAnswerToAllQuestion = true;
	
	if(data.getAssessmentRolesIsNotNull())
	{
		for(AssessmentRoleVo role : data.getAssessmentRoles())
		{
			if(role == null)
				continue;
			
			if(role.getAppRoleIsNotNull() && role.getAppRole().getID_AppRole().equals(engine.getLoggedInRole().getId()))
			{
				userCanAnswerToAllQuestion = role.getAnswerAllIsNotNull() && role.getAnswerAll();
			}
		}			
	}
	
	return userCanAnswerToAllQuestion;
}
 
Example 9
Project: AvoinApotti   File: Logic.java   Source Code and License Vote up 5 votes
protected void onCmbRolesValueChanged() throws PresentationLogicException
{
	AssessmentRoleVo voAssessmentRole = form.cmbRoles().getValue();
	UserAssessmentVo voUserAssesment = form.getLocalContext().getUserAssessmentVo();
	if(voAssessmentRole != null && (voAssessmentRole.getAnswerAll() == null || !voAssessmentRole.getAnswerAll().booleanValue()))
	{
		populateGrid(getFilteredOnRoleUserAssessment(voUserAssesment, voAssessmentRole));
	}
	else
	{
		populateGrid(voUserAssesment);
	}
}
 
Example 10
Project: openMAXIMS   File: Logic.java   Source Code and License Vote up 5 votes
protected void onCmbRolesValueChanged() throws PresentationLogicException
{
	AssessmentRoleVo voAssessmentRole = form.cmbRoles().getValue();
	UserAssessmentVo voUserAssesment = form.getLocalContext().getUserAssessmentVo();
	if(voAssessmentRole != null && (voAssessmentRole.getAnswerAll() == null || !voAssessmentRole.getAnswerAll().booleanValue()))
	{
		populateGrid(getFilteredOnRoleUserAssessment(voUserAssesment, voAssessmentRole));
	}
	else
	{
		populateGrid(voUserAssesment);
	}
}
 
Example 11
Project: openMAXIMS   File: Logic.java   Source Code and License Vote up 5 votes
protected void onCmbRolesValueChanged() throws PresentationLogicException
{
	AssessmentRoleVo voAssessmentRole = form.cmbRoles().getValue();
	UserAssessmentVo voUserAssesment = form.getLocalContext().getUserAssessmentVo();
	if(voAssessmentRole != null && (voAssessmentRole.getAnswerAll() == null || !voAssessmentRole.getAnswerAll().booleanValue()))
	{
		populateGrid(getFilteredOnRoleUserAssessment(voUserAssesment, voAssessmentRole));
	}
	else
	{
		populateGrid(voUserAssesment);
	}
}
 
Example 12
Project: openmaxims-linux   File: Logic.java   Source Code and License Vote up 5 votes
protected void onCmbRolesValueChanged() throws PresentationLogicException
{
	AssessmentRoleVo voAssessmentRole = form.cmbRoles().getValue();
	UserAssessmentVo voUserAssesment = form.getLocalContext().getUserAssessmentVo();
	if(voAssessmentRole != null && (voAssessmentRole.getAnswerAll() == null || !voAssessmentRole.getAnswerAll().booleanValue()))
	{
		populateGrid(getFilteredOnRoleUserAssessment(voUserAssesment, voAssessmentRole));
	}
	else
	{
		populateGrid(voUserAssesment);
	}
}