Class BTMunicipalityLoad
java.lang.Object
overit.geocall.bl.BusinessTask<MunicipalityLoadEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<MunicipalityLoadEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask<MunicipalityLoadEvent>
overit.geocallapp.wfm.core.bl.location.municipality.task.BTMunicipalityLoad
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(MunicipalityLoadEvent.class)
public class BTMunicipalityLoad
extends ValidPermissionBusinessTask<MunicipalityLoadEvent>
Business task in order to load a
When the
BOMunicipality. When the
MunicipalityLoadEvent is launched the BT notices the call
and loads the BOMunicipality basing on the event's input. Required fields:
- municipality id
Permission:
WfmPermissions.FSM_CORE_STRUCTURE_VIEWORWfmPermissions.FSM_CORE_STRUCTURE_EDIT
- Since:
- 9.2
- See Also:
- GCApi:
- task
-
Field Summary
Fields inherited from class overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask
LOG -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidexecute(MunicipalityLoadEvent event, PoolKit pk) Writes the loaded municipality into the event journal.booleanDetermines whether the current state is valid for execution.Methods inherited from class overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask
checkValidExecution, getException, throwExceptionIfInvalidMethods inherited from class overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask
body, getEventMethods inherited from class overit.geocall.bl.BusinessTask
start, start, startAlone, startInBackground
-
Constructor Details
-
BTMunicipalityLoad
public BTMunicipalityLoad()
-
-
Method Details
-
execute
protected void execute(MunicipalityLoadEvent event, PoolKit pk) throws DAException, DAValidateException Writes the loaded municipality into the event journal.- Specified by:
executein classValidExecutionBusinessTask<MunicipalityLoadEvent>- Parameters:
event- theMunicipalityLoadEventpk- thePoolKit- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
isValidExecution
public boolean isValidExecution()Description copied from interface:ValidExecutionDetermines whether the current state is valid for execution.- Returns:
- true if execution is valid, false otherwise
-