Project

General

Profile

Revision 7dde6846

ID7dde6846cae8e59252405b859921508f989b1d1d
Parent aa8cf7e6
Child 2e09903a

Added by Andreas Kohlbecker 10 months ago

ref #8390 uncommenting typeDesignationsInHomotypicalGroup service endpoints

View differences:

cdmlib-remote/src/main/java/eu/etaxonomy/cdm/remote/controller/NameController.java
146 146
        return pager.getRecords();
147 147
    }
148 148

  
149
//    /**
150
//     * Get the list of {@link TypeDesignationBase}s associated to any name in the same homotypical group to which
151
//     * the {@link TaxonName} identified by the <code>{name-uuid}</code> belongs.
152
//     * <p>
153
//     * URI: <b>&#x002F;{datasource-name}&#x002F;name&#x002F;{name-uuid}&#x002F;typeDesignations</b>
154
//     *
155
//     * @param request
156
//     * @param response
157
//     * @return a List of {@link TypeDesignationBase} entities which are initialized
158
//     *         using the {@link #TYPEDESIGNATION_INIT_STRATEGY}
159
//     * @throws IOException
160
//     */
161
//    @RequestMapping(value = { "typeDesignationsInHomotypicalGroup" }, method = RequestMethod.GET)
162
//    public List<TypeDesignationBase> doGetTypeDesignationsInHomotypicalGroup(
163
//            @PathVariable("uuid") UUID uuid, HttpServletRequest request,
164
//            HttpServletResponse response) throws IOException {
165
//
166
//        if (request != null) {
167
//            logger.info("doGetTypeDesignationsInHomotypicalGroup()" + requestPathAndQuery(request));
168
//        }
169
//        List<TypeDesignationBase> result = service.getTypeDesignationsInHomotypicalGroup(uuid,
170
//                null, null, TYPEDESIGNATION_INIT_STRATEGY);
171
//        return result;
172
//    }
149
    /**
150
     * Get the list of {@link TypeDesignationBase}s associated to any name in the same homotypical group to which
151
     * the {@link TaxonName} identified by the <code>{name-uuid}</code> belongs.
152
     * <p>
153
     * URI: <b>&#x002F;{datasource-name}&#x002F;name&#x002F;{name-uuid}&#x002F;typeDesignations</b>
154
     *
155
     * @param request
156
     * @param response
157
     * @return a List of {@link TypeDesignationBase} entities which are initialized
158
     *         using the {@link #TYPEDESIGNATION_INIT_STRATEGY}
159
     * @throws IOException
160
     */
161
    @RequestMapping(value = { "typeDesignationsInHomotypicalGroup" }, method = RequestMethod.GET)
162
    public List<TypeDesignationBase> doGetTypeDesignationsInHomotypicalGroup(
163
            @PathVariable("uuid") UUID uuid, HttpServletRequest request,
164
            HttpServletResponse response) throws IOException {
165

  
166
        if (request != null) {
167
            logger.info("doGetTypeDesignationsInHomotypicalGroup()" + requestPathAndQuery(request));
168
        }
169
        List<TypeDesignationBase> result = service.getTypeDesignationsInHomotypicalGroup(uuid,
170
                null, null, TYPEDESIGNATION_INIT_STRATEGY);
171
        return result;
172
    }
173 173

  
174 174

  
175 175
    @RequestMapping(
cdmlib-remote/src/main/java/eu/etaxonomy/cdm/remote/controller/NamePortalController.java
136 136
        return p.getRecords();
137 137
    }
138 138

  
139
//    /**
140
//     * Get the list of {@link TypeDesignationBase}s associated to any name in the same homotypical group to which
141
//     * the {@link TaxonName} identified by the <code>{name-uuid}</code> belongs.
142
//     * <p>
143
//     * URI: <b>&#x002F;{datasource-name}&#x002F;name&#x002F;{name-uuid}&#x002F;typeDesignations</b>
144
//     *
145
//     * @param request
146
//     * @param response
147
//     * @return a List of {@link TypeDesignationBase} entities which are initialized
148
//     *         using the {@link #TYPEDESIGNATION_INIT_STRATEGY}
149
//     * @throws IOException
150
//     */
151
//    @RequestMapping(value = { "typeDesignationsInHomotypicalGroup" }, method = RequestMethod.GET)
152
//    public List<TypeDesignationBase> doGetTypeDesignationsInHomotypicalGroup(
153
//            @PathVariable("uuid") UUID uuid, HttpServletRequest request,
154
//            HttpServletResponse response) throws IOException {
155
//
156
//        if (request != null) {
157
//            logger.info("doGetTypeDesignationsInHomotypicalGroup()" + requestPathAndQuery(request));
158
//        }
159
//        List<TypeDesignationBase> result = service.getTypeDesignationsInHomotypicalGroup(uuid,
160
//                null, null, TYPEDESIGNATION_INIT_STRATEGY);
161
//        return result;
162
//    }
139
    /**
140
     * Get the list of {@link TypeDesignationBase}s associated to any name in the same homotypical group to which
141
     * the {@link TaxonName} identified by the <code>{name-uuid}</code> belongs.
142
     * <p>
143
     * URI: <b>&#x002F;{datasource-name}&#x002F;name&#x002F;{name-uuid}&#x002F;typeDesignations</b>
144
     *
145
     * @param request
146
     * @param response
147
     * @return a List of {@link TypeDesignationBase} entities which are initialized
148
     *         using the {@link #TYPEDESIGNATION_INIT_STRATEGY}
149
     * @throws IOException
150
     */
151
    @RequestMapping(value = { "typeDesignationsInHomotypicalGroup" }, method = RequestMethod.GET)
152
    public List<TypeDesignationBase> doGetTypeDesignationsInHomotypicalGroup(
153
            @PathVariable("uuid") UUID uuid, HttpServletRequest request,
154
            HttpServletResponse response) throws IOException {
155

  
156
        if (request != null) {
157
            logger.info("doGetTypeDesignationsInHomotypicalGroup()" + requestPathAndQuery(request));
158
        }
159
        List<TypeDesignationBase> result = service.getTypeDesignationsInHomotypicalGroup(uuid,
160
                null, null, TYPEDESIGNATION_INIT_STRATEGY);
161
        return result;
162
    }
163 163

  
164 164
    /**
165 165
     * Get the list of {@link TaxonNameDescription}s of the Name associated with the

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)