repo.jdbc-mssql.json revision 006579fc6d904d79ff1065cc8aa5c244a00f41ab
ca0ee85505c252493a3ee53577848ef8939f991bvboxsync "connection" : {
ca0ee85505c252493a3ee53577848ef8939f991bvboxsync "dbType" : "SQLSERVER",
ca0ee85505c252493a3ee53577848ef8939f991bvboxsync "jndiName" : "",
ca0ee85505c252493a3ee53577848ef8939f991bvboxsync "driverClass" : "com.microsoft.sqlserver.jdbc.SQLServerDriver",
ca0ee85505c252493a3ee53577848ef8939f991bvboxsync "jdbcUrl" : "jdbc:sqlserver://localhost:1433;instanceName=default;databaseName=openidm;applicationName=OpenIDM",
e64031e20c39650a7bc902a3e1aba613b9415deevboxsync "username" : "openidm",
ca0ee85505c252493a3ee53577848ef8939f991bvboxsync "password" : "Passw0rd",
ca0ee85505c252493a3ee53577848ef8939f991bvboxsync "defaultCatalog" : "openidm",
ca0ee85505c252493a3ee53577848ef8939f991bvboxsync "maxBatchSize" : 100,
ca0ee85505c252493a3ee53577848ef8939f991bvboxsync "maxTxRetry" : 5,
ca0ee85505c252493a3ee53577848ef8939f991bvboxsync "enableConnectionPool" : true
ca0ee85505c252493a3ee53577848ef8939f991bvboxsync "queries" : {
ca0ee85505c252493a3ee53577848ef8939f991bvboxsync "genericTables" : {
ca0ee85505c252493a3ee53577848ef8939f991bvboxsync "credential-query" : "SELECT fullobject FROM ${_dbSchema}.${_mainTable} obj INNER JOIN ${_dbSchema}.${_propTable} prop ON obj.id = prop.${_mainTable}_id INNER JOIN ${_dbSchema}.objecttypes objtype ON objtype.id = obj.objecttypes_id WHERE prop.propkey='/userName' AND prop.partpropvalue = ${username} AND objtype.objecttype = ${_resource}",
ca0ee85505c252493a3ee53577848ef8939f991bvboxsync "check-userName-availability" : "SELECT prop.propvalue FROM ${_dbSchema}.${_mainTable} obj INNER JOIN ${_dbSchema}.${_propTable} prop ON obj.id = prop.${_mainTable}_id INNER JOIN ${_dbSchema}.objecttypes objtype ON objtype.id = obj.objecttypes_id WHERE prop.propkey='/userName' AND prop.partpropvalue = ${uid} AND objtype.objecttype = ${_resource}",
ca0ee85505c252493a3ee53577848ef8939f991bvboxsync "links-for-targetId-db2" : "SELECT fullobject FROM ${_dbSchema}.${_mainTable} obj INNER JOIN ${_dbSchema}.${_propTable} prop ON obj.id = prop.${_mainTable}_id INNER JOIN ${_dbSchema}.objecttypes objtype ON objtype.id = obj.objecttypes_id WHERE prop.propkey='/targetId' AND prop.partpropvalue = ${targetId} AND objtype.objecttype = ${_resource}",
ca0ee85505c252493a3ee53577848ef8939f991bvboxsync "for-security-answer" : "SELECT fullobject FROM ${_dbSchema}.${_mainTable} obj INNER JOIN ${_dbSchema}.${_propTable} prop ON obj.id = prop.${_mainTable}_id INNER JOIN ${_dbSchema}.objecttypes objtype ON objtype.id = obj.objecttypes_id WHERE prop.propkey='/userName' AND prop.partpropvalue = ${uid} AND objtype.objecttype = ${_resource}",
ca0ee85505c252493a3ee53577848ef8939f991bvboxsync "links-for-sourceId-db2" : "SELECT fullobject FROM ${_dbSchema}.${_mainTable} obj INNER JOIN ${_dbSchema}.${_propTable} prop ON obj.id = prop.${_mainTable}_id INNER JOIN ${_dbSchema}.objecttypes objtype ON objtype.id = obj.objecttypes_id WHERE prop.propkey='/sourceId' AND prop.partpropvalue = ${sourceId} AND objtype.objecttype = ${_resource}",
ca0ee85505c252493a3ee53577848ef8939f991bvboxsync "get-security-question" : "SELECT credprop.${_mainTable}_id, credprop.propkey, credprop.propvalue, credprop.proptype FROM ${_dbSchema}.${_propTable} credprop INNER JOIN ${_dbSchema}.${_mainTable} obj ON obj.id = credprop.${_mainTable}_id INNER JOIN ${_dbSchema}.${_propTable} conditionprop ON obj.id = conditionprop.${_mainTable}_id INNER JOIN ${_dbSchema}.objecttypes objtype ON objtype.id = obj.objecttypes_id WHERE credprop.propkey='/securityQuestion' AND conditionprop.propkey='/email' AND conditionprop.partpropvalue = ${uid} AND objtype.objecttype = ${_resource}",
ca0ee85505c252493a3ee53577848ef8939f991bvboxsync "set-newPassword-for-userName-and-security-answer" : "SELECT fullobject FROM ${_dbSchema}.${_mainTable} obj INNER JOIN ${_dbSchema}.${_propTable} prop ON obj.id = prop.${_mainTable}_id INNER JOIN ${_dbSchema}.objecttypes objtype ON objtype.id = obj.objecttypes_id WHERE prop.propkey='/userName' AND prop.partpropvalue = ${username} AND objtype.objecttype = ${_resource}",
ca0ee85505c252493a3ee53577848ef8939f991bvboxsync "links-for-sourceId" : "SELECT fullobject FROM ${_dbSchema}.${_mainTable} obj INNER JOIN ${_dbSchema}.${_propTable} prop ON obj.id = prop.${_mainTable}_id INNER JOIN ${_dbSchema}.objecttypes objtype ON objtype.id = obj.objecttypes_id WHERE prop.propkey='/sourceId' AND prop.partpropvalue = ${sourceId} AND objtype.objecttype = ${_resource}",
ca0ee85505c252493a3ee53577848ef8939f991bvboxsync "get-profile" : "SELECT fullobject FROM ${_dbSchema}.${_mainTable} obj INNER JOIN ${_dbSchema}.${_propTable} prop ON obj.id = prop.${_mainTable}_id INNER JOIN ${_dbSchema}.objecttypes objtype ON objtype.id = obj.objecttypes_id WHERE prop.propkey='/userName' AND prop.partpropvalue = ${uid} AND objtype.objecttype = ${_resource}",
ca0ee85505c252493a3ee53577848ef8939f991bvboxsync "links-for-targetId" : "SELECT fullobject FROM ${_dbSchema}.${_mainTable} obj INNER JOIN ${_dbSchema}.${_propTable} prop ON obj.id = prop.${_mainTable}_id INNER JOIN ${_dbSchema}.objecttypes objtype ON objtype.id = obj.objecttypes_id WHERE prop.propkey='/targetId' AND prop.partpropvalue = ${targetId} AND objtype.objecttype = ${_resource}",
ca0ee85505c252493a3ee53577848ef8939f991bvboxsync "query-all-ids" : "SELECT obj.fullobject FROM ${_dbSchema}.${_mainTable} obj INNER JOIN objecttypes objtype ON obj.objecttypes_id = objtype.id WHERE objtype.objecttype = ${_resource}",
ca0ee85505c252493a3ee53577848ef8939f991bvboxsync "query-all" : "SELECT obj.fullobject FROM ${_dbSchema}.${_mainTable} obj INNER JOIN objecttypes objtype ON obj.objecttypes_id = objtype.id WHERE objtype.objecttype = ${_resource}",
ca0ee85505c252493a3ee53577848ef8939f991bvboxsync "query-count-matching-username" : "SELECT '/count' as propkey, count(distinct credprop.propkey, credprop.propvalue) as propvalue FROM openidm.managedobjectproperties credprop INNER JOIN openidm.managedobjects obj ON obj.id = credprop.managedobjects_id INNER JOIN openidm.managedobjectproperties conditionprop ON obj.id = conditionprop.managedobjects_id INNER JOIN openidm.objecttypes objtype ON objtype.id = obj.objecttypes_id WHERE credprop.propkey = '/_id' AND (conditionprop.propkey='/userName' AND conditionprop.partpropvalue like concat('%',${usernameToMatch},'%') OR conditionprop.propkey='/givenName' AND conditionprop.partpropvalue like concat('%',${usernameToMatch},'%') OR conditionprop.propkey='/familyName' AND conditionprop.partpropvalue like concat('%',${usernameToMatch},'%')) AND objtype.objecttype = ${_resource} order by 1",
ca0ee85505c252493a3ee53577848ef8939f991bvboxsync "query-matching-username" : "select fullobject from openidm.managedobjects where objectid in (SELECT distinct credprop.propvalue FROM openidm.managedobjectproperties credprop INNER JOIN openidm.managedobjects obj ON obj.id = credprop.managedobjects_id INNER JOIN openidm.managedobjectproperties conditionprop ON obj.id = conditionprop.managedobjects_id INNER JOIN openidm.objecttypes objtype ON objtype.id = obj.objecttypes_id WHERE credprop.propkey = '/_id' AND (conditionprop.propkey='/userName' AND conditionprop.partpropvalue like concat('%',${usernameToMatch},'%') OR conditionprop.propkey='/givenName' AND conditionprop.partpropvalue like concat('%',${usernameToMatch},'%') OR conditionprop.propkey='/familyName' AND conditionprop.partpropvalue like concat('%',${usernameToMatch},'%')) AND objtype.objecttype = 'managed/user' order by 1) limit 30",
ca0ee85505c252493a3ee53577848ef8939f991bvboxsync "for-userName" : "SELECT fullobject FROM ${_dbSchema}.${_mainTable} obj INNER JOIN ${_dbSchema}.${_propTable} prop ON obj.id = prop.${_mainTable}_id INNER JOIN ${_dbSchema}.objecttypes objtype ON objtype.id = obj.objecttypes_id WHERE prop.propkey='/userName' AND prop.partpropvalue = ${uid} AND objtype.objecttype = ${_resource}",
ca0ee85505c252493a3ee53577848ef8939f991bvboxsync "credential-internaluser-query" : "SELECT credprop.${_mainTable}_id, credprop.propkey, credprop.propvalue FROM ${_dbSchema}.${_propTable} credprop INNER JOIN ${_dbSchema}.${_mainTable} obj ON obj.id = credprop.${_mainTable}_id INNER JOIN ${_dbSchema}.${_propTable} conditionprop ON obj.id = conditionprop.${_mainTable}_id INNER JOIN ${_dbSchema}.objecttypes objtype ON objtype.id = obj.objecttypes_id WHERE credprop.propkey='/userPassword' AND conditionprop.propkey='/_id' AND conditionprop.partpropvalue = ${username} AND objtype.objecttype = ${_resource}"
ca0ee85505c252493a3ee53577848ef8939f991bvboxsync "explicitTables" : {
ca0ee85505c252493a3ee53577848ef8939f991bvboxsync "credential-query" : "SELECT * FROM ${_dbSchema}.${_table} WHERE objectid = ${username}",
ca0ee85505c252493a3ee53577848ef8939f991bvboxsync "query-all-ids" : "SELECT objectid FROM ${_dbSchema}.${_table}",
ca0ee85505c252493a3ee53577848ef8939f991bvboxsync "links-for-secondId" : "SELECT * FROM ${_dbSchema}.${_table} WHERE linkType = ${linkType} AND secondid = ${secondId}",
ca0ee85505c252493a3ee53577848ef8939f991bvboxsync "credential-internaluser-query" : "SELECT objectid, pwd, roles FROM ${_dbSchema}.${_table} WHERE objectid = ${username}",
ca0ee85505c252493a3ee53577848ef8939f991bvboxsync "links-for-firstId" : "SELECT * FROM ${_dbSchema}.${_table} WHERE linkType = ${linkType} AND firstid = ${firstId}"
ca0ee85505c252493a3ee53577848ef8939f991bvboxsync "resourceMapping" : {
ca0ee85505c252493a3ee53577848ef8939f991bvboxsync "default" : {
ca0ee85505c252493a3ee53577848ef8939f991bvboxsync "mainTable" : "genericobjects",
ca0ee85505c252493a3ee53577848ef8939f991bvboxsync "propertiesTable" : "genericobjectproperties",
ca0ee85505c252493a3ee53577848ef8939f991bvboxsync "searchableDefault" : true
ca0ee85505c252493a3ee53577848ef8939f991bvboxsync "genericMapping" : {
"internal/user" : {
"audit/activity" : {
"audit/recon" : {
"audit/access" : {