Class BTDataCollectionTemplateWorkingCopySave
java.lang.Object
overit.geocall.bl.BusinessTask<DataCollectionTemplateWorkingCopySaveEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<DataCollectionTemplateWorkingCopySaveEvent>
overit.geocallapp.wfm.mobileforms.bl.task.BTDataCollection<DataCollectionTemplateWorkingCopySaveEvent>
overit.geocallapp.wfm.mobileforms.bl.template.task.BTDataCollectionTemplateSave<DataCollectionTemplateWorkingCopySaveEvent>
overit.geocallapp.wfm.mobileforms.bl.template.workingcopy.task.BTDataCollectionTemplateWorkingCopySave
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(DataCollectionTemplateWorkingCopySaveEvent.class)
public class BTDataCollectionTemplateWorkingCopySave
extends BTDataCollectionTemplateSave<DataCollectionTemplateWorkingCopySaveEvent>
Business task in order to save a
When the
DataCollectionTemplateWorkingCopy. When the
DataCollectionTemplateWorkingCopySaveEvent is launched
the BT notices the call and saves the DataCollectionTemplateWorkingCopy basing on the event's input. Visibility:
- templates 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 static voidcollectClassFields(Class<?> objectClass, List<Field> fieldsCollector) Collects the class fields.protected static voidcollectLocalizedStrings(Object object, List<LocalizedString> valuesCollector) Collects the localized strings.protected voidexecute(DataCollectionTemplateWorkingCopySaveEvent event, PoolKit poolKit) Saves the working copy.protected static booleannotBaseClass(Class<?> objectClass) Checks if it is not base class.Methods inherited from class overit.geocallapp.wfm.mobileforms.bl.template.task.BTDataCollectionTemplateSave
alignExpressionsEvaluationOrder, checkCodeUniqueness, checkNodes, executeSave, isValidExecution, updateNodesIds, upsert, upsertStructure, validateGlobalExpressions, validateNodeConstraints, validateTemplateHeader, validateTemplateStructureMethods 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
-
BTDataCollectionTemplateWorkingCopySave
public BTDataCollectionTemplateWorkingCopySave()
-
-
Method Details
-
execute
protected void execute(DataCollectionTemplateWorkingCopySaveEvent event, PoolKit poolKit) throws DAException, DAValidateException Saves the working copy.- Specified by:
executein classValidExecutionBusinessTask<DataCollectionTemplateWorkingCopySaveEvent>- Parameters:
event- theDataCollectionTemplateWorkingCopySaveEventpoolKit- thePoolKit- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
collectLocalizedStrings
Collects the localized strings.- Parameters:
object- theObjectvaluesCollector- list of localized string elements
-
notBaseClass
Checks if it is not base class.- Parameters:
objectClass- the object class- Returns:
- true, if successful
-
collectClassFields
Collects the class fields.- Parameters:
objectClass- the object classfieldsCollector- list of field elements
-