
Bei der typbasierten Datenpartitionierung werden Principals verschiedener Typen (Benutzer, Gruppen usw.) in verschiedenen Datenquellen abgelegt.
Marcus Kopp will alle neuen Benutzer in der Datenbank des SAP NetWeaver Application Server (AS) Java und neue Gruppen im Verzeichnisdienst ablegen. Ergebnis:
Marcus ändert folgendermaßen seine Datenquellen-Konfigurationsdatei:
Beispiel
<dataSource id="PRIVATE_DATASOURCE"
className="com.sap.security.core.persistence.datasource.imp.DataBasePersistence"
isReadonly="false"
isPrimary="true">
<homeFor>
<principals>
<principal type="USER">
<!-- No substructure specified means home for all principals of type
"USER" except the ones in notHomeFor-Section -->
</principal>
</principals>
</homeFor>
<notHomeFor>
</notHomeFor>
...
</dataSource>
<dataSource id="CORP_LDAP"
className="com.sap.security.core.persistence.datasource.imp.DataBasePersistence"
isReadonly="false"
isPrimary="true">
<homeFor>
<principals>
<principal type="GRUP">
<!-- No substructure specified means home for all principals of type
"GRUP" except the ones in notHomeFor-Section -->
</principal>
</principals>
</homeFor>
<notHomeFor>
</notHomeFor>
...
</dataSource>