Class GisOfflinePackageService
java.lang.Object
overit.geocallapp.utilities.rs.common.PrivateService
overit.geocallapp.wfm.core.rs5.gis.offline.GisOfflinePackageService
@RestController
@RequestMapping("core/r5/gisofflinepackages")
@Resource(logging=true)
public class GisOfflinePackageService
extends PrivateService
Service to manage the gis offline pacakges.
- Since:
- 19.0
- GCApi:
- rest
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected overit.geocallapp.docshare.docsharing.services.ResourceService -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected overit.geocallapp.docshare.docsharing.services.ResourceServiceReturns an instance of theResourceService.protected BOGisOfflinePackageloadActiveGisOfflinePackage(Long externalId) Loads theBOGisOfflinePackagewhich corresponds to the given external id.protected overit.geocallapp.docshare.docsharing.model.ResourcesaveOfflinePackage(BOGisOfflinePackage gisPackage, @NotNull DTOGisFileUploadRequest dto) Calls theGisOfflinePackageSaveFileEventin order to create a new versions of the gis file that is going to be uploaded.org.springframework.http.ResponseEntity<Void> updateGisFileUploadOutcome(@Valid DTOGisFileUploadOutcome dtoOutcome) Retrieve the outcome of the Gis file upload.org.springframework.http.ResponseEntity<DTOGisFileUploadUrl> uploadGisFile(@Valid DTOGisFileUploadRequest dtoRequest) Retrieve the pre-signed url for the Gis file upload.
-
Field Details
-
resourceService
protected overit.geocallapp.docshare.docsharing.services.ResourceService resourceService
-
-
Constructor Details
-
GisOfflinePackageService
public GisOfflinePackageService()
-
-
Method Details
-
uploadGisFile
@PostMapping(value="actions/uploadGisFile", consumes="application/json", produces="application/json") public org.springframework.http.ResponseEntity<DTOGisFileUploadUrl> uploadGisFile(@Valid @RequestBody @Valid DTOGisFileUploadRequest dtoRequest) throws DAValidateException, DAException Retrieve the pre-signed url for the Gis file upload.- Parameters:
dtoRequest- the dto request- Returns:
- the response containing the gis file upload url
- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
updateGisFileUploadOutcome
@PostMapping(value="actions/gisFileUploadOutcome", consumes="application/json", produces="application/json") public org.springframework.http.ResponseEntity<Void> updateGisFileUploadOutcome(@Valid @RequestBody @Valid DTOGisFileUploadOutcome dtoOutcome) throws DAValidateException, DAException Retrieve the outcome of the Gis file upload.- Parameters:
dtoOutcome- the information about the upload outcome- Returns:
- the DTO response
- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
loadActiveGisOfflinePackage
protected BOGisOfflinePackage loadActiveGisOfflinePackage(Long externalId) throws DAValidateException, DAException Loads theBOGisOfflinePackagewhich corresponds to the given external id.- Parameters:
externalId- theBOGisOfflinePackageexternal id- Returns:
- the loaded
BOGisOfflinePackage - Throws:
DAValidateExceptionDAException
-
saveOfflinePackage
protected overit.geocallapp.docshare.docsharing.model.Resource saveOfflinePackage(BOGisOfflinePackage gisPackage, @NotNull @NotNull DTOGisFileUploadRequest dto) throws DAValidateException, DAException Calls theGisOfflinePackageSaveFileEventin order to create a new versions of the gis file that is going to be uploaded.- Parameters:
gisPackage- the currentBOGisOfflinePackagedto- the input information- Returns:
- the created
Resource - Throws:
DAValidateExceptionDAException
-
getResourceService
protected 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
-