Platform Explorer / Nuxeo Platform LTS 2015 7.10

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-7.10.jar /OSGI-INF/directory-contrib.xml

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>
  • <directory name="oauth2ServiceProviders">
          <schema>oauth2ServiceProvider</schema>
          <dataSource>java:/nxsqldirectory</dataSource>
          <cacheTimeout>3600</cacheTimeout>
          <cacheMaxSize>1000</cacheMaxSize>
          <table>oauth2ServiceProviders</table>
          <idField>id</idField>
          <autoincrementIdField>true</autoincrementIdField>
          <createTablePolicy>on_missing_columns</createTablePolicy>
          <substringMatchType>subfinal</substringMatchType>
        </directory>
  • <directory name="oauth2Tokens">
          <schema>oauth2Token</schema>
          <dataSource>java:/nxsqldirectory</dataSource>
          <cacheTimeout>3600</cacheTimeout>
          <cacheMaxSize>1000</cacheMaxSize>
          <table>oauth2Tokens</table>
          <idField>id</idField>
          <autoincrementIdField>true</autoincrementIdField>
          <createTablePolicy>on_missing_columns</createTablePolicy>
        </directory>
  • <directory name="oauth2Clients">
          <schema>oauth2Client</schema>
          <dataSource>java:/nxsqldirectory</dataSource>
          <cacheTimeout>3600</cacheTimeout>
          <cacheMaxSize>1000</cacheMaxSize>
          <table>oauth2Clients</table>
          <idField>id</idField>
          <autoincrementIdField>true</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>

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

    <directory name="oauth2Tokens">
      <schema>oauth2Token</schema>
      <dataSource>java:/nxsqldirectory</dataSource>
      <cacheTimeout>3600</cacheTimeout>
      <cacheMaxSize>1000</cacheMaxSize>
      <table>oauth2Tokens</table>
      <idField>id</idField>
      <autoincrementIdField>true</autoincrementIdField>
      <createTablePolicy>on_missing_columns</createTablePolicy>
    </directory>

    <directory name="oauth2Clients">
      <schema>oauth2Client</schema>
      <dataSource>java:/nxsqldirectory</dataSource>
      <cacheTimeout>3600</cacheTimeout>
      <cacheMaxSize>1000</cacheMaxSize>
      <table>oauth2Clients</table>
      <idField>id</idField>
      <autoincrementIdField>true</autoincrementIdField>
      <createTablePolicy>on_missing_columns</createTablePolicy>
    </directory>

  </extension>