Class BTTechnicalObjectSave
java.lang.Object
overit.geocall.bl.BusinessTask<TechnicalObjectSaveEvent>
overit.geocallapp.wfm.core.soap.technicalobjects.technicalobject.v1.task.BTTechnicalObjectSave
- All Implemented Interfaces:
Serializable,Tool
@Event(TechnicalObjectSaveEvent.class)
public class BTTechnicalObjectSave
extends BusinessTask<TechnicalObjectSaveEvent>
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbody(TechnicalObjectSaveEvent event, PoolKit poolKit) Implements this method to write the specific task logic to handle the input parameter.protected voidcheckHierarchy(BOTechnicalObjectHeader header, PoolKit poolKit) protected booleanprotected voidevaluateRAGRules(TechnicalObject technicalObject, PoolKit poolKit) protected BOAddressgetExistingAddress(Long technicalObjectAddressId, PoolKit poolKit) protected List<BOTechnicalObjectFeatureValue> getExistingFeatureValues(Long technicalObjectId, PoolKit poolKit) protected TechnicalObjectgetExistingTechnicalObject(Long id, PoolKit poolKit) protected HashGettergetTechnicalObjectRawData(TechnicalObject technicalObject) protected LonginsertTechnicalObject(TechnicalObject technicalObject, List<BOTechnicalObjectFeatureValue> featureValues, PoolKit poolKit) protected booleanisAddressChanged(BOAddress address, PoolKit poolKit) protected voidnormalizeAddress(BOAddress technicalObjectAddress, PoolKit poolKit) protected List<BOTechnicalObjectFeatureValue> prepareFeatureValues(TechnicalObjectSaveInput input, PoolKit poolKit) protected voidsaveTecnicalObject(TechnicalObjectSaveInput input, PoolKit poolKit) protected voidupdateTecnicalObject(TechnicalObjectSaveInput input, PoolKit poolKit) Methods inherited from class overit.geocall.bl.BusinessTask
start, start, startAlone, startInBackground
-
Constructor Details
-
BTTechnicalObjectSave
public BTTechnicalObjectSave()
-
-
Method Details
-
body
protected void body(TechnicalObjectSaveEvent event, PoolKit poolKit) throws DAException, DAValidateException Description copied from class:BusinessTaskImplements this method to write the specific task logic to handle the input parameter.- Specified by:
bodyin classBusinessTask<TechnicalObjectSaveEvent>- Parameters:
event- the object upon which the task will works onpoolKit- the poolkit containing the reference to the database connection that can be used- Throws:
DAException- in case of database errorDAValidateException- in case of database validation error
-
normalizeAddress
protected void normalizeAddress(BOAddress technicalObjectAddress, PoolKit poolKit) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-
isAddressChanged
protected boolean isAddressChanged(BOAddress address, PoolKit poolKit) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
getExistingAddress
protected BOAddress getExistingAddress(Long technicalObjectAddressId, PoolKit poolKit) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
saveTecnicalObject
protected void saveTecnicalObject(TechnicalObjectSaveInput input, PoolKit poolKit) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
insertTechnicalObject
protected Long insertTechnicalObject(TechnicalObject technicalObject, List<BOTechnicalObjectFeatureValue> featureValues, PoolKit poolKit) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
updateTecnicalObject
protected void updateTecnicalObject(TechnicalObjectSaveInput input, PoolKit poolKit) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
checkHierarchy
protected void checkHierarchy(BOTechnicalObjectHeader header, PoolKit poolKit) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
getExistingTechnicalObject
protected TechnicalObject getExistingTechnicalObject(Long id, PoolKit poolKit) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
prepareFeatureValues
protected List<BOTechnicalObjectFeatureValue> prepareFeatureValues(TechnicalObjectSaveInput input, PoolKit poolKit) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
getExistingFeatureValues
protected List<BOTechnicalObjectFeatureValue> getExistingFeatureValues(Long technicalObjectId, PoolKit poolKit) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
evaluateRAGRules
protected void evaluateRAGRules(TechnicalObject technicalObject, PoolKit poolKit) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-
enableUpdateRAGEvaluation
protected boolean enableUpdateRAGEvaluation() -
getTechnicalObjectRawData
-