Project

General

Profile

Revision 6ecf5e6f

ID6ecf5e6f5f92dd4eba52f97363163abe44c34f07
Parent 59b17733
Child 8cfe0371

Added by Andreas Müller about 2 years ago

ref #6365 remove BotanicalName from IPNI service

View differences:

cdmlib-ext/src/main/java/eu/etaxonomy/cdm/ext/ipni/IIpniService.java
120 120
	 * <BR/>
121 121
	 * Please be aware that not all data returned by IPNI are transformed into CDM data as some of the data types are not available in the
122 122
	 * CDM and some types are just not yet implemented.
123
	 *  
123
	 *
124 124
	 * @param wholeName
125 125
	 * @param format
126 126
	 * @param appConfig
127 127
	 * @return
128 128
	 */
129
	public List<BotanicalName> getNamesSimple(String wholeName, ICdmRepository services, IpniServiceNamesConfigurator config);
130
	
129
	public List<IBotanicalName> getNamesSimple(String wholeName, ICdmRepository services, IpniServiceNamesConfigurator config);
130

  
131 131
	/**
132 132
	 * Returns the name matching the id parameter according to the IPNI Quick search function.
133 133
	 * See {@link http://www.uk.ipni.org/sample_searches.html#name_quick} for further explanation about the IPNI Quick search.
134 134
	 * <BR/><BR/>
135
	 * 
135
	 *
136 136
	 * Please be aware that not all data returned by IPNI are transformed into CDM data as some of the data types are not available in the
137 137
	 * CDM and some types are just not yet implemented.
138
	 *  
138
	 *
139 139
	 * @param id
140 140
	 * @return
141 141
	 */
142 142
	public InputStream getNamesById(String id);
143
	
144
	
143

  
144

  
145 145
	/**
146 146
	 * Returns the publication matching the id parameter according to the IPNI Quick search function.
147 147
	 * See {@link http://www.uk.ipni.org/sample_searches.html#name_quick} for further explanation about the IPNI Quick search.
148 148
	 * <BR/><BR/>
149
	 * 
149
	 *
150 150
	 * Please be aware that not all data returned by IPNI are transformed into CDM data as some of the data types are not available in the
151 151
	 * CDM and some types are just not yet implemented.
152
	 *  
152
	 *
153 153
	 * @param id
154 154
	 * @return
155 155
	 */
156 156
	public InputStream getPublicationsById(String id);
157
	
157

  
158 158
	/**
159 159
	 * Returns a list of names matching the relevant parameters according to the IPNI full search function.
160 160
	 * See {http://www.uk.ipni.org/sample_searches.html#name_full} for further explanation about the IPNI Full search.
cdmlib-ext/src/main/java/eu/etaxonomy/cdm/ext/ipni/IpniService.java
856 856
	}
857 857

  
858 858

  
859
	/* (non-Javadoc)
860
	 * @see eu.etaxonomy.cdm.ext.IIpniService#getNamesSimple(java.lang.String, eu.etaxonomy.cdm.ext.IIpniService.DelimitedFormat, eu.etaxonomy.cdm.api.application.ICdmRepository)
861
	 */
862 859
	@Override
863
    public List<BotanicalName> getNamesSimple(String wholeName, ICdmRepository services, IpniServiceNamesConfigurator config){
860
    public List<IBotanicalName> getNamesSimple(String wholeName, ICdmRepository services, IpniServiceNamesConfigurator config){
864 861
		if (config == null){
865 862
			config = new IpniServiceNamesConfigurator();
866 863
		}
cdmlib-ext/src/test/java/eu/etaxonomy/cdm/ext/ipni/IpniServiceTest.java
125 125
	public void testGetNamesSimple(){
126 126
		ICdmRepository services = null;
127 127
		IpniServiceNamesConfigurator config = null;
128
		List<BotanicalName> nameList = service1.getNamesSimple("Abies albertiana", services, config);
128
		List<IBotanicalName> nameList = service1.getNamesSimple("Abies albertiana", services, config);
129 129
		//expected web service result: 3379-1%1.1%Greuter%Werner Rodolfo%Greuter%PS%1938-%>Greuter, Werner Rodolfo
130 130

  
131 131
		if (testInternetConnectivity(nameList)){

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)