use of org.jboss.pnc.dto.User in project pnc by project-ncl.
the class BuildConfigurationProviderImpl method store.
@Override
public BuildConfiguration store(BuildConfiguration restEntity) throws DTOValidationException {
validateBeforeSaving(restEntity);
Long id = sequenceHandlerRepository.getNextID(org.jboss.pnc.model.BuildConfiguration.SEQUENCE_NAME);
org.jboss.pnc.model.User currentUser = userService.currentUser();
User user = userMapper.toDTO(currentUser);
return super.store(restEntity.toBuilder().id(id.toString()).creationUser(user).modificationUser(user).build(), false);
}
Aggregations