Project

General

Profile

« Previous | Next » 

Revision 57fd518b

Added by Katja Luther about 3 years ago

fix #8968: add created by column to bulk editor

View differences:

eu.etaxonomy.taxeditor.bulkeditor/src/main/java/eu/etaxonomy/taxeditor/bulkeditor/input/AbstractBulkEditorInput.java
62 62
    private static final String TYPE_PROPERTY = Messages.BulkEditorE4_TYPE;
63 63
    private static final String ID_PROPERTY = "Id"; //$NON-NLS-1$
64 64
    private static final String UUID_PROPERTY = "Uuid"; //$NON-NLS-1$
65
    private static final String CREATED_BY_PROPERTY = "Created by"; //$NON-NLS-1$
65 66

  
66 67
	private UUID entityUuid;
67 68

  
......
141 142
        properties.add(TYPE_PROPERTY);
142 143
        properties.add(ID_PROPERTY);
143 144
        properties.add(UUID_PROPERTY);
145
        properties.add(CREATED_BY_PROPERTY);
144 146
        return properties;
145 147
    }
146 148

  
......
164 166
        else if(property.equals(ID_PROPERTY)){
165 167
            return cdmBase.getId();
166 168
        }
169
        else if(property.equals(CREATED_BY_PROPERTY)){
170
            if (cdmBase.getCreatedBy() != null){
171
                return cdmBase.getCreatedBy().getUsername();
172
            } else {
173
                return null;
174
            }
175
        }
167 176
        return null;
168 177
    }
169 178

  

Also available in: Unified diff