Class BTGisOfflinePackageSaveFile
java.lang.Object
overit.geocall.bl.BusinessTask<GisOfflinePackageSaveFileEvent>
overit.geocallapp.wfm.core.bl.gis.offline.task.BTGisOfflinePackageSaveFile
- All Implemented Interfaces:
Serializable,Tool
@Event(GisOfflinePackageSaveFileEvent.class)
public class BTGisOfflinePackageSaveFile
extends BusinessTask<GisOfflinePackageSaveFileEvent>
Business task in order to save a file in the given
When the
BOGisOfflinePackage. When the
GisOfflinePackageSaveFileEvent is launched the BT notices
the call and saves the file in the BOGisOfflinePackage basing on the
event's input. Error Code:
Codes.C270_1556: Feature value not valid
- Since:
- 12.0
- See Also:
- GCApi:
- task
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Stringprotected overit.geocallapp.docshare.docsharing.services.ResourceService -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbody(GisOfflinePackageSaveFileEvent event, PoolKit pk) It saves the uploaded file as aResourcerelated to the currentBOGisOfflinePackage.protected overit.geocallapp.docshare.docsharing.model.ResourceCreates a newResourcewith the given information related to the currentBOGisOfflinePackage.protected overit.geocallapp.docshare.docsharing.model.ResourceCreates a new version for the loadedResourcethat is related to the currentBOGisOfflinePackage.overit.geocallapp.docshare.docsharing.services.ResourceServiceReturns an instance of theResourceService.protected HashGetterinitializeResource(String fileName) Initializes theResourcewith the given file name and extension.protected BOGisOfflinePackageloadGisOfflinePackage(GisOfflinePackageSaveFileInput input, overit.geocallapp.docshare.docsharing.model.Resource resource, PoolKit pk) Loads theBOGisOfflinePackagerelated to the given id.protected voidupdateOfflinePackage(GisOfflinePackageSaveFileInput input, overit.geocallapp.docshare.docsharing.model.Resource resource, PoolKit pk) Updates theBOGisOfflinePackagewith the information of the just createdResource.Methods inherited from class overit.geocall.bl.BusinessTask
start, start, startAlone, startInBackground
-
Field Details
-
BASE_DIRECTORY
- See Also:
-
resourceService
protected overit.geocallapp.docshare.docsharing.services.ResourceService resourceService
-
-
Constructor Details
-
BTGisOfflinePackageSaveFile
public BTGisOfflinePackageSaveFile()
-
-
Method Details
-
body
protected void body(GisOfflinePackageSaveFileEvent event, PoolKit pk) throws DAException, DAValidateException It saves the uploaded file as aResourcerelated to the currentBOGisOfflinePackage.- Specified by:
bodyin classBusinessTask<GisOfflinePackageSaveFileEvent>- Parameters:
event- theGisOfflinePackageSaveFileEventpk- thePoolKit- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
createNewResource
protected overit.geocallapp.docshare.docsharing.model.Resource createNewResource(GisOfflinePackageSaveFileInput input) throws DAValidateException, DAException Creates a newResourcewith the given information related to the currentBOGisOfflinePackage.- Parameters:
input- theGisOfflinePackageSaveFileInput- Returns:
- the created
Resource - Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
createNewResourceVersion
protected overit.geocallapp.docshare.docsharing.model.Resource createNewResourceVersion(GisOfflinePackageSaveFileInput input) throws DAValidateException, DAException Creates a new version for the loadedResourcethat is related to the currentBOGisOfflinePackage.- Parameters:
input- theGisOfflinePackageSaveFileInput- Returns:
- the created
Resourceversion - Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
initializeResource
Initializes theResourcewith the given file name and extension.- Parameters:
fileName- the file name given as input, which contains also the file extension- Returns:
- the map containing the initialized resource data
- Throws:
DAValidateException
-
getResourceService
public overit.geocallapp.docshare.docsharing.services.ResourceService getResourceService() throws DAException, DAValidateExceptionReturns an instance of theResourceService.- Returns:
- the instantiated
ResourceService - Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-