Class BTDataCollectionTemplateInsert
java.lang.Object
overit.geocall.bl.BusinessTask<DataCollectionTemplateInsertEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<DataCollectionTemplateInsertEvent>
overit.geocallapp.wfm.mobileforms.bl.task.BTDataCollection<DataCollectionTemplateInsertEvent>
overit.geocallapp.wfm.mobileforms.bl.template.task.BTDataCollectionTemplateInsert
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(DataCollectionTemplateInsertEvent.class)
public class BTDataCollectionTemplateInsert
extends BTDataCollection<DataCollectionTemplateInsertEvent>
Business task in order to insert a
When the
DataCollectionTemplate. When the
DataCollectionTemplateInsertEvent is launched the BT notices the call and inserts the
DataCollectionTemplate basing on the event's input. Permission:
Visibility:
- template structures that belong to the same current user's operation center
- working copies that belong to the same current user's operation center
- Since:
- 12.0
- See Also:
- GCApi:
- task
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidexecute(DataCollectionTemplateInsertEvent event, PoolKit poolKit) Inserts a new data collection template.booleanChecks if is valid execution.protected voidvalidate(DataCollectionTemplateInsertInput input, PoolKit poolKit) Validates the template insert input.Methods inherited from class overit.geocallapp.wfm.mobileforms.bl.task.BTDataCollection
getException, throwExceptionIfInvalidMethods inherited from class overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask
body, checkValidExecution, getEventMethods inherited from class overit.geocall.bl.BusinessTask
start, start, startAlone, startInBackground
-
Constructor Details
-
BTDataCollectionTemplateInsert
public BTDataCollectionTemplateInsert()
-
-
Method Details
-
isValidExecution
public boolean isValidExecution()Checks if is valid execution.- Specified by:
isValidExecutionin interfaceValidExecution- Overrides:
isValidExecutionin classBTDataCollection<DataCollectionTemplateInsertEvent>- Returns:
- true, if is valid execution
-
execute
protected void execute(DataCollectionTemplateInsertEvent event, PoolKit poolKit) throws DAException, DAValidateException Inserts a new data collection template.- Specified by:
executein classValidExecutionBusinessTask<DataCollectionTemplateInsertEvent>- Parameters:
event- theDataCollectionTemplateInsertEventpoolKit- thePoolKit- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
validate
protected void validate(DataCollectionTemplateInsertInput input, PoolKit poolKit) throws DAException, DAValidateException Validates the template insert input.- Parameters:
input- theDataCollectionTemplateInsertInputpoolKit- thePoolKit- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-