Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Currently the descriptions are absent and so we are setting the code to be the description.

Can we fix this?

This is our impl of getEnrollmentStatusDescriptions:

CourseManagementServiceUCDImpl.java

	@SuppressWarnings("unchecked")
	public Map<String, String> getEnrollmentStatusDescriptions(Locale locale) {
		//TODO: setup the NLS props on the connection based on locale?
		List<String> statuses = getHibernateTemplate().findByNamedQuery("findEnrollmentStatusDescriptions");
		
		//TODO: do we need human-readable descriptions here?
		Map<String, String> rv = new HashMap(statuses.size());
		for(Iterator i = statuses.iterator();i.hasNext();) {
			String code = (String)i.next();
			rv.put(code, code);
		}
		
		return rv;
         }

  • No labels