Project

General

Profile

Revision fe7208bf

IDfe7208bfaf75135598eb79a59561df870c66ee8a
Parent 9a130d1f
Child 1ac1ab0b

Added by Patrick Plitzner about 3 years ago

ref #6694 Fix typo in method name

View differences:

cdmlib-services/src/main/java/eu/etaxonomy/cdm/api/service/FeatureNodeServiceImpl.java
98 98
	 }
99 99

  
100 100
	 @Override
101
    public UpdateResult addChildFeaturNode(FeatureNode node, Feature featureChild){
102
	     return addChildFeaturNode(node.getUuid(), featureChild.getUuid());
103
	 }
104

  
105
	 @Override
106
    public UpdateResult addChildFeaturNode(UUID nodeUUID, UUID featureChildUuid){
107
	     FeatureNode node = load(nodeUUID);
108
	     Feature child = HibernateProxyHelper.deproxy(termService.load(featureChildUuid), Feature.class);
101
	 public UpdateResult addChildFeatureNode(FeatureNode node, Feature featureChild){
109 102
	     UpdateResult result = new UpdateResult();
110
	     FeatureNode childNode = FeatureNode.NewInstance(child);
103
	     FeatureNode childNode = FeatureNode.NewInstance(featureChild);
111 104
	     save(childNode);
112 105
	     node.addChild(childNode);
113 106
	     result.addUpdatedObject(node);
......
115 108
	 }
116 109

  
117 110
	 @Override
111
	 public UpdateResult addChildFeatureNode(UUID nodeUUID, UUID featureChildUuid){
112
	     FeatureNode node = load(nodeUUID);
113
	     Feature child = HibernateProxyHelper.deproxy(termService.load(featureChildUuid), Feature.class);
114
	     return addChildFeatureNode(node, child);
115
	 }
116

  
117
	 @Override
118 118
	 public DeleteResult isDeletable(FeatureNode node, FeatureNodeDeletionConfigurator config){
119 119
	     DeleteResult result = new DeleteResult();
120 120
	     Set<CdmBase> references = commonService.getReferencingObjectsForDeletion(node);
cdmlib-services/src/main/java/eu/etaxonomy/cdm/api/service/IFeatureNodeService.java
40 40

  
41 41
    /**
42 42
     * Adds the specified feature as a child node to the given feature node
43
     * @param node the feature node where the new feature should be added
43
     * @param parentNode the feature node where the new feature should be added
44 44
     * @param featureChild the feature which should be added to the given feature node
45 45
     * @return the result of the operation
46 46
     */
47
    public UpdateResult addChildFeaturNode(FeatureNode node, Feature featureChild);
47
    public UpdateResult addChildFeatureNode(FeatureNode parentNode, Feature featureChild);
48 48

  
49 49
    /**
50 50
     * Adds the specified feature as a child node to the given feature node
51
     * @param nodeUUID the UUID of the feature node where the new feature should be added
51
     * @param parentNodeUUID the UUID of the feature node where the new feature should be added
52 52
     * @param featureChildUuid the UUID of the feature which should be added to the given feature node
53 53
     * @return the result of the operation
54 54
     */
55
    public UpdateResult addChildFeaturNode(UUID nodeUUID, UUID featureChildUuid);
55
    public UpdateResult addChildFeatureNode(UUID parentNodeUUID, UUID featureChildUuid);
56 56

  
57 57
    /**
58 58
     * Moves a given {@link FeatureNode} to the target node at the given position;

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)