Platform Explorer / Nuxeo Platform 2023.10

Extension point config


Configure the library app

Contribution Descriptors

  • Class: org.nuxeo.salesforce.config.LibraryAppConfigDescriptor
  • Class: org.nuxeo.salesforce.config.DocListAppConfigDescriptor
  • Class: org.nuxeo.salesforce.config.SearchAppConfigDescriptor

Existing Contributions

Contributions are presented in the same order as the registration order on this extension point. This order is displayed before the contribution name, in brackets.

  • nuxeo-salesforce-core-2023.0.2.jar /OSGI-INF/SalesforceComponent.xml
    <extension point="config" target="org.nuxeo.salesforce.SalesforceComponent">
            <!-- title>Nuxeo Library</title -->
          	you can control the visibility of these columns: type, size, author, lastModified.
          	The default is to hide the type column. 
          	You can control which doc tab, data section, doc action or nav actions are visible. 
          	If not specified or empty all items are visible:
          	The custom nav. actions are added to the built-in nav-actions. You should define a label, a Salesforce icon ID 
          	and an operation to be invoked bny the action 
          		<action name='myaction' label="My Action" icon="action:new_note" operation="Salesforce.MyAction" />
          	To add custom user fields:
            You can change the default open action to open the document in nuxeo:
            (The default is to open the document in the document viewer on the right of the listing.)   
          	function(doc) {
          		// the doc object is an instance of the FileDoc class from force-app/main/default/lwc/nuxeoClient/model.js
          		// the doc.doc object is the Nuxeo document defined in nuxeo javascript client.
          		// Refer to FileDoc for more on the API it expose.
          		// You can return null (or falsy) to let the client use the default rendition detection.         		
          		return {
          			viewer: "video" | "audio" | "image" | "pdf" | "html" | "text" | "binary",
          			rendition: renditionId
          			content: xpath
          			type: mime-type // optional mime type - must be specified for videos.
            <!-- title>Nuxeo Documents</title -->
          	function(doc, recordId) {
                var source =['dc:source'];
                return source ? source === recordId || source.split(',').indexOf(recordId) &gt; -1 : false;
          	The query element defines a custom javascript function to be used by the client to create the search call 
          	for the listing and listing search requests.    
          	The context object describe the client context and can be used to compute the page provider or other parameters
          	to pass to the search. The context object contains the following properties: repositoryName, appType, appConfig, 
          	recordId, recordType, record and env. The **env** property is a custom environment object 
          	that can be defined by external components. (by default it is an empty object)
          	Note that we wrap the recordId inside % characters - to be able to use the LIKE operator in the fixed part of the sfdc_linked_docs page provider     
          	function(context, params) {
          		params.pageProvider = "sfdc_linked_docs";
          		params.recordId = '%'+context.recordId+'%';
          	you can control the visibility of these columns: type, size, author, lastModified.
          	The default is to hide the type column. 
            <!--  title>Nuxeo Search</title -->