Class BTWebResourceLoad
java.lang.Object
overit.geocall.bl.BusinessTask<WebResourceLoadEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<WebResourceLoadEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask<WebResourceLoadEvent>
overit.geocallapp.docshare.documents.bl.sharedresource.file.webresource.task.BTWebResourceLoad
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(WebResourceLoadEvent.class)
public class BTWebResourceLoad
extends ValidPermissionBusinessTask<WebResourceLoadEvent>
Business task to load the
When the
WebResource related to a BOFile. When the
WebResourceLoadEvent is launched
the BT notices the call and loads the WebResource based on the event's input. Error Code:
- Since:
- 14.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(WebResourceLoadEvent event, PoolKit poolKit) Writes the loaded web resource into the event journal.booleanDetermines whether the current state is valid for execution.protected BOFileloadFileByVersion(String fileUuid, Long version, PoolKit poolKit) Loads the file based on the given uuid and version.protected BOFileloadMainVersionFile(String fileUuid, PoolKit poolKit) Loads the main version of the file.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
-
BTWebResourceLoad
public BTWebResourceLoad()
-
-
Method Details
-
loadMainVersionFile
protected BOFile loadMainVersionFile(String fileUuid, PoolKit poolKit) throws DAValidateException, DAException Loads the main version of the file.- Parameters:
fileUuid- theBOFileuuidpoolKit- thePoolKit- Returns:
- the loaded
BOFile - Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
loadFileByVersion
protected BOFile loadFileByVersion(String fileUuid, Long version, PoolKit poolKit) throws DAValidateException, DAException Loads the file based on the given uuid and version.- Parameters:
fileUuid- theBOFileuuidversion- the versionpoolKit- thePoolKit- Returns:
- the loaded
BOFile - 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