FINERACT-1717:eliminate boilerpalate getter methods within JsonCommand class
This commit is contained in:
+1
-1
@@ -36,6 +36,6 @@ public class CreateDatatableEntryCommandHandler implements NewCommandSourceHandl
|
||||
@Override
|
||||
public CommandProcessingResult processCommand(final JsonCommand command) {
|
||||
|
||||
return writePlatformService.createNewDatatableEntry(command.entityName(), command.entityId(), command);
|
||||
return writePlatformService.createNewDatatableEntry(command.getEntityName(), command.entityId(), command);
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -39,6 +39,6 @@ public class DeleteOneToManyDatatableEntryCommandHandler implements NewCommandSo
|
||||
@Transactional
|
||||
@Override
|
||||
public CommandProcessingResult processCommand(final JsonCommand command) {
|
||||
return this.writePlatformService.deleteDatatableEntry(command.entityName(), command.entityId(), command.subentityId(), command);
|
||||
return this.writePlatformService.deleteDatatableEntry(command.getEntityName(), command.entityId(), command.subentityId(), command);
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -39,6 +39,6 @@ public class DeleteOneToOneDatatableEntryCommandHandler implements NewCommandSou
|
||||
@Transactional
|
||||
@Override
|
||||
public CommandProcessingResult processCommand(final JsonCommand command) {
|
||||
return this.writePlatformService.deleteDatatableEntries(command.entityName(), command.entityId(), command);
|
||||
return this.writePlatformService.deleteDatatableEntries(command.getEntityName(), command.entityId(), command);
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -40,7 +40,7 @@ public class UpdateOneToManyDatatableEntryCommandHandler implements NewCommandSo
|
||||
@Override
|
||||
public CommandProcessingResult processCommand(final JsonCommand command) {
|
||||
|
||||
return this.writePlatformService.updateDatatableEntryOneToMany(command.entityName(), command.entityId(), command.subentityId(),
|
||||
return this.writePlatformService.updateDatatableEntryOneToMany(command.getEntityName(), command.entityId(), command.subentityId(),
|
||||
command);
|
||||
|
||||
}
|
||||
|
||||
+2
-2
@@ -41,8 +41,8 @@ public class UpdateOneToOneDatatableEntryCommandHandler implements NewCommandSou
|
||||
@Override
|
||||
public CommandProcessingResult processCommand(final JsonCommand command) {
|
||||
|
||||
final CommandProcessingResult commandProcessingResult = this.writePlatformService.updateDatatableEntryOneToOne(command.entityName(),
|
||||
command.entityId(), command);
|
||||
final CommandProcessingResult commandProcessingResult = this.writePlatformService
|
||||
.updateDatatableEntryOneToOne(command.getEntityName(), command.entityId(), command);
|
||||
|
||||
return new CommandProcessingResultBuilder() //
|
||||
.withCommandId(command.commandId()) //
|
||||
|
||||
+1
-1
@@ -44,6 +44,6 @@ public class FullFilSurveyCommandHandler implements NewCommandSourceHandler {
|
||||
@Override
|
||||
public CommandProcessingResult processCommand(final JsonCommand command) {
|
||||
|
||||
return this.writePlatformService.fullFillSurvey(command.entityName(), command.entityId(), command);
|
||||
return this.writePlatformService.fullFillSurvey(command.getEntityName(), command.entityId(), command);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user