Project

General

Profile

« Previous | Next » 

Revision 815a9015

Added by Katja Luther about 6 years ago

adapted deleteResult

View differences:

cdmlib-services/src/main/java/eu/etaxonomy/cdm/api/service/GroupServiceImpl.java
63 63
        return users;
64 64
    }
65 65

  
66

  
66 67
    @Override
67 68
    @Transactional(readOnly=false)
68 69
    public void deleteGroup(String groupUUID) {
......
218 219
    public DeleteResult delete(UUID groupUUID ){
219 220

  
220 221
       String groupUUIDString = groupUUID.toString();
222
       Group group = dao.findByUuid(groupUUID);
221 223
       //org.springframework.security.provisioning.GroupManager#deleteGroup needs a string argument
222
        this.deleteGroup(groupUUIDString);
224
       this.deleteGroup(groupUUIDString);
225
       DeleteResult result = new DeleteResult();
226
       result.addDeletedObject(group);
223 227
        //there is no feedback from the deleteGroup method...
224
        return new DeleteResult();
228
        return result;
225 229
    }
226 230

  
227 231
    @Override

Also available in: Unified diff