Class BTResourceInsert
java.lang.Object
overit.geocall.bl.BusinessTask<ResourceInsertEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<ResourceInsertEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask<ResourceInsertEvent>
overit.geocallapp.wfm.resources.bl.resource.task.BTResourceInsert
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(ResourceInsertEvent.class)
public class BTResourceInsert
extends ValidPermissionBusinessTask<ResourceInsertEvent>
Business task in order to insert a
When the
BOResource. When the
ResourceInsertEvent is launched the BT notices
the call and inserts the BOResource basing on the event's
input. Permission:
Error Code:- Since:
- 16.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 voidcompleteResourceData(BOResource resource) Complete the resource's data with the required properties.protected voidexecute(ResourceInsertEvent event, PoolKit pk) Writes the inserted team member into the event journal.booleanDetermines whether the current state is valid for execution.protected voidnotifyInsert(BOResource resource, PoolKit poolKit) Notifies the insertion of the given resource.protected voidvalidate(BOResource resource, PoolKit pk) Checks if the insertion is possible by performing some validations on the givenBOResource.Methods 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
-
BTResourceInsert
public BTResourceInsert()
-
-
Method Details
-
execute
protected void execute(ResourceInsertEvent event, PoolKit pk) throws DAException, DAValidateException Writes the inserted team member into the event journal.- Specified by:
executein classValidExecutionBusinessTask<ResourceInsertEvent>- Parameters:
event- theResourceInsertEventpk- thePoolKit- Throws:
DAException- the DA exceptionDAValidateException- the DA validate 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
-
validate
Checks if the insertion is possible by performing some validations on the givenBOResource.- Parameters:
resource- the resourcepk- thePoolKit- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
completeResourceData
Complete the resource's data with the required properties.- Parameters:
resource- the input resource
-
notifyInsert
protected void notifyInsert(BOResource resource, PoolKit poolKit) throws DAValidateException, DAException Notifies the insertion of the given resource.- Parameters:
resource- the insertedBOResourcepoolKit- thePoolKit- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-