1 |
2f72f4da
|
Andreas Müller
|
/**
|
2 |
|
|
* Copyright (C) 2007 EDIT
|
3 |
|
|
* European Distributed Institute of Taxonomy
|
4 |
|
|
* http://www.e-taxonomy.eu
|
5 |
|
|
*
|
6 |
|
|
* The contents of this file are subject to the Mozilla Public License Version 1.1
|
7 |
|
|
* See LICENSE.TXT at the top of this package for the full license terms.
|
8 |
|
|
*/
|
9 |
|
|
|
10 |
|
|
package eu.etaxonomy.cdm.api.service;
|
11 |
|
|
|
12 |
|
|
import java.util.UUID;
|
13 |
|
|
|
14 |
|
|
import eu.etaxonomy.cdm.api.service.config.TermNodeDeletionConfigurator;
|
15 |
|
|
import eu.etaxonomy.cdm.model.term.TermNode;
|
16 |
|
|
|
17 |
|
|
/**
|
18 |
|
|
* @author n.hoffmann
|
19 |
|
|
* @since Aug 5, 2010
|
20 |
|
|
* @deprecated use ITermNodeService instead
|
21 |
|
|
*/
|
22 |
|
|
@Deprecated
|
23 |
|
|
public interface IFeatureNodeService extends IVersionableService<TermNode>{
|
24 |
|
|
|
25 |
|
|
DeleteResult isDeletable(UUID nodeUuid, TermNodeDeletionConfigurator config);
|
26 |
|
|
|
27 |
|
|
DeleteResult deleteFeatureNode(UUID nodeUuid, TermNodeDeletionConfigurator config);
|
28 |
|
|
|
29 |
|
|
|
30 |
|
|
|
31 |
|
|
/**
|
32 |
|
|
* Adds the specified feature as a child node to the given feature node
|
33 |
|
|
* @param parentNodeUUID the UUID of the feature node where the new feature should be added
|
34 |
|
|
* @param termChildUuid the UUID of the term which should be added to the given feature node
|
35 |
|
|
* @return the result of the operation
|
36 |
|
|
*/
|
37 |
|
|
public UpdateResult addChildFeatureNode(UUID parentNodeUUID, UUID termChildUuid);
|
38 |
|
|
|
39 |
|
|
/**
|
40 |
|
|
* Adds the specified feature as a child node to the given feature node at the given position
|
41 |
|
|
* @param parentNodeUUID the UUID of the feature node where the new feature should be added
|
42 |
|
|
* @param termChildUuid the UUID of the term which should be added to the given feature node
|
43 |
|
|
* @param position the position where the child node should be added
|
44 |
|
|
* @return the result of the operation
|
45 |
|
|
*/
|
46 |
|
|
public UpdateResult addChildFeatureNode(UUID parentNodeUUID, UUID termChildUuid, int position);
|
47 |
|
|
|
48 |
|
|
/**
|
49 |
|
|
* Moves a given {@link TermNode} to the target node at the given position;
|
50 |
|
|
* @param movedNodeUuid the node to move
|
51 |
|
|
* @param targetNodeUuid the target node
|
52 |
|
|
* @param position the position in the list of children of the target node
|
53 |
|
|
* @return the result of the operation
|
54 |
|
|
*/
|
55 |
|
|
public UpdateResult moveFeatureNode(UUID movedNodeUuid, UUID targetNodeUuid, int position);
|
56 |
|
|
|
57 |
|
|
/**
|
58 |
|
|
* Moves a given {@link TermNode} to the target node;
|
59 |
|
|
* @param movedNodeUuid the node to move
|
60 |
|
|
* @param targetNodeUuid the target node
|
61 |
|
|
* @return the result of the operation
|
62 |
|
|
*/
|
63 |
|
|
public UpdateResult moveFeatureNode(UUID movedNodeUuid, UUID targetNodeUuid);
|
64 |
|
|
|
65 |
df35ccb3
|
Katja Luther
|
|
66 |
|
|
|
67 |
|
|
|
68 |
2f72f4da
|
Andreas Müller
|
}
|