Class BTValidAssetStatusSearch
java.lang.Object
overit.geocall.bl.BusinessTask<ValidAssetStatusSearchEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<ValidAssetStatusSearchEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask<ValidAssetStatusSearchEvent>
overit.geocallapp.wfm.assets.bl.status.task.BTValidAssetStatusSearch
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(ValidAssetStatusSearchEvent.class)
public class BTValidAssetStatusSearch
extends ValidPermissionBusinessTask<ValidAssetStatusSearchEvent>
Business task in order to load the
When the
BOAssetStatus valid for the asset type When the
ValidAssetStatusSearchEvent is launched the BT notices the call and loads all the BOAssetStatus basing on the event's input. Required fields:
- Asset Type id
Permission:
Error Code:
- Since:
- 17.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 voidexecute(ValidAssetStatusSearchEvent event, PoolKit poolKit) Writes the loaded asset status into the event journal.protected Collection<BOAssetTypeAdmittedStatus> getAdmittedStatus(Long assetType, PoolKit poolKit) protected PageResponse<BOAssetStatus> getValidAssetStatus(Collection<Long> validStatusIds, Page page, PoolKit poolKit) booleanDetermines whether the current state is valid for execution.protected voidvalidate(ValidAssetStatusSearchFilter filter) 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
-
BTValidAssetStatusSearch
public BTValidAssetStatusSearch()
-
-
Method Details
-
execute
protected void execute(ValidAssetStatusSearchEvent event, PoolKit poolKit) throws DAException, DAValidateException Writes the loaded asset status into the event journal.- Specified by:
executein classValidExecutionBusinessTask<ValidAssetStatusSearchEvent>- Parameters:
event- theValidAssetStatusSearchEventpoolKit- thePoolKit- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
validate
- Throws:
DAValidateException
-
getAdmittedStatus
protected Collection<BOAssetTypeAdmittedStatus> getAdmittedStatus(Long assetType, PoolKit poolKit) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-
getValidAssetStatus
protected PageResponse<BOAssetStatus> getValidAssetStatus(Collection<Long> validStatusIds, Page page, PoolKit poolKit) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-
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
-