Platform Explorer / CMF 1.8

Extension point factoryBinding

Documentation

Define a new factory binding.

-factoryBinding - name: name of the factory, defining a factory with the same name will override the first to be registered. - factoryName: the name of the factory defined in the factory extensionPoint. - targetType: The document Type for wich the factory will be executed.

-acl: set rights on document to your users. -principal: Name of the group/user -permission: the permission you want to set. -granted: grant or denied the permission.

-template - typeName: The Type of the Document you want to create. - id: The id of the Document you want to create. - title: The title of the Document you want to create. - description: The description of the Document you want to create. - path: additionary path, added to facctoryBinding's targetType DocPath

Example of a factoryBinding Registration:

    <factoryBinding factoryName="SimpleTemplateFactory"
        name="RootFactory" targetType="Root">
        <acl>
            <ace granted="true" permission="Everything" principal="Administrator"/>
            <ace granted="true" permission="Everything" principal="administrators"/>
            <ace granted="true" permission="Read" principal="members"/>
            <ace granted="true" permission="Version" principal="members"/>
        </acl>
        <template>
            <templateItem description="Default domain"
                id="default-domain" title="Default domain" typeName="Domain"/>
        </template>
    </factoryBinding>

Contribution Descriptors

  • Class: org.nuxeo.ecm.platform.content.template.service.FactoryBindingDescriptor

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-platform-comment-core-5.4.2-HF05.jar
    <extension point="factoryBinding" target="org.nuxeo.ecm.platform.content.template.service.ContentTemplateService">
        <factoryBinding factoryName="SimpleTemplateFactory" name="CommentRootFactory" targetType="CommentRoot">
          <acl>
            <ace granted="true" permission="AddChildren" principal="members"/>
            <ace granted="true" permission="RemoveChildren" principal="members"/>
          </acl>
         </factoryBinding>
      </extension>
  • nuxeo-case-management-core-1.8.jar
    <extension point="factoryBinding" target="org.nuxeo.ecm.platform.content.template.service.ContentTemplateService">
    
        <documentation>
          Sets one domain by default, in each domain a CaseItemFolder is created
          (will hold case items in date hierarchies) and a MailboxRoot (will hold
          mailboxes).
        </documentation>
    
        <factoryBinding factoryName="SimpleTemplateRootFactory" name="RootFactory" targetType="Root">
          <acl>
            <ace granted="true" permission="Everything" principal="Administrator"/>
            <ace granted="true" permission="Everything" principal="administrators"/>
          </acl>
          <template>
            <templateItem description="Case Management" id="case-management" title="Case Management" typeName="Domain">
            </templateItem>
          </template>
        </factoryBinding>
    
        <factoryBinding factoryName="SimpleTemplateFactory" name="DomainFactory" targetType="Domain">
          <template>
            <templateItem id="case-root" title="Case" typeName="CaseRoot"/>
            <templateItem id="mailbox-root" title="Mailbox" typeName="MailboxRoot"/>
            <templateItem description="Sections" id="sections" title="Sections" typeName="SectionRoot"/>
          </template>
        </factoryBinding>
    
      </extension>
  • nuxeo-platform-content-template-manager-5.4.2-HF05.jar
    <extension point="factoryBinding" target="org.nuxeo.ecm.platform.content.template.service.ContentTemplateService">
    
        <factoryBinding factoryName="SimpleTemplateRootFactory" name="RootFactory" targetType="Root">
          <acl>
            <ace granted="true" permission="Everything" principal="Administrator"/>
            <ace granted="true" permission="Read" principal="members"/>
          </acl>
          <template>
            <templateItem description="Default domain" id="default-domain" title="Default domain" typeName="Domain"/>
          </template>
        </factoryBinding>
    
        <factoryBinding factoryName="SimpleTemplateFactory" name="DomainFactory" targetType="Domain">
          <template>
            <templateItem description="Workspaces" id="workspaces" title="Workspaces" typeName="WorkspaceRoot"/>
            <templateItem description="Sections" id="sections" title="Sections" typeName="SectionRoot"/>
            <templateItem description="Root of workspaces templates" id="templates" title="Templates" typeName="TemplateRoot"/>
          </template>
        </factoryBinding>
    
      </extension>