Project

General

Profile

« Previous | Next » 

Revision 75c87e6f

Added by Patrick Plitzner over 5 years ago

ref #7887 Refactor IPostOperationEnabled.postOperation() to Object

View differences:

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

  
12 12
import org.eclipse.core.runtime.Status;
13 13

  
14
import eu.etaxonomy.cdm.model.common.CdmBase;
15

  
16 14
/**
17 15
 * Implementors may register to operations. The postOperation method will get
18 16
 * called after any post operation
19
 * 
17
 *
20 18
 * @author n.hoffmann
21 19
 * @created 24.03.2009
22 20
 * @version 1.0
......
29 27
	 * created a new object and the {@link IPostOperationEnabled} has to know
30 28
	 * about the object it should be passed to the {@link IPostOperationEnabled}
31 29
	 * </p>
32
	 * 
30
	 *
33 31
	 * @param objectAffectedByOperation
34 32
	 *            a newly created object for example. May be <code>null</code>
35 33
	 * @return true if the method executed successfully. Returning false will
36 34
	 *         set the operations status to {@link Status.CANCEL_STATUS} which
37 35
	 *         might not be what you want.
38 36
	 */
39
	public boolean postOperation(CdmBase objectAffectedByOperation);
40
	
37
	public boolean postOperation(Object objectAffectedByOperation);
38

  
41 39
	/**
42 40
	 * This method will get called after the execution took place and occasional
43 41
	 * cleanups were performed. This is typically the last thing to happen.
44
	 * 
42
	 *
45 43
	 * @return a boolean.
46 44
	 */
47 45
	public boolean onComplete();
48
	
46

  
49 47
}

Also available in: Unified diff