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 @@
<dictionary/>
</value>
</item>
<item>
<key> <string>getViewPermissionOwner</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>hasCellContent</string> </key>
<value>
......@@ -219,36 +225,37 @@
<key> <string>_keys</string> </key>
<value>
<list>
<string>uid</string>
<string>security_uid</string>
<string>getPath</string>
<string>getRelativeUrl</string>
<string>getParentUid</string>
<string>id</string>
<string>getDescription</string>
<string>getTitle</string>
<string>meta_type</string>
<string>getPortalType</string>
<string>opportunity_state</string>
<string>getCorporateRegistrationCode</string>
<string>getEan13Code</string>
<string>getSimulationState</string>
<string>causality_state</string>
<string>invoice_state</string>
<string>validation_state</string>
<string>payment_state</string>
<string>event_state</string>
<string>getImmobilisationState</string>
<string>getReference</string>
<string>getGroupingReference</string>
<string>getSourceReference</string>
<string>getDestinationReference</string>
<string>getStringIndex</string>
<string>getIntIndex</string>
<string>getFloatIndex</string>
<string>hasCellContent</string>
<string>getCreationDate</string>
<string>getModificationDate</string>
<string>uid</string>
<string>security_uid</string>
<string>getViewPermissionOwner</string>
<string>getPath</string>
<string>getRelativeUrl</string>
<string>getParentUid</string>
<string>id</string>
<string>getDescription</string>
<string>getTitle</string>
<string>meta_type</string>
<string>getPortalType</string>
<string>opportunity_state</string>
<string>getCorporateRegistrationCode</string>
<string>getEan13Code</string>
<string>getSimulationState</string>
<string>causality_state</string>
<string>invoice_state</string>
<string>validation_state</string>
<string>payment_state</string>
<string>event_state</string>
<string>getImmobilisationState</string>
<string>getReference</string>
<string>getGroupingReference</string>
<string>getSourceReference</string>
<string>getDestinationReference</string>
<string>getStringIndex</string>
<string>getIntIndex</string>
<string>getFloatIndex</string>
<string>hasCellContent</string>
<string>getCreationDate</string>
<string>getModificationDate</string>
</list>
</value>
</item>
......@@ -267,6 +274,7 @@
<key> <string>arguments_src</string> </key>
<value> <string>uid\r\n
security_uid\r\n
getViewPermissionOwner\r\n
getPath\r\n
getRelativeUrl\r\n
getParentUid\r\n
......@@ -292,8 +300,8 @@ getDestinationReference\r\n
getStringIndex\r\n
getIntIndex\r\n
getFloatIndex\r\n
hasCellContent\n
getCreationDate\n
hasCellContent\r\n
getCreationDate\r\n
getModificationDate</string> </value>
</item>
<item>
......@@ -341,6 +349,7 @@ VALUES\n
(\n
<dtml-sqlvar expr="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="getRelativeUrl[loop_item]" type="string">,\n
<dtml-sqlvar expr="getParentUid[loop_item]" type="int">,\n
......@@ -417,6 +426,7 @@ VALUES\n
(\n
<dtml-sqlvar expr="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="getRelativeUrl[loop_item]" type="string">,\n
<dtml-sqlvar expr="getParentUid[loop_item]" type="int">,\n
......
......@@ -98,6 +98,7 @@
CREATE TABLE `catalog` (\n
`uid` BIGINT UNSIGNED NOT NULL AUTO_INCREMENT,\n
`security_uid` INT UNSIGNED,\n
`owner` varchar(32) default \'\',\n
`path` varchar(255) NOT NULL default \'\',\n
`relative_url` varchar(255) NOT NULL default \'\',\n
`parent_uid` BIGINT UNSIGNED default \'0\',\n
......@@ -128,6 +129,7 @@ CREATE TABLE `catalog` (\n
`modification_date` datetime,\n
PRIMARY KEY (`uid`),\n
KEY `security_uid` (`security_uid`),\n
KEY `owner` (`owner`),\n
KEY `Parent` (`parent_uid`),\n
KEY `Path` (`path`),\n
KEY `Title` (`title`),\n
......@@ -183,6 +185,7 @@ CREATE TABLE `catalog` (\n
CREATE TABLE `catalog` (\n
`uid` BIGINT UNSIGNED NOT NULL AUTO_INCREMENT,\n
`security_uid` INT UNSIGNED,\n
`owner` varchar(32) default \'\',\n
`path` varchar(255) NOT NULL default \'\',\n
`relative_url` varchar(255) NOT NULL default \'\',\n
`parent_uid` BIGINT UNSIGNED default \'0\',\n
......@@ -213,6 +216,7 @@ CREATE TABLE `catalog` (\n
`modification_date` datetime,\n
PRIMARY KEY (`uid`),\n
KEY `security_uid` (`security_uid`),\n
KEY `owner` (`owner`),\n
KEY `Parent` (`parent_uid`),\n
KEY `Path` (`path`),\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