From b2d6e58ae2c342a9c261b39cfb52f618ad58efc4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20G=C3=B3rny?= <bartek@gorny.edu.pl> Date: Thu, 14 Sep 2006 17:58:17 +0000 Subject: [PATCH] fixed portal type roles list git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@9937 20353a03-c40f-0410-a6d1-a30d3c3de9de --- .../External%20Document.xml | 57 +++++++++++++++++++ .../ImageDocument.xml | 57 +++++++++++++++++++ .../PdfDocument.xml | 57 +++++++++++++++++++ bt5/erp5_dms/bt/revision | 2 +- .../bt/template_portal_type_roles_list | 4 +- 5 files changed, 175 insertions(+), 2 deletions(-) create mode 100644 bt5/erp5_dms/PortalTypeRolesTemplateItem/External%20Document.xml create mode 100644 bt5/erp5_dms/PortalTypeRolesTemplateItem/ImageDocument.xml create mode 100644 bt5/erp5_dms/PortalTypeRolesTemplateItem/PdfDocument.xml diff --git a/bt5/erp5_dms/PortalTypeRolesTemplateItem/External%20Document.xml b/bt5/erp5_dms/PortalTypeRolesTemplateItem/External%20Document.xml new file mode 100644 index 0000000000..8fb5ea5e22 --- /dev/null +++ b/bt5/erp5_dms/PortalTypeRolesTemplateItem/External%20Document.xml @@ -0,0 +1,57 @@ +<type_roles> + <role id='Assignor'> + <property id='title'>Team Reviewer</property> + <property id='description'>The head of the team who is in charge of reviewing documents published by his team. He is granted special rights on documents produced by his team.</property> + <property id='condition'>python: not object.getSourceProject()</property> + <property id='priority'>10</property> + <property id='base_category_script'>ERP5Type_getSecurityCategoryFromArrow</property> + <multi_property id='category'>function/publication/reviewer</multi_property> + <multi_property id='base_category'>group</multi_property> + <multi_property id='base_category'>site</multi_property> + </role> + <role id='Assignee'> + <property id='title'>Project Assignees</property> + <property id='description'>In a project collaborative document, all project members have a right to access and modify a document before release or publication.</property> + <property id='condition'>python:object.getSourceProject() and object.isMemberOf('classification/collaborative/project')</property> + <property id='priority'>10</property> + <property id='base_category_script'>ERP5Type_getSecurityCategoryFromArrow</property> + <multi_property id='category'></multi_property> + <multi_property id='base_category'>source_project</multi_property> + </role> + <role id='Associate'> + <property id='title'>Project Associates</property> + <property id='description'>In a project document, all project members have a right to access the document before it is released or published.</property> + <property id='condition'>python: object.getSourceProject()</property> + <property id='priority'>10</property> + <property id='base_category_script'>ERP5Type_getSecurityCategoryFromArrow</property> + <multi_property id='category'></multi_property> + <multi_property id='base_category'>source_project</multi_property> + </role> + <role id='Assignor'> + <property id='title'>Project Reviewer</property> + <property id='description'>The head of the project who is in charge of reviewing documents produced by the project before release or publication.</property> + <property id='condition'>python: object.getSourceProject()</property> + <property id='priority'>10</property> + <property id='base_category_script'>ERP5Type_getSecurityCategoryFromArrow</property> + <multi_property id='category'>function/project/director</multi_property> + <multi_property id='base_category'>source_project</multi_property> + </role> + <role id='Associate'> + <property id='title'>Team Associates</property> + <property id='description'>All team members have a right to access non restricted documents before their release or publication.</property> + <property id='condition'>python:not object.isMemberOf('classification/personnal/restricted')</property> + <property id='priority'>10</property> + <property id='base_category_script'>ERP5Type_getSecurityCategoryFromArrow</property> + <multi_property id='category'></multi_property> + <multi_property id='base_category'>group</multi_property> + <multi_property id='base_category'>function</multi_property> + <multi_property id='base_category'>site</multi_property> + </role> + <role id='Auditor'> + <property id='title'>Management</property> + <property id='description'>Management has to access anydocument in the system.</property> + <property id='priority'>10</property> + <property id='base_category_script'>ERP5Type_getSecurityCategoryFromArrow</property> + <multi_property id='category'>function/hq</multi_property> + </role> +</type_roles> \ No newline at end of file diff --git a/bt5/erp5_dms/PortalTypeRolesTemplateItem/ImageDocument.xml b/bt5/erp5_dms/PortalTypeRolesTemplateItem/ImageDocument.xml new file mode 100644 index 0000000000..bc3f84ce4f --- /dev/null +++ b/bt5/erp5_dms/PortalTypeRolesTemplateItem/ImageDocument.xml @@ -0,0 +1,57 @@ +<type_roles> + <role id='Assignor'> + <property id='title'>Team Reviewer</property> + <property id='description'>The head of the team who is in charge of reviewing documents published by his team. He is granted special rights on documents produced by his team.</property> + <property id='condition'>python:not object.getSourceProject()</property> + <property id='priority'>10</property> + <property id='base_category_script'>ERP5Type_getSecurityCategoryFromArrow</property> + <multi_property id='category'>function/publication/reviewer</multi_property> + <multi_property id='base_category'>group</multi_property> + <multi_property id='base_category'>site</multi_property> + </role> + <role id='Assignee'> + <property id='title'>Project Assignees</property> + <property id='description'>In a project collaborative document, all project members have a right to access and modify a document before release or publication.</property> + <property id='condition'>python:object.getSourceProject() and object.isMemberOf('classification/collaborative/project')</property> + <property id='priority'>10</property> + <property id='base_category_script'>ERP5Type_getSecurityCategoryFromArrow</property> + <multi_property id='category'></multi_property> + <multi_property id='base_category'>source_project</multi_property> + </role> + <role id='Associate'> + <property id='title'>Project Associates</property> + <property id='description'>In a project document, all project members have a right to access the document before it is released or published.</property> + <property id='condition'>python:object.getSourceProject()</property> + <property id='priority'>10</property> + <property id='base_category_script'>ERP5Type_getSecurityCategoryFromArrow</property> + <multi_property id='category'></multi_property> + <multi_property id='base_category'>source_project</multi_property> + </role> + <role id='Assignor'> + <property id='title'>Project Reviewer</property> + <property id='description'>The head of the project who is in charge of reviewing documents produced by the project before release or publication.</property> + <property id='condition'>python:object.getSourceProject()</property> + <property id='priority'>10</property> + <property id='base_category_script'>ERP5Type_getSecurityCategoryFromArrow</property> + <multi_property id='category'>function/project/director</multi_property> + <multi_property id='base_category'>source_project</multi_property> + </role> + <role id='Associate'> + <property id='title'>Team Associates</property> + <property id='description'>All team members have a right to access non restricted documents before their release or publication.</property> + <property id='condition'>python:not object.isMemberOf('classification/personnal/restricted')</property> + <property id='priority'>10</property> + <property id='base_category_script'>ERP5Type_getSecurityCategoryFromArrow</property> + <multi_property id='category'></multi_property> + <multi_property id='base_category'>group</multi_property> + <multi_property id='base_category'>function</multi_property> + <multi_property id='base_category'>site</multi_property> + </role> + <role id='Auditor'> + <property id='title'>Management</property> + <property id='description'>Management has to access anydocument in the system.</property> + <property id='priority'>10</property> + <property id='base_category_script'>ERP5Type_getSecurityCategoryFromArrow</property> + <multi_property id='category'>function/hq</multi_property> + </role> +</type_roles> \ No newline at end of file diff --git a/bt5/erp5_dms/PortalTypeRolesTemplateItem/PdfDocument.xml b/bt5/erp5_dms/PortalTypeRolesTemplateItem/PdfDocument.xml new file mode 100644 index 0000000000..c3d7452b69 --- /dev/null +++ b/bt5/erp5_dms/PortalTypeRolesTemplateItem/PdfDocument.xml @@ -0,0 +1,57 @@ +<type_roles> + <role id='Assignor'> + <property id='title'>Team Reviewer</property> + <property id='description'>The head of the team who is in charge of reviewing documents published by his team. He is granted special rights on documents produced by his team.</property> + <property id='condition'>python: not object.getSourceProject()</property> + <property id='priority'>10</property> + <property id='base_category_script'>ERP5Type_getSecurityCategoryFromArrow</property> + <multi_property id='category'>function/publication/reviewer</multi_property> + <multi_property id='base_category'>group</multi_property> + <multi_property id='base_category'>site</multi_property> + </role> + <role id='Assignee'> + <property id='title'>Project Assignees</property> + <property id='description'>In a project collaborative document, all project members have a right to access and modify a document before release or publication.</property> + <property id='condition'>python:object.getSourceProject() and object.isMemberOf('classification/collaborative/project')</property> + <property id='priority'>10</property> + <property id='base_category_script'>ERP5Type_getSecurityCategoryFromArrow</property> + <multi_property id='category'></multi_property> + <multi_property id='base_category'>source_project</multi_property> + </role> + <role id='Associate'> + <property id='title'>Project Associates</property> + <property id='description'>In a project document, all project members have a right to access the document before it is released or published.</property> + <property id='condition'>python:object.getSourceProject()</property> + <property id='priority'>10</property> + <property id='base_category_script'>ERP5Type_getSecurityCategoryFromArrow</property> + <multi_property id='category'></multi_property> + <multi_property id='base_category'>source_project</multi_property> + </role> + <role id='Assignor'> + <property id='title'>Project Reviewer</property> + <property id='description'>The head of the project who is in charge of reviewing documents produced by the project before release or publication.</property> + <property id='condition'>python:object.getSourceProject()</property> + <property id='priority'>10</property> + <property id='base_category_script'>ERP5Type_getSecurityCategoryFromArrow</property> + <multi_property id='category'>function/project/director</multi_property> + <multi_property id='base_category'>source_project</multi_property> + </role> + <role id='Associate'> + <property id='title'>Team Associates</property> + <property id='description'>All team members have a right to access non restricted documents before their release or publication.</property> + <property id='condition'>python:not object.isMemberOf('classification/personnal/restricted')</property> + <property id='priority'>10</property> + <property id='base_category_script'>ERP5Type_getSecurityCategoryFromArrow</property> + <multi_property id='category'></multi_property> + <multi_property id='base_category'>group</multi_property> + <multi_property id='base_category'>function</multi_property> + <multi_property id='base_category'>site</multi_property> + </role> + <role id='Auditor'> + <property id='title'>Management</property> + <property id='description'>Management has to access anydocument in the system.</property> + <property id='priority'>10</property> + <property id='base_category_script'>ERP5Type_getSecurityCategoryFromArrow</property> + <multi_property id='category'>function/hq</multi_property> + </role> +</type_roles> \ No newline at end of file diff --git a/bt5/erp5_dms/bt/revision b/bt5/erp5_dms/bt/revision index 4b9bce4823..f79f5e337e 100644 --- a/bt5/erp5_dms/bt/revision +++ b/bt5/erp5_dms/bt/revision @@ -1 +1 @@ -148 \ No newline at end of file +153 \ No newline at end of file diff --git a/bt5/erp5_dms/bt/template_portal_type_roles_list b/bt5/erp5_dms/bt/template_portal_type_roles_list index 7f34c4f3cd..0792652822 100644 --- a/bt5/erp5_dms/bt/template_portal_type_roles_list +++ b/bt5/erp5_dms/bt/template_portal_type_roles_list @@ -1,6 +1,8 @@ DMS File -DMS Pdf File +External Document Graphic +ImageDocument +PdfDocument Presentation Spreadsheet Text \ No newline at end of file -- 2.30.9