Java Code Examples for ims.core.vo.MemberOfStaffShortVo.getExternalCode()

The following are Jave code examples for showing how to use getExternalCode() of the ims.core.vo.MemberOfStaffShortVo 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: VoMapper.java   Source Code and License Vote up 6 votes
protected final void renderMemberOfStaffShortVoToXCNNatCode(MemberOfStaffShortVo mos, XCN xcn,ProviderSystemVo providerSystem) throws DataTypeException
{
	LOG.debug("VoMapper renderMemberOfStaffShortVoToXCNNatCode: entry");

	if(mos!=null&&mos.getNameIsNotNull()&&mos.getName().getForenameIsNotNull())
		xcn.getGivenName().setValue(mos.getName().getForename());
	if(mos!=null&&mos.getNameIsNotNull()&&mos.getName().getSurnameIsNotNull())
		xcn.getFamilyName().getSurname().setValue(mos.getName().getSurname());
	if(mos!=null&&mos.getNationalConsCode()!=null)
	{
		xcn.getIDNumber().setValue(mos.getNationalConsCode());
	}
	else if(mos!=null)
	{
		TaxonomyMap mapping = mos.getExternalCode(providerSystem.getCodeSystem());
		if (mapping != null)
		{
			xcn.getIDNumber().setValue(mapping.getTaxonomyCode());			
		}
	}
	LOG.debug("VoMapper renderMemberOfStaffShortVoToXCNNatCode: exit");

}
 
Example 2
Project: AvoinApotti   File: VoMapper.java   Source Code and License Vote up 5 votes
protected final void renderMemberOfStaffShortVoToXCN(MemberOfStaffShortVo mos, XCN xcn,ProviderSystemVo providerSystem) throws DataTypeException
{
	LOG.debug("VoMapper renderMemberOfStaffShortVoToXCN: entry");

	xcn.getGivenName().setValue(mos.getName().getForename());
	xcn.getFamilyName().getSurname().setValue(mos.getName().getSurname());
	TaxonomyMap mapping = mos.getExternalCode(providerSystem.getCodeSystem());
	if (mapping != null)
	{
		xcn.getIDNumber().setValue(mapping.getTaxonomyCode());			
	}
	LOG.debug("VoMapper renderMemberOfStaffShortVoToXCN: exit");

}