Class BTDataCollectionOptionsGroupImportModel
java.lang.Object
overit.geocall.bl.BusinessTask<CheckableEvent<DataCollectionOptionsGroupImportModelInput,Void>>
overit.geocallapp.utilities.core.bl.common.check.checkable.task.AbstractCheckableBusinessTask<DataCollectionOptionsGroupImportModelInput,Void>
overit.geocallapp.utilities.core.bl.common.check.checkable.task.ValidExecutionAbstractCheckableBusinessTask<DataCollectionOptionsGroupImportModelInput,Void>
overit.geocallapp.wfm.mobileforms.bl.task.BTDataCollectionCheckable<DataCollectionOptionsGroupImportModelInput,Void>
overit.geocallapp.wfm.mobileforms.bl.optionsgroup.task.BTDataCollectionOptionsGroupImportModel
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(DataCollectionOptionsGroupImportModelEvent.class)
public class BTDataCollectionOptionsGroupImportModel
extends BTDataCollectionCheckable<DataCollectionOptionsGroupImportModelInput,Void>
Business task in order to import a
When the
BODataCollectionOptionsGroup's model. When the
DataCollectionOptionsGroupImportModelEvent is launched
the BT notices the call and imports the BODataCollectionOptionsGroup model basing on the event's input. Required fields:
- option group id
- the file to upload
- Since:
- 12.0
- See Also:
- GCApi:
- task
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected List<CheckerEvent<?>> defineCheckerEvents(DataCollectionOptionsGroupImportModelInput input, PoolKit poolKit) Defines the checker events.protected VoidexecuteProcess(DataCollectionOptionsGroupImportModelInput input, PoolKit poolKit) Execute the import process and update the requiredBODataCollectionOptionsGroupwith the imported model.protected StringextractModel(String optionGroupModel) Extracts the model.protected BODataCollectionOptionsGrouploadOptionGroup(Long optionGroupId, PoolKit poolKit) Loads the requiredBODataCollectionOptionsGroup.Methods inherited from class overit.geocallapp.wfm.mobileforms.bl.task.BTDataCollectionCheckable
getException, isValidExecution, throwExceptionIfInvalidMethods inherited from class overit.geocallapp.utilities.core.bl.common.check.checkable.task.ValidExecutionAbstractCheckableBusinessTask
body, checkValidExecutionMethods inherited from class overit.geocallapp.utilities.core.bl.common.check.checkable.task.AbstractCheckableBusinessTask
buildOutputCheckResult, launchCheckerEvents, throwExceptionIfNecessary, validateMethods inherited from class overit.geocall.bl.BusinessTask
start, start, startAlone, startInBackground
-
Constructor Details
-
BTDataCollectionOptionsGroupImportModel
public BTDataCollectionOptionsGroupImportModel()
-
-
Method Details
-
executeProcess
protected Void executeProcess(DataCollectionOptionsGroupImportModelInput input, PoolKit poolKit) throws DAException, DAValidateException Execute the import process and update the requiredBODataCollectionOptionsGroupwith the imported model.- Specified by:
executeProcessin classAbstractCheckableBusinessTask<DataCollectionOptionsGroupImportModelInput,Void> - Parameters:
input- theDataCollectionOptionsGroupImportModelInputpoolKit- thePoolKit- Returns:
- the void
- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
defineCheckerEvents
protected List<CheckerEvent<?>> defineCheckerEvents(DataCollectionOptionsGroupImportModelInput input, PoolKit poolKit) throws DAException, DAValidateException Defines the checker events.- Specified by:
defineCheckerEventsin classAbstractCheckableBusinessTask<DataCollectionOptionsGroupImportModelInput,Void> - Parameters:
input- theDataCollectionOptionsGroupImportModelInputpoolKit- thePoolKit- Returns:
- a list of checker event elements of type CheckerEvent
- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception- See Also:
-
extractModel
Extracts the model.- Parameters:
optionGroupModel- the option group model- Returns:
- the string
-
loadOptionGroup
protected BODataCollectionOptionsGroup loadOptionGroup(Long optionGroupId, PoolKit poolKit) throws DAValidateException, DAException Loads the requiredBODataCollectionOptionsGroup.- Parameters:
optionGroupId- theBODataCollectionOptionsGrouppoolKit- thePoolKit- Returns:
- the BO data collection options group
- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-