* @author a.mueller
* @since 03.06.2010
*
- * @deprecated with #9678 a similar cache strategy (DerivedUnitCacheStrategy)
+ * @deprecated with #9678 a similar cache strategy (DerivedUnitDefaultCacheStrategy)
* was implemented in cdmlib-model. This class may be removed in future.
*/
@Deprecated
*/
private String getUnitNumber(DerivedUnitFacade facade) {
String result;
+
if (isNotBlank(facade.getAccessionNumber())){
result = facade.getAccessionNumber();
}else if (isNotBlank(facade.getBarcode())){
@Controller
@Api("derivedUnitFacade")
@RequestMapping(value = {"/derivedUnitFacade/{uuid}"})
-public class DerivedUnitFacadeController extends AbstractController<SpecimenOrObservationBase, IOccurrenceService>{
+public class DerivedUnitFacadeController
+ extends AbstractController<SpecimenOrObservationBase, IOccurrenceService>{
private static final Logger logger = LogManager.getLogger();
public List<MediaDTO> doGetFieldObjectMediaDTO(
@PathVariable("uuid") UUID occurrenceUuid,
HttpServletRequest request,
- HttpServletResponse response) {
+ @SuppressWarnings("unused") HttpServletResponse response) {
logger.info("doGetFieldObjectMediaDTO() - " + readPathParameter(request, null));
return mv;
}
-
// TODO
//@RequestMapping(method = RequestMethod.GET, value = "{uuid}/collectingareas")
@RequestMapping(
return duf.getCollection();
}
-
//TODO:
// public Point getExactLocation() => valueProcessor?
-
// public Collection getCollection() {
// public AgentBase getCollector() {
// public DerivedUnit getDerivedUnit() {
}
return null;
}
-
-
-
-
-
-
-
-
-
-
-
-}
+}
\ No newline at end of file
*/\r
package eu.etaxonomy.cdm.remote.controller;\r
\r
-import io.swagger.annotations.Api;\r
-\r
import java.util.Arrays;\r
\r
import org.springframework.stereotype.Controller;\r
import org.springframework.web.bind.annotation.RequestMapping;\r
\r
+import io.swagger.annotations.Api;\r
+\r
/**\r
* @author a.kohlbecker\r
* @since 14.10.2010\r
- *\r
*/\r
@Controller\r
@Api("portal_derivedUnitFacade")\r
@RequestMapping(value = {"/portal/derivedUnitFacade/{uuid}"})\r
-public class DerivedUnitFacadePortalController extends\r
- DerivedUnitFacadeController {\r
+public class DerivedUnitFacadePortalController\r
+ extends DerivedUnitFacadeController {\r
\r
public DerivedUnitFacadePortalController(){\r
super();\r
// Any modifications to this file will be lost upon recompilation of the source schema.\r
// Generated on: 2007.08.01 at 10:51:47 AM BST\r
//\r
-\r
-\r
package eu.etaxonomy.remote.dto.rdf;\r
\r
import java.util.HashSet;\r
@XmlElement(name = "SpeciesProfileModel", namespace = "http://rs.tdwg.org/ontology/voc/SpeciesProfileModel#", type = SpeciesProfileModel.class),\r
@XmlElement(name = "NameInformation", namespace = "http://cybertaxonomy.org/cdm/ontology/voc/NameInformation#")\r
})\r
- protected Set<BaseThing> things = new HashSet<BaseThing>();\r
+ protected Set<BaseThing> things = new HashSet<>();\r
\r
public Set<BaseThing> getThings() {\r
return things;\r
public void removeThing(BaseThing thing) {\r
this.things.remove(thing);\r
}\r
-}\r
+}
\ No newline at end of file
import org.junit.Before;
import org.junit.Test;
-import eu.etaxonomy.cdm.facade.DerivedUnitFacade;
import eu.etaxonomy.cdm.model.agent.Person;
import eu.etaxonomy.cdm.model.agent.Team;
import eu.etaxonomy.cdm.model.common.Language;