Project

General

Profile

Revision f7d60a17

IDf7d60a17d46c4680a7598dc1e0f92fb32bc459a5
Parent 2a055418
Child 5af794eb

Added by Andreas Müller 7 months ago

cleanup

View differences:

cdmlib-services/src/main/java/eu/etaxonomy/cdm/api/service/ITaxonNodeService.java
173 173

  
174 174
    public UpdateResult moveTaxonNode(TaxonNode taxonNode, TaxonNode newParent, int movingType);
175 175

  
176
    public UpdateResult moveTaxonNodes(Set<UUID> taxonNodeUuids, UUID newParentNodeUuid, int movingType,
177
            IProgressMonitor monitor);
178

  
176 179
    /**
177 180
     * deletes the given taxon nodes
178 181
     */
......
235 238
     */
236 239
    public List<Integer> idList(TaxonNodeFilter filter);
237 240

  
238
    List<TaxonNodeDto> listChildNodesAsTaxonNodeDto(TaxonNodeDto parent);
241
    public List<TaxonNodeDto> listChildNodesAsTaxonNodeDto(TaxonNodeDto parent);
239 242

  
240 243

  
241
    List<TaxonNodeDto> listChildNodesAsTaxonNodeDto(ITaxonTreeNode parent);
242

  
243
    /**
244
     * @param taxonNodeUuids
245
     * @param newParentNodeUuid
246
     * @param movingType
247
     * @param monitor
248
     * @return
249
     */
250
    UpdateResult moveTaxonNodes(Set<UUID> taxonNodeUuids, UUID newParentNodeUuid, int movingType,
251
            IProgressMonitor monitor);
244
    public List<TaxonNodeDto> listChildNodesAsTaxonNodeDto(ITaxonTreeNode parent);
252 245

  
253 246
    /**
254 247
     * Retrieves the first taxon node that is direct or indirect parent
cdmlib-services/src/main/java/eu/etaxonomy/cdm/api/service/TaxonNodeServiceImpl.java
728 728
        UpdateResult result = new UpdateResult();
729 729

  
730 730
        TaxonNode parentParent = HibernateProxyHelper.deproxy(newParent.getParent());
731
        TaxonNode oldParent = HibernateProxyHelper.deproxy(taxonNode.getParent());
732 731
        Integer sortIndex = -1;
733 732
        if (movingType == 0){
734 733
            sortIndex = 0;
......
749 748
        return result;
750 749
    }
751 750

  
752

  
753

  
754 751
    @Override
755 752
    @Transactional
756 753
    public UpdateResult moveTaxonNodes(Set<UUID> taxonNodeUuids, UUID newParentNodeUuid, int movingType, IProgressMonitor monitor){

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)