Platform Explorer / Nuxeo Platform 5.6

Contribution org.nuxeo.ecm.platform.oauth.directoryContrib--directories

This contribution is part of XML component org.nuxeo.ecm.platform.oauth.directoryContrib inside nuxeo-platform-oauth-5.6.jar

Extension point

Extension point directories of component SQLDirectoryFactory.

Contributed items

  • <directory name="oauthConsumers">
          <schema>oauthConsumer</schema>
          <dataSource>java:/nxsqldirectory</dataSource>
          <cacheTimeout>3600</cacheTimeout>
          <cacheMaxSize>1000</cacheMaxSize>
          <table>oauthConsumers</table>
          <idField>consumerKey</idField>
          <autoincrementIdField>false</autoincrementIdField>
          <createTablePolicy>on_missing_columns</createTablePolicy>
        </directory>
  • <directory name="oauthServiceProviders">
          <schema>oauthServiceProvider</schema>
          <dataSource>java:/nxsqldirectory</dataSource>
          <cacheTimeout>3600</cacheTimeout>
          <cacheMaxSize>1000</cacheMaxSize>
          <table>oauthServiceProviders</table>
          <idField>id</idField>
          <autoincrementIdField>true</autoincrementIdField>
          <createTablePolicy>on_missing_columns</createTablePolicy>
          <substringMatchType>subfinal</substringMatchType>
        </directory>
  • <directory name="oauthTokens">
          <schema>oauthToken</schema>
          <dataSource>java:/nxsqldirectory</dataSource>
          <cacheTimeout>3600</cacheTimeout>
          <cacheMaxSize>1000</cacheMaxSize>
          <table>oauthTokens</table>
          <idField>token</idField>
          <autoincrementIdField>false</autoincrementIdField>
          <createTablePolicy>on_missing_columns</createTablePolicy>
        </directory>

XML source

<extension point="directories" target="org.nuxeo.ecm.directory.sql.SQLDirectoryFactory">

    <directory name="oauthConsumers">
      <schema>oauthConsumer</schema>
      <dataSource>java:/nxsqldirectory</dataSource>
      <cacheTimeout>3600</cacheTimeout>
      <cacheMaxSize>1000</cacheMaxSize>
      <table>oauthConsumers</table>
      <idField>consumerKey</idField>
      <autoincrementIdField>false</autoincrementIdField>
      <createTablePolicy>on_missing_columns</createTablePolicy>
    </directory>

    <directory name="oauthServiceProviders">
      <schema>oauthServiceProvider</schema>
      <dataSource>java:/nxsqldirectory</dataSource>
      <cacheTimeout>3600</cacheTimeout>
      <cacheMaxSize>1000</cacheMaxSize>
      <table>oauthServiceProviders</table>
      <idField>id</idField>
      <autoincrementIdField>true</autoincrementIdField>
      <createTablePolicy>on_missing_columns</createTablePolicy>
      <substringMatchType>subfinal</substringMatchType>
    </directory>


    <directory name="oauthTokens">
      <schema>oauthToken</schema>
      <dataSource>java:/nxsqldirectory</dataSource>
      <cacheTimeout>3600</cacheTimeout>
      <cacheMaxSize>1000</cacheMaxSize>
      <table>oauthTokens</table>
      <idField>token</idField>
      <autoincrementIdField>false</autoincrementIdField>
      <createTablePolicy>on_missing_columns</createTablePolicy>
    </directory>

  </extension>