Project

General

Profile

« Previous | Next » 

Revision 5904a60f

Added by Cherian Mathew almost 9 years ago

RemotingCdmUpdateOperation : corrected exception handling
RemotingChangeAcceptedTaxonToSynonymOperation : new remoting operation class
server.properties : server properties for test

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/operation/RemotingCdmUpdateOperation.java
1 1
// $Id$
2 2
/**
3
* Copyright (C) 2015 EDIT
4
* European Distributed Institute of Taxonomy
5
* http://www.e-taxonomy.eu
6
*
7
* The contents of this file are subject to the Mozilla Public License Version 1.1
8
* See LICENSE.TXT at the top of this package for the full license terms.
9
*/
3
 * Copyright (C) 2015 EDIT
4
 * European Distributed Institute of Taxonomy
5
 * http://www.e-taxonomy.eu
6
 *
7
 * The contents of this file are subject to the Mozilla Public License Version 1.1
8
 * See LICENSE.TXT at the top of this package for the full license terms.
9
 */
10 10
package eu.etaxonomy.taxeditor.operation;
11 11

  
12 12
import java.util.Collection;
......
52 52
    @Override
53 53
    public IStatus onComplete(boolean success) {
54 54

  
55
        if(success) {
56
            return Status.OK_STATUS;
57
        }
58

  
59 55
        if(updateResult != null) {
60 56
            Collection<Exception> exceptions = updateResult.getExceptions();
57
            if(success && exceptions.isEmpty()) {
58
                return Status.OK_STATUS;
59
            }
60

  
61 61
            Status[] childStatus = new Status[exceptions.size()];
62 62

  
63 63
            for(Exception ex : exceptions) {

Also available in: Unified diff