Project

General

Profile

« Previous | Next » 

Revision 0a72efb6

Added by Cherian Mathew almost 9 years ago

#5009 Update plugin to use remoting handlers

View differences:

eu.etaxonomy.taxeditor.navigation/src/main/java/eu/etaxonomy/taxeditor/navigation/key/polytomous/operation/RemotingUpdatePolytomousKeyAllNodesOperation.java
27 27
 */
28 28
public class RemotingUpdatePolytomousKeyAllNodesOperation extends RemotingCdmUpdateOperation {
29 29

  
30
    UUID polytomousKeyUuid;
30
    private final UUID polytomousKeyUuid;
31 31
    /**
32 32
     * @param label
33 33
     * @param action
......
42 42

  
43 43
    }
44 44

  
45
    public RemotingUpdatePolytomousKeyAllNodesOperation(Object source,
46
            boolean async) {
47
        super(LABEL, Action.Update, source, async);
48
        // this implies that we have to update all nodes of all keys
49
        this.polytomousKeyUuid = null;
50
    }
51

  
45 52
    private final static String LABEL = "Update All Polytomous Key Nodes operation";
46 53

  
47 54
    /* (non-Javadoc)
......
49 56
     */
50 57
    @Override
51 58
    protected UpdateResult doUpdateExecute(IProgressMonitor monitor, IAdaptable info) throws Exception {
52
        return CdmStore.getService(IPolytomousKeyService.class).updateAllNodeNumberings(polytomousKeyUuid);
59
        if(polytomousKeyUuid == null) {
60
            return CdmStore.getService(IPolytomousKeyService.class).updateAllNodeNumberings();
61
        } else {
62
            return CdmStore.getService(IPolytomousKeyService.class).updateAllNodeNumberings(polytomousKeyUuid);
63
        }
53 64
    }
54 65

  
55 66
}

Also available in: Unified diff