ItEr27S06CUAsignacionGrupoRecursosAPlanificacionItEr26S07: Renaming save method to the more correct "accept"
This commit is contained in:
parent
1810d92ae2
commit
491fc50940
4 changed files with 5 additions and 5 deletions
|
|
@ -51,7 +51,7 @@ public interface IResourceAllocationModel {
|
|||
/**
|
||||
* Save task
|
||||
*/
|
||||
void save();
|
||||
void accept();
|
||||
|
||||
/**
|
||||
* Starts the use case
|
||||
|
|
|
|||
|
|
@ -272,8 +272,8 @@ public class ResourceAllocationController extends GenericForwardComposer {
|
|||
resourcesList.getItems().clear();
|
||||
}
|
||||
|
||||
public void save() {
|
||||
resourceAllocationModel.save();
|
||||
public void accept() {
|
||||
resourceAllocationModel.accept();
|
||||
close();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -78,7 +78,7 @@ public class ResourceAllocationModel implements IResourceAllocationModel {
|
|||
|
||||
@Override
|
||||
@Transactional(readOnly = true)
|
||||
public void save() {
|
||||
public void accept() {
|
||||
planningState.reassociateResourcesWithSession(resourceDAO);
|
||||
removeDeletedAllocations();
|
||||
doTheAllocation();
|
||||
|
|
|
|||
|
|
@ -127,7 +127,7 @@
|
|||
</listbox>
|
||||
|
||||
<hbox>
|
||||
<button label="${i18n:_('Accept')}" onClick="allocationController.save()" />
|
||||
<button label="${i18n:_('Accept')}" onClick="allocationController.accept()" />
|
||||
<button label="${i18n:_('Apply')}" id="applyButton"/>
|
||||
<button label="${i18n:_('Cancel')}" onClick="allocationController.cancel()" />
|
||||
<button label="${i18n:_('Search resources...')}"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue