/** Licensed Materials - Property of IBM, 5724-U69, (C) Copyright IBM Corp. 2009, 2010 - All Rights reserved. **/ dojo.i18n._preloadLocalizations("federation.nls.FederatedDocumentsPickerLayer", ["ROOT","ar","ca","cs","da","de","el","en","es","fi","fr","he","hr","hu","it","ja","kk","ko","nl","no","pl","pt","pt-br","ro","ru","sk","sl","sv","th","tr","uk","xx","zh","zh-tw"]); if(!dojo._hasResource["com.ibm.workplace.wcm.ecm.picker.util.FederatedDocumentsServiceBean"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code. dojo._hasResource["com.ibm.workplace.wcm.ecm.picker.util.FederatedDocumentsServiceBean"] = true; ////////////////////////////////////////////////// // Licensed Materials - Property of IBM // // 5724-E76, 5655-R17, 5655-M44 // // Copyright IBM Corp. 2011 All Rights reserved.// ////////////////////////////////////////////////// dojo.provide("com.ibm.workplace.wcm.ecm.picker.util.FederatedDocumentsServiceBean"); dojo.require("com.ibm.widgets._Traceable"); dojo.declare("com.ibm.workplace.wcm.ecm.picker.util.FederatedDocumentsServiceBean", [com.ibm.widgets._Traceable], { // summary: // Bean that encapsulates configuration and runtime data required by client-side // components of the federated documents support in IBM Portal // customServiceSelectionEnabled: [private] Boolean // Specifies whether or not the selection of cuostom (i.e. not preconfigured) services // is supported _customServiceSelectionEnabled: true, // _federatedDocumentsServices: [private] Array // Array of JSON objects holding properties of configured federated documents services _federatedDocumentsServices: [], // _feedBaseURL: [private] String // Piece of content (POC) base URL for accessing Content Management Interoperability // Services (CMIS) feeds through the CMIS feed data source of IBM Portal _feedBaseURL: "", // _feedTypeBaseURL: [private] String // Piece of content (POC) base URL for accessing the feed type data source of IBM // Portal that determines type of an enterprise content management (ECM) feed. _feedTypeBaseURL: "", // _isTracing: [private] Boolean // Indicates whether or not this class writes trace messages to the console _isTracing: false, // _portalContextPath: [private] String // Context path of the IBM Portal _portalContextPath: "/wps", // _qdsSupportEnabled: [private] Boolean // Specifies whether or not Quickr Document Services are supported in the federated // documents configuration of the IBM Portal _qdsSupportEnabled: true, // _serviceDocBaseURL: [private] String // Piece of content (POC) base URL for accessing Content Management Interoperability // Services (CMIS) service documents through the CMIS service document data source of // IBM Portal _serviceDocBaseURL: "", // _vaultMgmtDataSinkUrl: [private] String // Piece of content (POC) URL for accessing the Vault Management Datasink of // IBM Portal _vaultMgmtDataSinkUrl: "", // _vaultSelectionEnabledForPZN: [private] Boolean // Specifies whether or not the selection of credential vault slots for authentication // is supported when using the federated documents picker with Personalization _vaultSelectionEnabledForPZN: true, // _vaultSelectionEnabledForWCM: [private] Boolean // Specifies whether or not the selection of credential vault slots for authentication // is supported when using the federated documents picker with Web Content Management _vaultSelectionEnabledForWCM: true, // _vaultSlots: [private] Array // Array of JSON objects holding properties of available credential vault slots _vaultSlots: [], constructor: function(/*Object*/ p_params) { // summary: // Constructs this bean with the given JSON object // p_params.customServiceSelectionEnabled: Boolean // Specifies whether or not the selection of cuostom (i.e. not preconfigured) services // is supported // p_params.federatedDocumentsServices: Array // Array of JSON objects holding properties of configured federated documents services // p_params.feedBaseURL: String // Piece of content (POC) base URL for accessing Content Management Interoperability // Services (CMIS) feeds through the CMIS feed data source of IBM Portal // p_params.feedTypeBaseURL: String // Piece of content (POC) base URL for accessing the feed type data source of IBM // Portal that determines type of an enterprise content management (ECM) feed // p_params.portalContextPath: String // Context path of the IBM Portal // p_params.qdsSupportEnabled: Boolean // Specifies whether or not Quickr Document Services are supported in the federated // documents configuration of the IBM Portal // p_params.serviceDocBaseURL: String // Piece of content (POC) base URL for accessing Content Management Interoperability // Services (CMIS) service documents through the CMIS service document data source of // IBM Portal // p_params.vaultMgmtDataSinkUrl: String // Piece of content (POC) URL for accessing the Vault Management Datasink of // IBM Portal // p_params.vaultSelectionEnabledForPZN: Boolean // Specifies whether or not the selection of credential vault slots for authentication // is supported when using the federated documents picker with Personalization // p_params.vaultSelectionEnabledForWCM: Boolean // Specifies whether or not the selection of credential vault slots for authentication // is supported when using the federated documents picker with Web Content Management // p_params.vaultSlots: Array // Array of JSON objects holding properties of available credential vault slots // tags: // public // set instance trace support flag this._isTracing = this.isTracing(); // entry trace var m = "constructor(p_params)"; if (this._isTracing) { this.traceEntry(m, dojo.toJson(p_params)); } if (p_params && typeof p_params == 'object') { // federatedDocumentsServices if (p_params.federatedDocumentsServices && typeof p_params.federatedDocumentsServices == 'object') { this._federatedDocumentsServices = p_params.federatedDocumentsServices; } // customServiceSelectionEnabled if (typeof p_params.customServiceSelectionEnabled == 'boolean') { this._customServiceSelectionEnabled = p_params.customServiceSelectionEnabled; } // feedBaseURL if (typeof p_params.feedBaseURL == 'string') { this._feedBaseURL = p_params.feedBaseURL; } // feedTypeBaseURL if (typeof p_params.feedTypeBaseURL == 'string') { this._feedTypeBaseURL = p_params.feedTypeBaseURL; } // portalContextPath if (typeof p_params.portalContextPath == 'string') { this._portalContextPath = p_params.portalContextPath; } // qdsSupportEnabled if (typeof p_params.qdsSupportEnabled == 'boolean') { this._qdsSupportEnabled = p_params.qdsSupportEnabled; } // serviceDocBaseURL if (typeof p_params.serviceDocBaseURL == 'string') { this._serviceDocBaseURL = p_params.serviceDocBaseURL; } // vaultMgmtDataSinkUrl if (typeof p_params.vaultMgmtDataSinkUrl == 'string') { this._vaultMgmtDataSinkUrl = p_params.vaultMgmtDataSinkUrl; } // vaultSelectionEnabledForPZN if (typeof p_params.vaultSelectionEnabledForPZN == 'boolean') { this._vaultSelectionEnabledForPZN = p_params.vaultSelectionEnabledForPZN; } // vaultSelectionEnabledForWCM if (typeof p_params.vaultSelectionEnabledForWCM == 'boolean') { this._vaultSelectionEnabledForWCM = p_params.vaultSelectionEnabledForWCM; } // vaultSlots if (p_params.vaultSlots && typeof p_params.vaultSlots == 'object') { this._vaultSlots = p_params.vaultSlots; } } // exit trace if (this._isTracing) { this.traceExit(m); } }, getFederatedDocumentsServices: function() { // summary: // Returns an array of JSON objects holding properties of configured federated documents services // tags: // public // returns: // the federated documents services configuration return this._federatedDocumentsServices; // Array }, getFeedBaseURL: function() { // summary: // Returns the piece of content (POC) base URL for accessing Content Management Interoperability // Services (CMIS) feeds through the CMIS feed data source of IBM Portal // tags: // public // returns: // the feed base URL return this._feedBaseURL; // String }, getFeedTypeBaseURL: function() { // summary: // Returns the piece of content (POC) base URL for accessing the feed type data source of IBM // Portal that determines type of an enterprise content management (ECM) feed // tags: // public // returns: // the feed type base URL return this._feedTypeBaseURL; // String }, getPortalContextPath: function() { // summary: // Returns the context path of the IBM Portal // tags: // public // returns: // the context path return this._portalContextPath; // String }, getServiceDocumentBaseURL: function() { // summary: // Returns the piece of content (POC) base URL for accessing Content Management Interoperability // Services (CMIS) service documents through the CMIS service document data source of // IBM Portal // tags: // public // returns: // the service document base URL return this._serviceDocBaseURL; // String }, getVaultMgmtDataSinkUrl: function() { // summary // Returns the piece of content (POC) URL for accessing the Vault Management Datasink of // IBM Portal // tags: // public // returns: // the vault management datasink URL return this._vaultMgmtDataSinkUrl; // String }, getVaultSlots: function() { // summary: // Returns an array of JSON objects holding properties of available credential vault slots // tags: // public // returns: // the configuration of available credential vault slots return this._vaultSlots; // Array }, isCustomServiceSelectionEnabled: function() { // summary: // Returns an indicator as to whether or not the selection of custom (i.e. not predefined) // services is supported // tags: // public // returns: // true if custom service selection is supported, false otherwise return this._customServiceSelectionEnabled; // Boolean }, isQDSSupportEnabled: function() { // summary: // Returns an indicator as to whether or not Quickr Document Services are supported in the federated // documents configuration of the IBM Portal // tags: // public // returns: // true if Quickr Document Services are supported, false otherwise return this._qdsSupportEnabled; // Boolean }, isVaultSelectionEnabledForPZN: function() { // summary: // Returns an indicator as to whether or not the selection of credential vault slots for authentication // is supported when using the federated documents picker with Personalization // tags: // public // returns: // true if credential vault slot selection is supported for Personalization, false otherwise return this._vaultSelectionEnabledForPZN; // Boolean }, isVaultSelectionEnabledForWCM: function() { // summary: // Returns an indicator as to whether or not the selection of credential vault slots for authentication // is supported when using the federated documents picker with Web Content Management // tags: // public // returns: // true if credential vault slot selection is supported for Web Content Management, false otherwise return this._vaultSelectionEnabledForWCM; // Boolean } }); } if(!dojo._hasResource["com.ibm.workplace.wcm.ecm.picker.util.FederatedDocumentsDefinitions"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code. dojo._hasResource["com.ibm.workplace.wcm.ecm.picker.util.FederatedDocumentsDefinitions"] = true; dojo.provide("com.ibm.workplace.wcm.ecm.picker.util.FederatedDocumentsDefinitions"); dojo.declare('com.ibm.workplace.wcm.ecm.picker.util.FederatedDocumentsDefinitions', null, { // summary: // A class used as namespace for defining global contants for federated documents support }); //*** global constants for all dijit instances *** // com.ibm.workplace.wcm.ecm.picker.util.FederatedDocumentsDefinitions._atom: [const] [public] String // Constant indicating an Atom Syndication format document com.ibm.workplace.wcm.ecm.picker.util.FederatedDocumentsDefinitions._atom = "atom"; // com.ibm.workplace.wcm.ecm.picker.util.FederatedDocumentsDefinitions.resEnvTypeCMIS: [const] [public] String // Constant for the Resource Environment Server Type 'CMIS' com.ibm.workplace.wcm.ecm.picker.util.FederatedDocumentsDefinitions.resEnvTypeCMIS = "CMIS"; // com.ibm.workplace.wcm.ecm.picker.util.FederatedDocumentsDefinitions.resEnvTypeQDS: [const] [public] String // Constant for the Resource Environment Server Type 'DocumentServices' com.ibm.workplace.wcm.ecm.picker.util.FederatedDocumentsDefinitions.resEnvTypeQDS = "DocumentServices"; // com.ibm.workplace.wcm.ecm.picker.util.FederatedDocumentsDefinitions.resEnvTypeATOM: [const] [public] String // Constant for the Resource Environment Server Type 'ATOM' com.ibm.workplace.wcm.ecm.picker.util.FederatedDocumentsDefinitions.resEnvTypeATOM = "ATOM"; // com.ibm.workplace.wcm.ecm.picker.util.FederatedDocumentsDefinitions._cmis: [const] [public] String // Constant indicating a Content Management Interoperability (CMIS) context com.ibm.workplace.wcm.ecm.picker.util.FederatedDocumentsDefinitions._cmis = "cmis"; // com.ibm.workplace.wcm.ecm.picker.util.FederatedDocumentsDefinitions._proxyVaultSlotParamName: [const] [public] String // AJAX Proxy specific name of the query parameter that identifies a vault slot com.ibm.workplace.wcm.ecm.picker.util.FederatedDocumentsDefinitions._proxyVaultSlotParamName = "hpaa.slotid"; // com.ibm.workplace.wcm.ecm.picker.util.FederatedDocumentsDefinitions._pzn: [const] [public] String // Identifier for Personalization as the context the Federated Documents Picker is used in com.ibm.workplace.wcm.ecm.picker.util.FederatedDocumentsDefinitions._pzn = "pzn"; // com.ibm.workplace.wcm.ecm.picker.util.FederatedDocumentsDefinitions._qds: [const] [public] String // Constant indicating a Quickr Document Services (QDS) context com.ibm.workplace.wcm.ecm.picker.util.FederatedDocumentsDefinitions._qds = "qds"; // com.ibm.workplace.wcm.ecm.picker.util.FederatedDocumentsDefinitions._qdsentry: [const] [public] String // Constant indicating a Quickr Document Services (QDS) entry Url com.ibm.workplace.wcm.ecm.picker.util.FederatedDocumentsDefinitions._qdsentry = "qdsentry"; // com.ibm.workplace.wcm.ecm.picker.util.FederatedDocumentsDefinitions._servicedoc: [const] [public] String // Constant indicating a CMIS Service Document document com.ibm.workplace.wcm.ecm.picker.util.FederatedDocumentsDefinitions._servicedoc = "servicedoc"; // com.ibm.workplace.wcm.ecm.picker.util.FederatedDocumentsDefinitions._unknown: [const] [public] String // Constant indicating that a feed type detection was performed but the processed feed is not of a known type com.ibm.workplace.wcm.ecm.picker.util.FederatedDocumentsDefinitions._unknown = "unknown"; // com.ibm.workplace.wcm.ecm.picker.util.FederatedDocumentsDefinitions._wcm: [const] [public] String // Identifier for Web Content Management as the context the Federated Documents Picker is used in com.ibm.workplace.wcm.ecm.picker.util.FederatedDocumentsDefinitions._wcm = "wcm"; // com.ibm.workplace.wcm.ecm.picker.util.FederatedDocumentsDefinitions._dialog: [const] [public] String // Value of the "pickerContext" parameter that indicates that the Federated Documents Picker is launched // as a fully fledged dialog of its own rather than as a dependent widget. The latter is the case of using // the Federated Documents Picker Portlet inside of a dialog that is created by the modal dialog framework // of the portal. com.ibm.workplace.wcm.ecm.picker.util.FederatedDocumentsDefinitions._dialog = "dialog"; // com.ibm.workplace.wcm.ecm.picker.util.FederatedDocumentsDefinitions._portlet: [const] [public] String // Value of the "pickerContext" parameter that indicates that the Federated Documents Picker is launched // as a dependent widget rather than a fully fledged dialog of its own. This is the case of using the // Federated Documents Picker Portlet inside of a dialog that is created by the modal dialog framework of // the portal. com.ibm.workplace.wcm.ecm.picker.util.FederatedDocumentsDefinitions._portlet = "portlet"; } if(!dojo._hasResource["com.ibm.workplace.wcm.ecm.picker.widget.AuthenticationWidget"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code. dojo._hasResource["com.ibm.workplace.wcm.ecm.picker.widget.AuthenticationWidget"] = true; /** ****************************************************************** */ /* Licensed Materials - Property of IBM */ /* */ /* 5724-E76, 5655-R17, 5655-M44 */ /* */ /* Copyright IBM Corp. 2011 All Rights Reserved. */ /* */ /* US Government Users Restricted Rights - Use, duplication or */ /* disclosure restricted by GSA ADP Schedule Contract with IBM Corp. */ /** ****************************************************************** */ dojo.provide("com.ibm.workplace.wcm.ecm.picker.widget.AuthenticationWidget"); dojo.registerModulePath("com.ibm.workplace.wcm.ecm.picker.widget","../com/ibm/workplace/wcm/ecm/picker/widget"); dojo.require("dijit.form.RadioButton"); dojo.require("dijit.form.ComboBox"); dojo.require("com.ibm.widgets.GenericDialogWidget"); dojo.declare("com.ibm.workplace.wcm.ecm.picker.widget.AuthenticationWidget", [com.ibm.widgets.GenericDialogWidget], { // summary: // This widget implementation facilitates the selection and configuration of // authentication methods to use when connecting to a federated documents repository // namespace: [protected] String // The namespace this widget uses for building its user interface elements namespace: "authWdgt_", // templatePath: // see dijit.Dialog templateString:"