Class BTFeatureUpdate
java.lang.Object
overit.geocall.bl.BusinessTask<FeatureUpdateEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<FeatureUpdateEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask<FeatureUpdateEvent>
overit.geocallapp.wfm.core.bl.features.feature.task.BTFeatureUpdate
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(FeatureUpdateEvent.class)
public class BTFeatureUpdate
extends ValidPermissionBusinessTask<FeatureUpdateEvent>
Business task in order to update a
When the
BOFeature. When the
FeatureUpdateEvent is launched the BT notices the call and
updates the BOFeature basing on the event's input. Required fields:
- feature id
Permission:
Error Code:
Codes.INVALID_PROPERTY_VALUE: Invalid value for property data type, feature class or value typeCodes.MISSING_REQUIRED_MULTILANGUAGE_VALUES: Missing required multilanguage values for the property description, data type, feature class or value type
- 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(FeatureUpdateEvent event, PoolKit pk) Updates a newBOFeaturewith all its needed components.booleanDetermines whether the current state is valid for execution.protected voidMethods 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
-
BTFeatureUpdate
public BTFeatureUpdate()
-
-
Method Details
-
execute
protected void execute(FeatureUpdateEvent event, PoolKit pk) throws DAException, DAValidateException Updates a newBOFeaturewith all its needed components.- Specified by:
executein classValidExecutionBusinessTask<FeatureUpdateEvent>- Parameters:
event- theFeatureUpdateEventpk- 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
-
validate
- Throws:
DAValidateExceptionDAException
-