Commit 9f6611ec authored by Jean-Paul Smets's avatar Jean-Paul Smets

Added owner column to support owner local role search and security in optimised way

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@13060 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 3347e8db
...@@ -158,6 +158,12 @@ ...@@ -158,6 +158,12 @@
<dictionary/> <dictionary/>
</value> </value>
</item> </item>
<item>
<key> <string>getViewPermissionOwner</string> </key>
<value>
<dictionary/>
</value>
</item>
<item> <item>
<key> <string>hasCellContent</string> </key> <key> <string>hasCellContent</string> </key>
<value> <value>
...@@ -219,36 +225,37 @@ ...@@ -219,36 +225,37 @@
<key> <string>_keys</string> </key> <key> <string>_keys</string> </key>
<value> <value>
<list> <list>
<string>uid</string> <string>uid</string>
<string>security_uid</string> <string>security_uid</string>
<string>getPath</string> <string>getViewPermissionOwner</string>
<string>getRelativeUrl</string> <string>getPath</string>
<string>getParentUid</string> <string>getRelativeUrl</string>
<string>id</string> <string>getParentUid</string>
<string>getDescription</string> <string>id</string>
<string>getTitle</string> <string>getDescription</string>
<string>meta_type</string> <string>getTitle</string>
<string>getPortalType</string> <string>meta_type</string>
<string>opportunity_state</string> <string>getPortalType</string>
<string>getCorporateRegistrationCode</string> <string>opportunity_state</string>
<string>getEan13Code</string> <string>getCorporateRegistrationCode</string>
<string>getSimulationState</string> <string>getEan13Code</string>
<string>causality_state</string> <string>getSimulationState</string>
<string>invoice_state</string> <string>causality_state</string>
<string>validation_state</string> <string>invoice_state</string>
<string>payment_state</string> <string>validation_state</string>
<string>event_state</string> <string>payment_state</string>
<string>getImmobilisationState</string> <string>event_state</string>
<string>getReference</string> <string>getImmobilisationState</string>
<string>getGroupingReference</string> <string>getReference</string>
<string>getSourceReference</string> <string>getGroupingReference</string>
<string>getDestinationReference</string> <string>getSourceReference</string>
<string>getStringIndex</string> <string>getDestinationReference</string>
<string>getIntIndex</string> <string>getStringIndex</string>
<string>getFloatIndex</string> <string>getIntIndex</string>
<string>hasCellContent</string> <string>getFloatIndex</string>
<string>getCreationDate</string> <string>hasCellContent</string>
<string>getModificationDate</string> <string>getCreationDate</string>
<string>getModificationDate</string>
</list> </list>
</value> </value>
</item> </item>
...@@ -267,6 +274,7 @@ ...@@ -267,6 +274,7 @@
<key> <string>arguments_src</string> </key> <key> <string>arguments_src</string> </key>
<value> <string>uid\r\n <value> <string>uid\r\n
security_uid\r\n security_uid\r\n
getViewPermissionOwner\r\n
getPath\r\n getPath\r\n
getRelativeUrl\r\n getRelativeUrl\r\n
getParentUid\r\n getParentUid\r\n
...@@ -292,8 +300,8 @@ getDestinationReference\r\n ...@@ -292,8 +300,8 @@ getDestinationReference\r\n
getStringIndex\r\n getStringIndex\r\n
getIntIndex\r\n getIntIndex\r\n
getFloatIndex\r\n getFloatIndex\r\n
hasCellContent\n hasCellContent\r\n
getCreationDate\n getCreationDate\r\n
getModificationDate</string> </value> getModificationDate</string> </value>
</item> </item>
<item> <item>
...@@ -341,6 +349,7 @@ VALUES\n ...@@ -341,6 +349,7 @@ VALUES\n
(\n (\n
<dtml-sqlvar expr="uid[loop_item]" type="int">, \n <dtml-sqlvar expr="uid[loop_item]" type="int">, \n
<dtml-sqlvar expr="security_uid[loop_item]" type="int">,\n <dtml-sqlvar expr="security_uid[loop_item]" type="int">,\n
<dtml-sqlvar expr="getViewPermissionOwner[loop_item]" type="string" optional>,\n
<dtml-sqlvar expr="getPath[loop_item]" type="string">,\n <dtml-sqlvar expr="getPath[loop_item]" type="string">,\n
<dtml-sqlvar expr="getRelativeUrl[loop_item]" type="string">,\n <dtml-sqlvar expr="getRelativeUrl[loop_item]" type="string">,\n
<dtml-sqlvar expr="getParentUid[loop_item]" type="int">,\n <dtml-sqlvar expr="getParentUid[loop_item]" type="int">,\n
...@@ -417,6 +426,7 @@ VALUES\n ...@@ -417,6 +426,7 @@ VALUES\n
(\n (\n
<dtml-sqlvar expr="uid[loop_item]" type="int">, \n <dtml-sqlvar expr="uid[loop_item]" type="int">, \n
<dtml-sqlvar expr="security_uid[loop_item]" type="int">,\n <dtml-sqlvar expr="security_uid[loop_item]" type="int">,\n
<dtml-sqlvar expr="getViewPermissionOwner[loop_item]" type="string" optional>,\n
<dtml-sqlvar expr="getPath[loop_item]" type="string">,\n <dtml-sqlvar expr="getPath[loop_item]" type="string">,\n
<dtml-sqlvar expr="getRelativeUrl[loop_item]" type="string">,\n <dtml-sqlvar expr="getRelativeUrl[loop_item]" type="string">,\n
<dtml-sqlvar expr="getParentUid[loop_item]" type="int">,\n <dtml-sqlvar expr="getParentUid[loop_item]" type="int">,\n
......
...@@ -98,6 +98,7 @@ ...@@ -98,6 +98,7 @@
CREATE TABLE `catalog` (\n CREATE TABLE `catalog` (\n
`uid` BIGINT UNSIGNED NOT NULL AUTO_INCREMENT,\n `uid` BIGINT UNSIGNED NOT NULL AUTO_INCREMENT,\n
`security_uid` INT UNSIGNED,\n `security_uid` INT UNSIGNED,\n
`owner` varchar(32) default \'\',\n
`path` varchar(255) NOT NULL default \'\',\n `path` varchar(255) NOT NULL default \'\',\n
`relative_url` varchar(255) NOT NULL default \'\',\n `relative_url` varchar(255) NOT NULL default \'\',\n
`parent_uid` BIGINT UNSIGNED default \'0\',\n `parent_uid` BIGINT UNSIGNED default \'0\',\n
...@@ -128,6 +129,7 @@ CREATE TABLE `catalog` (\n ...@@ -128,6 +129,7 @@ CREATE TABLE `catalog` (\n
`modification_date` datetime,\n `modification_date` datetime,\n
PRIMARY KEY (`uid`),\n PRIMARY KEY (`uid`),\n
KEY `security_uid` (`security_uid`),\n KEY `security_uid` (`security_uid`),\n
KEY `owner` (`owner`),\n
KEY `Parent` (`parent_uid`),\n KEY `Parent` (`parent_uid`),\n
KEY `Path` (`path`),\n KEY `Path` (`path`),\n
KEY `Title` (`title`),\n KEY `Title` (`title`),\n
...@@ -183,6 +185,7 @@ CREATE TABLE `catalog` (\n ...@@ -183,6 +185,7 @@ CREATE TABLE `catalog` (\n
CREATE TABLE `catalog` (\n CREATE TABLE `catalog` (\n
`uid` BIGINT UNSIGNED NOT NULL AUTO_INCREMENT,\n `uid` BIGINT UNSIGNED NOT NULL AUTO_INCREMENT,\n
`security_uid` INT UNSIGNED,\n `security_uid` INT UNSIGNED,\n
`owner` varchar(32) default \'\',\n
`path` varchar(255) NOT NULL default \'\',\n `path` varchar(255) NOT NULL default \'\',\n
`relative_url` varchar(255) NOT NULL default \'\',\n `relative_url` varchar(255) NOT NULL default \'\',\n
`parent_uid` BIGINT UNSIGNED default \'0\',\n `parent_uid` BIGINT UNSIGNED default \'0\',\n
...@@ -213,6 +216,7 @@ CREATE TABLE `catalog` (\n ...@@ -213,6 +216,7 @@ CREATE TABLE `catalog` (\n
`modification_date` datetime,\n `modification_date` datetime,\n
PRIMARY KEY (`uid`),\n PRIMARY KEY (`uid`),\n
KEY `security_uid` (`security_uid`),\n KEY `security_uid` (`security_uid`),\n
KEY `owner` (`owner`),\n
KEY `Parent` (`parent_uid`),\n KEY `Parent` (`parent_uid`),\n
KEY `Path` (`path`),\n KEY `Path` (`path`),\n
KEY `Title` (`title`),\n KEY `Title` (`title`),\n
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment