Class BTEncodedNoteUpdate
java.lang.Object
overit.geocall.bl.BusinessTask<EncodedNoteUpdateEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<EncodedNoteUpdateEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask<EncodedNoteUpdateEvent>
overit.geocallapp.wfm.execution.bl.encodednote.task.BTEncodedNoteUpdate
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(EncodedNoteUpdateEvent.class)
public class BTEncodedNoteUpdate
extends ValidPermissionBusinessTask<EncodedNoteUpdateEvent>
Business task in order to update a
Required fields:
BOEncodedNote.Required fields:
- description
Error Code:
Codes.MISSING_REQUIRED_MULTILANGUAGE_VALUES: Missing required multilanguage values for the property descriptionCodes.CODE_ALREADY_DEFINED:Code already definedCodes.PROPERTY_REQUIRED: Property code is required.
- Since:
- 18.0
- 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 voidcheckUniqueCode(BOEncodedNote encodedNote, PoolKit poolKit) Verifies that the code of the given encoded note is unique.protected voidexecute(EncodedNoteUpdateEvent event, PoolKit poolKit) Updates a newBOEncodedNotewith all its needed components.booleanDetermines whether the current state is valid for execution.protected voidvalidate(BOEncodedNote encodedNote, PoolKit poolKit) Checks if the update is possible by performing some validations on the givenBOEncodedNoteMethods 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
-
BTEncodedNoteUpdate
public BTEncodedNoteUpdate()
-
-
Method Details
-
execute
protected void execute(EncodedNoteUpdateEvent event, PoolKit poolKit) throws DAException, DAValidateException Updates a newBOEncodedNotewith all its needed components.- Specified by:
executein classValidExecutionBusinessTask<EncodedNoteUpdateEvent>- Parameters:
event- theEncodedNoteUpdateEventpoolKit- thePoolKit- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
validate
protected void validate(BOEncodedNote encodedNote, PoolKit poolKit) throws DAValidateException, DAException Checks if the update is possible by performing some validations on the givenBOEncodedNote- Parameters:
encodedNote- theBOEncodedNotepoolKit- thePoolKit- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
checkUniqueCode
protected void checkUniqueCode(BOEncodedNote encodedNote, PoolKit poolKit) throws DAValidateException, DAException Verifies that the code of the given encoded note is unique.- Parameters:
encodedNote- theBOEncodedNoteto checkpoolKit- thePoolKit- Throws:
DAValidateException- the DA validate exceptionDAException- the DA 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
-