@@ -0,0 +1,1332 @@
+/**%0A * This Source Code Form is subject to the terms of the Mozilla Public License,%0A * v. 2.0. If a copy of the MPL was not distributed with this file, You can%0A * obtain one at http://mozilla.org/MPL/2.0/. OpenMRS is also distributed under%0A * the terms of the Healthcare Disclaimer located at http://openmrs.org/license.%0A *%0A * Copyright (C) OpenMRS Inc. OpenMRS is a registered trademark and the OpenMRS%0A * graphic logo is a trademark of OpenMRS Inc.%0A */%0Apackage org.openmrs.web.attribute.handler;%0A%0Aimport java.util.Map;%0A%0Aimport org.openmrs.Provider;%0Aimport org.openmrs.customdatatype.datatype.ProviderDatatype;%0Aimport org.springframework.stereotype.Component;%0A%0A/**%0A * Handler for the Provider custom datatype%0A */%0A@Component%0Apublic class ProviderFieldGenDatatypeHandler extends BaseMetadataFieldGenDatatypeHandler%3CProviderDatatype, Provider%3E %7B%0A%09%0A%09/**%0A%09 * @see org.openmrs.customdatatype.CustomDatatypeHandler#setHandlerConfiguration(String)%0A%09 */%0A%09@Override%0A%09public void setHandlerConfiguration(String handlerConfig) %7B%0A%09%09// not used%0A%09%7D%0A%09%0A%09/**%0A%09 * @see FieldGenDatatypeHandler#getWidgetName()%0A%09 */%0A%09@Override%0A%09public String getWidgetName() %7B%0A%09%09return %22org.openmrs.Provider%22;%0A%09%7D%0A%09%0A%09/**%0A%09 * @see FieldGenDatatypeHandler#getWidgetConfiguration()%0A%09 */%0A%09@Override%0A%09public Map%3CString, Object%3E getWidgetConfiguration() %7B%0A%09%09return null;%0A%09%7D%0A%7D%0A

Create a custom data type and its associated handler for providers - TRUNK-3623