Project

General

Profile

« Previous | Next » 

Revision de3db973

Added by Patrick Plitzner over 5 years ago

ref #7502 code cleaning

View differences:

eu.etaxonomy.taxeditor.bulkeditor/src/main/java/eu/etaxonomy/taxeditor/bulkeditor/input/GroupEditorInput.java
40 40

  
41 41
	private static GroupEditorInput instance;
42 42

  
43
	/**
44
	 * @return the instance
45
	 */
46 43
	public static GroupEditorInput getInstance() {
47 44
		if(instance == null){
48 45
			instance = new GroupEditorInput();
......
61 58
		return BulkEditorInputType.GROUP.label;
62 59
	}
63 60

  
64
	/* (non-Javadoc)
65
	 * @see eu.etaxonomy.taxeditor.annotatedlineeditor.IEntityPersistenceService#save(java.lang.Object)
66
	 */
67 61
	@Override
68 62
	public Group save(Group entity) {
69 63
	    return CdmStore.getService(IGroupService.class).merge(entity, true).getMergedEntity();
70 64

  
71 65
	}
72 66

  
73
	/* (non-Javadoc)
74
	 * @see eu.etaxonomy.taxeditor.annotatedlineeditor.IEntityPersistenceService#delete(java.lang.Object)
75
	 */
76 67
	@Override
77 68
	public boolean delete(Group entity, DeleteConfiguratorBase config) throws ReferencedObjectUndeletableException {
78 69
		return CdmStore.getService(IGroupService.class).delete(entity.getUuid()) != null;
......
84 75
	    return CdmStore.getService(IGroupService.class).count(Group.class);
85 76
	}
86 77

  
87
	/* (non-Javadoc)
88
	 * @see eu.etaxonomy.taxeditor.bulkeditor.input.AbstractBulkEditorInput#listEntities(eu.etaxonomy.cdm.api.service.config.IIdentifiableEntityServiceConfigurator)
89
	 */
90 78
	@Override
91 79
	protected List<Group> listEntities(
92 80
			IIdentifiableEntityServiceConfigurator configurator) {
......
94 82
		return CdmStore.getSearchManager().findGroups(configurator);
95 83
	}
96 84

  
97
	/* (non-Javadoc)
98
	 * @see eu.etaxonomy.taxeditor.bulkeditor.input.AbstractBulkEditorInput#loadEntity(java.util.UUID)
99

  
100
	@Override
101
	protected Group loadEntity(UUID entityUuid) {
102
		List<String> propertyPaths = Arrays.asList(new String[]{});
103
		return CdmStore.getService(IGroupService.class).load(entityUuid, propertyPaths);
104
	}
105
*/
106
	/* (non-Javadoc)
107
	 * @see eu.etaxonomy.taxeditor.bulkeditor.input.AbstractBulkEditorInput#createEntityCreator()
108
	 */
109 85
	@Override
110 86
	protected IEntityCreator<Group> createEntityCreator() {
111 87
		return new GroupCreator();
112 88
	}
113 89

  
114
	/* (non-Javadoc)
115
	 * @see eu.etaxonomy.taxeditor.bulkeditor.input.AbstractBulkEditorInput#getText(eu.etaxonomy.cdm.model.common.ICdmBase)
116
	 */
117 90
	@Override
118 91
	public String getText(Group entity) {
119 92
		return entity.getName();
120 93
	}
121 94

  
122
    /* (non-Javadoc)
123
     * @see eu.etaxonomy.taxeditor.editor.CdmEntitySessionInput#merge()
124
     */
125 95
    @Override
126 96
    public void merge() {
127 97

  
......
138 108
        return new GroupNameComparator();
139 109
    }
140 110

  
141

  
142

  
143

  
144 111
}

Also available in: Unified diff