fileUploader.js 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. /*******************************************************************************
  2. * IBM Confidential
  3. *
  4. * OCO Source Materials
  5. *
  6. * A and PM: PD
  7. *
  8. * (c) Copyright IBM Corp. 2014, 2015
  9. *
  10. * The source code for this program is not published or otherwise divested of
  11. * its trade secrets, irrespective of what has been deposited with the U.S.
  12. * Copyright Office.
  13. ******************************************************************************/
  14. require([
  15. "dojo/_base/declare",
  16. "pd/ui/_base",
  17. "dojo/domReady!"
  18. ],function(declare, _base){
  19. declare("pd/ui/fileUploader", [_base], {
  20. mode: pd.statics.MODE_NORMAL,
  21. renderMainContent: function(pdSpecValue) {
  22. this._renderMainContent(pdSpecValue);
  23. },
  24. getDataSetName: function() {
  25. return this._getFileName();
  26. },
  27. getTargetUrl: function() {
  28. return g_pd_gateway + "/metadataUIService?pid=pdm_process&c=processLOBData"
  29. + "&repositoryName="+encodeURIComponent(this.repositoryName)
  30. + "&repositoryConnection="+encodeURIComponent(this.repositoryConnection)
  31. + "&repositorySignon="+encodeURIComponent(this.repositorySignon);
  32. }
  33. });
  34. });