Class DataCollectionResourceUtils
java.lang.Object
overit.geocallapp.wfm.mobileforms.bl.utils.DataCollectionResourceUtils
The Class that defines the data collection resource utils.
- Since:
- 12.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringprotected overit.geocallapp.docshare.docsharing.services.ResourceService -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic overit.geocallapp.docshare.docsharing.bl.ResourcecreateOrLoadFolder(overit.geocallapp.docshare.docsharing.bl.ResourceManager rm, overit.geocallapp.docshare.docsharing.bl.Resource root, String path, Long author) getFileNameByUUID(String fileUUID) Returns the file name by UUID.getInputStreamByUUID(String fileUUID) Returns the input stream by UUID.static DataCollectionResourceUtilsprotected static overit.geocallapp.docshare.docsharing.bl.ResourcegetResourceInFolder(String name, overit.geocallapp.docshare.docsharing.bl.Resource folder, overit.geocallapp.docshare.docsharing.bl.ResourceManager manager) overit.geocallapp.docshare.docsharing.services.ResourceServiceReturns the resource service.getWebResourceByUUID(String fileUUID) Returns the web resource by UUID.uploadFile(UpFile uf, String directoryPath) Uploads the file.
-
Field Details
-
FILE_NAME
- See Also:
-
resourceService
protected overit.geocallapp.docshare.docsharing.services.ResourceService resourceService
-
-
Constructor Details
-
DataCollectionResourceUtils
public DataCollectionResourceUtils()
-
-
Method Details
-
getInstance
-
getResourceService
public overit.geocallapp.docshare.docsharing.services.ResourceService getResourceService() throws DAException, DAValidateExceptionReturns the resource service.- Returns:
- the resource service
- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
getFileNameByUUID
Returns the file name by UUID.- Parameters:
fileUUID- the file UUID- Returns:
- the file name by UUID
- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
uploadFile
Uploads the file.- Parameters:
uf- the ufdirectoryPath- the directory path- Returns:
- the string
- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
getInputStreamByUUID
Returns the input stream by UUID.- Parameters:
fileUUID- the file UUID- Returns:
- the input stream by UUID
- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
getWebResourceByUUID
Returns the web resource by UUID.- Parameters:
fileUUID- the file UUID- Returns:
- the web resource by UUID
- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-